org.semanticweb.owlapi.util
Class OWLOntologyURIChanger

java.lang.Object
  extended by org.semanticweb.owlapi.util.OWLOntologyURIChanger

public class OWLOntologyURIChanger
extends java.lang.Object

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-May-2007

Changes the URI of an ontology and ensures that ontologies which import the ontology have their imports statements updated


Constructor Summary
OWLOntologyURIChanger(OWLOntologyManager owlOntologyManager)
           
 
Method Summary
 java.util.List<OWLOntologyChange> getChanges(OWLOntology ontology, IRI newIRI)
          Changes the URI of the specified ontology to the new URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLOntologyURIChanger

public OWLOntologyURIChanger(OWLOntologyManager owlOntologyManager)
Method Detail

getChanges

public java.util.List<OWLOntologyChange> getChanges(OWLOntology ontology,
                                                    IRI newIRI)
Changes the URI of the specified ontology to the new URI.

Parameters:
ontology - The ontology whose URI is to be changed.
newIRI -
Returns:
A list of changes, which when applied will change the URI of the specified ontology, and also update the imports declarations in any ontologies which import the specified ontology.