OWLOntology ontology = manager.createOntology(new OWLOntologyID(
Optional.of(IRI.create(ontologyByName)), Optional.of(IRI
.create(ontologyByVersion))));
manager.saveOntology(ontology, IRI.create(ontologyByName));
manager.saveOntology(ontology, IRI.create(ontologyByVersion));
manager.saveOntology(ontology, IRI.create(ontologyByOtherPath));
manager = m1;
OWLDataFactory factory = manager.getOWLDataFactory();
OWLOntology ontology1 = manager.createOntology(IRI
.create(importsBothNameAndVersion));
OWLOntology ontology2 = manager.createOntology(IRI