|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for the ontology manager class.
Method Summary | |
void |
addAlias(java.lang.String anAlias,
OGOntology theOntology)
Adds an alias for the supplied ontology. |
void |
addOntology(OGOntology theOntology)
Adds the provided ontology to the managed collection. |
void |
addParameter(java.lang.String theURI,
java.lang.String aParameter,
java.lang.Object aValue)
Adds or replaces an ontology parameter. |
java.util.Iterator |
aliases()
Provides an iterator over all aliases known by this manager. |
java.util.Iterator |
aliases(OGOntology theOntology)
Provides an iterator over all aliases for the spefcified ontology that are known by this manager. |
boolean |
containsAlias(java.lang.String anAlias)
Checks for the existence of an alias in this manager. |
boolean |
containsOntology(java.lang.Object theID)
Checks for the existence of an ontology in the mananged colleciton whose ID matches the provided ID. |
OGOntology |
createOntology()
Creates a new instance of an ontology with a generated unique URI. |
OGOntology |
createOntology(java.lang.String theURI)
Loads or creates an ontology by URI. |
OGOntology |
createOntology(java.lang.String theURI,
boolean forceReload)
If forceReload is true will (re)load the ontology from the URI even if an existing instance is found. |
OGOntology |
getDAML()
Getter method for the default core ontology provided by the ontology manager. |
java.lang.String |
getID()
Getter method for the ID of this ontology manager. |
OGOntology |
getOntology(java.lang.Object theURI)
Looks for an ontology in the managed colleciton whose URI matches the provided URI. |
OGOntology |
getOWL()
Getter method for the default core OWL ontology provided by the ontology manager. |
java.util.Map |
getParameters(java.lang.String theURI)
Returns an ontology's parameter map. |
java.lang.String |
getVersionInfo()
Getter method for the version information of this ontology manager. |
OGOntology |
getXSD()
Getter method for the default core XML Schema Datatype ontology provided by the ontology manager. |
java.lang.String |
getXSLT()
Getter method for the XSL Transform file URI. |
java.lang.String |
lookupAlias(java.lang.String anAlias)
Looks up the URI of an alias in this manager. |
OGOntology |
lookupOntology(java.lang.Object theID)
Looks for an existing instance the specified Ontology by ID. |
OGOntology |
lookupOntology(java.lang.Object theURI,
boolean pCreate)
Looks for, and possibilly loads, the specified Ontology by URI. |
java.lang.Object |
lookupParameter(java.lang.String theURI,
java.lang.String aParameter)
Looks up and returns an ontology's parameter value. |
void |
morphOntology(OGOntology theOntology,
java.lang.String theURI)
Morphs the provided ontology & updates the managed collection. |
java.util.Iterator |
ontologies()
Provides a iterator for the ALL of the managed ontologies. |
void |
removeAlias(java.lang.String anAlias)
Removes the supplied alias. |
void |
removeOntology(OGOntology theOntology)
Removes the provided ontology from the managed collection. |
void |
removeParameter(java.lang.String theURI,
java.lang.String aParameter)
Removes an ontology's parameter. |
void |
setApplyToImports(boolean pTransform)
|
void |
setXSLT(java.lang.String theXSLT)
Setter method for the XSL Transform file URI. |
Method Detail |
public java.lang.String getVersionInfo()
public java.lang.String getID()
public OGOntology getDAML()
public OGOntology getOWL()
public OGOntology getXSD()
public java.lang.String getXSLT()
public void setXSLT(java.lang.String theXSLT)
public void setApplyToImports(boolean pTransform)
public OGOntology lookupOntology(java.lang.Object theID)
theID
- The ID of the sought ontology.
public OGOntology lookupOntology(java.lang.Object theURI, boolean pCreate)
pCreate
- true causes a new instance to be created if no existing
match is found.
public OGOntology createOntology()
public OGOntology createOntology(java.lang.String theURI)
theURI
- The URI of the new ontology.
public OGOntology createOntology(java.lang.String theURI, boolean forceReload)
forceReload
- If true forces the ontology to be reload from the URI.
public void addOntology(OGOntology theOntology)
theOntology
- The ontology instance to add to the collection.public void morphOntology(OGOntology theOntology, java.lang.String theURI)
theOntology
- The ontology to remove from the collection.public void removeOntology(OGOntology theOntology)
theOntology
- The ontology to remove from the collection.public OGOntology getOntology(java.lang.Object theURI)
theURI
- The URI of the sought ontology.
public boolean containsOntology(java.lang.Object theID)
theID
- The ID of the sought ontology.
public java.util.Iterator ontologies()
public java.lang.String lookupAlias(java.lang.String anAlias)
anAlias
- The alias string.
public boolean containsAlias(java.lang.String anAlias)
anAlias
- The alias string.
public void addAlias(java.lang.String anAlias, OGOntology theOntology)
anAlias
- The alias string.theOntology
- The ontology refered to by the alias string.public void removeAlias(java.lang.String anAlias)
anAlias
- The alias string.public java.util.Iterator aliases()
public java.util.Iterator aliases(OGOntology theOntology)
public java.util.Map getParameters(java.lang.String theURI)
theURI
- The URI of the ontology.
public java.lang.Object lookupParameter(java.lang.String theURI, java.lang.String aParameter)
theURI
- The URI of the ontology.aParameter
- The name of the parameter.
public void addParameter(java.lang.String theURI, java.lang.String aParameter, java.lang.Object aValue)
theURI
- The URI of the ontology.aParameter
- The name of the parameter to add or update.aValue
- The new value of the parameter.public void removeParameter(java.lang.String theURI, java.lang.String aParameter)
theURI
- The URI of the ontology.aParameter
- The name of the parameter to remove.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |