org.semanticweb.owlapi.util
Class OWLEntityRenamer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OWLEntityRenamer
public OWLEntityRenamer(OWLOntologyManager owlOntologyManager,
java.util.Set<OWLOntology> ontologies)
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 changednewIRI
- 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)