org.semanticweb.owl.util
Class OWLOntologyURIChanger

java.lang.Object
  extended by org.semanticweb.owl.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, java.net.URI newURI)
          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,
                                                    java.net.URI newURI)
Changes the URI of the specified ontology to the new URI.

Parameters:
ontology - The ontology whose URI is to be changed.
newURI - The new URI for the ontology
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.