org.semanticweb.owl.util
Class OWLEntityURIConverter

java.lang.Object
  extended by org.semanticweb.owl.util.OWLEntityURIConverter

public class OWLEntityURIConverter
extends java.lang.Object

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

Performs a bulk conversion/translation of entity URIs. This utility class can be used to replace entity names with IDs for example. The entity converter is supplied with a set of ontologies and a conversion strategy. All of the entities that are referenced in the specified ontologies will have their URIs converted according the specified conversion strategy.


Constructor Summary
OWLEntityURIConverter(OWLOntologyManager manager, java.util.Set<OWLOntology> ontologies, OWLEntityURIConverterStrategy strategy)
          Creates a converter that will convert the URIs of entities in the specified ontologies using the specified conversion strategy.
 
Method Summary
 java.util.List<OWLOntologyChange> getChanges()
          Gets the changes required to perform the conversion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLEntityURIConverter

public OWLEntityURIConverter(OWLOntologyManager manager,
                             java.util.Set<OWLOntology> ontologies,
                             OWLEntityURIConverterStrategy strategy)
Creates a converter that will convert the URIs of entities in the specified ontologies using the specified conversion strategy.

Parameters:
manager - The manager which managers the specified ontologies.
ontologies - The ontologies whose entity URIs will be converted
strategy - The conversion strategy to be used.
Method Detail

getChanges

public java.util.List<OWLOntologyChange> getChanges()
Gets the changes required to perform the conversion.

Returns:
A list of ontology changes that should be applied in order to convert the URI of entities in the specified ontologies.