|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.att.gs.codip.ograph.imp.OntologyManagerImp
Ontology Manager
Constructor Summary | |
OntologyManagerImp()
|
|
OntologyManagerImp(java.lang.String theID)
|
|
OntologyManagerImp(java.lang.String theID,
java.lang.String anOntoType)
Creators and Initializers |
Method Summary | |
void |
addAlias(java.lang.String anAlias,
OGOntology theOntology)
Adds an alias for the supplied ontology. |
void |
addFacts(java.lang.Object theOntoURI,
java.lang.Object theFactsURI)
Not in public interface. |
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 theID)
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. |
OGOntology |
getRDFS()
|
java.lang.String |
getVersionInfo()
Simple Access Methods. |
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. |
protected java.lang.String |
getXSLT(java.lang.String theURI)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OntologyManagerImp(java.lang.String theID, java.lang.String anOntoType)
public OntologyManagerImp(java.lang.String theID)
public OntologyManagerImp()
Method Detail |
public java.lang.String getVersionInfo()
getVersionInfo
in interface OntologyManager
public java.lang.String getID()
OntologyManager
getID
in interface OntologyManager
public OGOntology getRDFS()
public OGOntology getDAML()
OntologyManager
getDAML
in interface OntologyManager
public OGOntology getOWL()
OntologyManager
getOWL
in interface OntologyManager
public OGOntology getXSD()
OntologyManager
getXSD
in interface OntologyManager
public java.lang.String getXSLT()
OntologyManager
getXSLT
in interface OntologyManager
protected java.lang.String getXSLT(java.lang.String theURI)
public void setXSLT(java.lang.String theXSLT)
OntologyManager
setXSLT
in interface OntologyManager
public void setApplyToImports(boolean pTransform)
setApplyToImports
in interface OntologyManager
public OGOntology lookupOntology(java.lang.Object theID)
OntologyManager
lookupOntology
in interface OntologyManager
theID
- The ID of the sought ontology.
public OGOntology lookupOntology(java.lang.Object theURI, boolean pCreate)
OntologyManager
lookupOntology
in interface OntologyManager
pCreate
- true causes a new instance to be created if no existing
match is found.
public OGOntology createOntology()
OntologyManager
createOntology
in interface OntologyManager
public OGOntology createOntology(java.lang.String theURI)
OntologyManager
createOntology
in interface OntologyManager
theURI
- The URI of the new ontology.
public OGOntology createOntology(java.lang.String theURI, boolean forceReload)
OntologyManager
createOntology
in interface OntologyManager
forceReload
- If true forces the ontology to be reload from the URI.
public void addFacts(java.lang.Object theOntoURI, java.lang.Object theFactsURI)
public void addOntology(OGOntology theOntology)
OntologyManager
addOntology
in interface OntologyManager
theOntology
- The ontology instance to add to the collection.public void morphOntology(OGOntology theOntology, java.lang.String theURI)
OntologyManager
morphOntology
in interface OntologyManager
theOntology
- The ontology to remove from the collection.public void removeOntology(OGOntology theOntology)
OntologyManager
removeOntology
in interface OntologyManager
theOntology
- The ontology to remove from the collection.public OGOntology getOntology(java.lang.Object theID)
OntologyManager
getOntology
in interface OntologyManager
theID
- The URI of the sought ontology.
public boolean containsOntology(java.lang.Object theID)
OntologyManager
containsOntology
in interface OntologyManager
theID
- The ID of the sought ontology.
public java.util.Iterator ontologies()
OntologyManager
ontologies
in interface OntologyManager
public java.lang.String lookupAlias(java.lang.String anAlias)
OntologyManager
lookupAlias
in interface OntologyManager
anAlias
- The alias string.
public boolean containsAlias(java.lang.String anAlias)
OntologyManager
containsAlias
in interface OntologyManager
anAlias
- The alias string.
public void addAlias(java.lang.String anAlias, OGOntology theOntology)
OntologyManager
addAlias
in interface OntologyManager
anAlias
- The alias string.theOntology
- The ontology refered to by the alias string.public void removeAlias(java.lang.String anAlias)
OntologyManager
removeAlias
in interface OntologyManager
anAlias
- The alias string.public java.util.Iterator aliases()
OntologyManager
aliases
in interface OntologyManager
public java.util.Iterator aliases(OGOntology theOntology)
OntologyManager
aliases
in interface OntologyManager
public java.util.Map getParameters(java.lang.String theURI)
OntologyManager
getParameters
in interface OntologyManager
theURI
- The URI of the ontology.
public java.lang.Object lookupParameter(java.lang.String theURI, java.lang.String aParameter)
OntologyManager
lookupParameter
in interface OntologyManager
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)
OntologyManager
addParameter
in interface OntologyManager
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)
OntologyManager
removeParameter
in interface OntologyManager
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 |