org.semanticweb.owlapi.util
Class OWLEntityRenamer

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

public class OWLEntityRenamer
extends java.lang.Object

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 11-Dec-2006

Renames entities that have a particular IRI. Entities with the specified IRI are renamed regardless of whether they are classes, object properties, data properties, individuals or data types.


Constructor Summary
OWLEntityRenamer(OWLOntologyManager owlOntologyManager, java.util.Set<OWLOntology> ontologies)
           
 
Method Summary
 java.util.List<OWLOntologyChange> changeIRI(IRI uri, IRI newIRI)
          Changes a IRI for another IRI.
 java.util.List<OWLOntologyChange> changeIRI(java.util.Map<OWLEntity,IRI> entity2IRIMap)
           
 java.util.List<OWLOntologyChange> changeIRI(OWLEntity entity, IRI newIRI)
          Changes the IRI of an entity for another IRI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLEntityRenamer

public OWLEntityRenamer(OWLOntologyManager owlOntologyManager,
                        java.util.Set<OWLOntology> ontologies)
Method Detail

changeIRI

public java.util.List<OWLOntologyChange> changeIRI(IRI uri,
                                                   IRI newIRI)
Changes a IRI for another IRI. This creates the appropriate changes to be applied in order to change a IRI.

Parameters:
uri - The IRI to be changed
newIRI - The IRI that the IRI should be changed to.
Returns:
A list of ontology changes that should be applied to change the specified IRI.

changeIRI

public java.util.List<OWLOntologyChange> changeIRI(OWLEntity entity,
                                                   IRI newIRI)
Changes the IRI of an entity for another IRI.

Parameters:
entity - The entity whose IRI is to be changed.
newIRI - The new IRI
Returns:
A list of ontology changes that should be applied to change the specified entity IRI.

changeIRI

public java.util.List<OWLOntologyChange> changeIRI(java.util.Map<OWLEntity,IRI> entity2IRIMap)