.getOWLImportsDeclaration(IRI.create(ontologyByVersion))));
changes.add(new AddImport(ontology2, factory
.getOWLImportsDeclaration(IRI.create(ontologyByName))));
changes.add(new AddImport(ontology2, factory
.getOWLImportsDeclaration(IRI.create(ontologyByOtherPath))));
manager.applyChanges(changes);
manager.saveOntology(ontology1, IRI.create(importsBothNameAndVersion));
manager.saveOntology(ontology2, IRI.create(importsBothNameAndOther));
// when
OWLOntology o1 = m.loadOntology(IRI.create(importsBothNameAndVersion));
OWLOntology o2 = m1.loadOntology(IRI.create(importsBothNameAndOther));