* specified ontology, and also update the imports declarations in any ontologies
* which import the specified ontology.
*/
public List<OWLOntologyChange> getChanges(OWLOntology ontology, IRI newIRI) {
List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
changes.add(new SetOntologyID(ontology, new OWLOntologyID(newIRI, ontology.getOntologyID().getVersionIRI())));
for (OWLOntology ont : owlOntologyManager.getOntologies()) {
for (OWLImportsDeclaration decl : ont.getImportsDeclarations()) {
if (decl.getIRI().equals(ontology.getOntologyID().getOntologyIRI())) {
changes.add(new RemoveImport(ont, decl));
changes.add(new AddImport(ont, owlOntologyManager.getOWLDataFactory().getOWLImportsDeclaration(newIRI)));