|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.SerializableClass
edu.lehigh.swat.hawk.storage.simplememory.Document
edu.lehigh.swat.hawk.storage.simplememory.Ontology
public class Ontology
A simple implementation of core.ontology in memory.
Constructor Summary | |
---|---|
Ontology()
Constructor |
Method Summary | |
---|---|
void |
addCompatiblePriorOnts(DocId id)
Add a priorVersion ontology which is backwardCompatibleWith. |
void |
addImportedClass(ObjectId cid,
OntClass c)
Add an imported class. |
void |
addImportedProperty(ObjectId pid,
OntProperty p)
Add an imported property. |
void |
addOntClass(OntClass c)
add a class to this ontology |
void |
addPriorOnts(DocId id)
Add a priorVersion ontology may be incompatibleWith. |
void |
addProperty(OntProperty p)
add a property to this ontology |
void |
addRestriction(PropertyRestriction p)
add a property to this ontology |
OntClass |
createClass()
Create a Class object and set its ontology. |
OntProperty |
createProperty()
Create a Property object and set its ontology. |
PropertyRestriction |
createRestriction()
Create a PropertyRestriction object and set its ontology. |
void |
deleteCompatiblePriorOnts(DocId id)
Delete a priorVersion ontology which is backwardCompatibleWith. |
void |
deleteOntClass(ObjectId id)
delete the specified class |
void |
deletePriorOnts(DocId id)
Delete a priorVersion ontology may be incompatibleWith. |
void |
deleteProperty(ObjectId id)
delete a specified property |
void |
deleteRestriction(ObjectId id)
delete a specified property |
OntClass[] |
getAllClasses()
get all the classes in this ontology |
OntClass[] |
getAllPlusImportedClasses()
Get All the classes plus the imported Classes. |
OntProperty[] |
getAllPlusImportedProperties()
Get All the classes plus the imported properties. |
OntProperty[] |
getAllProperties()
get all the properties in this ontology |
PropertyRestriction[] |
getAllRestrictions()
get all the properties in this ontology |
java.util.Iterator |
getClassIterator()
Get the Iterator of all the classes. |
DocId[] |
getCompatiblePriorOnts()
Get the priorVersion ontologies which are backwardCompatibleWith |
OntClass |
getOntClass(ObjectId id)
get the specified class |
DocId[] |
getPriorOnts()
Get the priorVersion ontologies may be incompatibleWith |
OntProperty |
getProperty(ObjectId id)
get the specified property |
java.util.Iterator |
getPropertyIterator()
Get the Iterator of all the properties. |
PropertyRestriction |
getRestriction(ObjectId id)
get the specified property |
java.lang.String |
getVersion()
get the version of this ontology |
boolean |
hasClass(java.lang.String name)
To see if ontology has the class. |
boolean |
hasProperty(java.lang.String name)
To see if ontology has the property. |
boolean |
importedClass(ObjectId cid)
To tell if the ontology imorted specified class. |
boolean |
importedProperty(ObjectId pid)
To tell if the ontology imported specified property. |
void |
setVersion(java.lang.String ver)
Set the version of this ontology. |
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.Document |
---|
addAssertion, addDescription, addDistinctIndividualsSet, addImports, addIndividual, addSameIndividualsSet, createIndividual, deleteAssertion, deleteDescriprion, deleteDistinctIndividualsSet, deleteImports, deleteIndividual, deleteSameIndividualsSet, flush, getAllAssertions, getAllDescriptions, getAllIndividuals, getAssertionIterator, getDescendants, getDescription, getDistinctIndividualsSets, getID, getImports, getIndividual, getIndividualIterator, getLabel, getNameSpaces, getSameIndividualsSets, getXMLBase, setDescendants, setID, setLabel, setNameSpaces, setXMLBase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ontology()
Method Detail |
---|
public void addOntClass(OntClass c)
addOntClass
in interface Ontology
public OntClass getOntClass(ObjectId id)
getOntClass
in interface Ontology
public void deleteOntClass(ObjectId id)
deleteOntClass
in interface Ontology
public OntClass[] getAllClasses()
getAllClasses
in interface Ontology
public java.util.Iterator getClassIterator()
getClassIterator
in interface Ontology
public void addProperty(OntProperty p)
addProperty
in interface Ontology
public OntProperty getProperty(ObjectId id)
getProperty
in interface Ontology
public void deleteProperty(ObjectId id)
deleteProperty
in interface Ontology
public OntProperty[] getAllProperties()
getAllProperties
in interface Ontology
public java.util.Iterator getPropertyIterator()
getPropertyIterator
in interface Ontology
public void addRestriction(PropertyRestriction p)
addRestriction
in interface Ontology
public PropertyRestriction getRestriction(ObjectId id)
getRestriction
in interface Ontology
public void deleteRestriction(ObjectId id)
deleteRestriction
in interface Ontology
public PropertyRestriction[] getAllRestrictions()
getAllRestrictions
in interface Ontology
public DocId[] getCompatiblePriorOnts()
getCompatiblePriorOnts
in interface Ontology
public void addCompatiblePriorOnts(DocId id)
addCompatiblePriorOnts
in interface Ontology
public void deleteCompatiblePriorOnts(DocId id)
deleteCompatiblePriorOnts
in interface Ontology
public DocId[] getPriorOnts()
getPriorOnts
in interface Ontology
public void addPriorOnts(DocId id)
addPriorOnts
in interface Ontology
public void deletePriorOnts(DocId id)
deletePriorOnts
in interface Ontology
public java.lang.String getVersion()
getVersion
in interface Ontology
public void setVersion(java.lang.String ver)
setVersion
in interface Ontology
public OntClass createClass()
createClass
in interface Ontology
public OntProperty createProperty()
createProperty
in interface Ontology
public PropertyRestriction createRestriction()
createRestriction
in interface Ontology
public boolean hasClass(java.lang.String name)
hasClass
in interface Ontology
public boolean hasProperty(java.lang.String name)
hasProperty
in interface Ontology
public void addImportedClass(ObjectId cid, OntClass c)
public void addImportedProperty(ObjectId pid, OntProperty p)
public OntClass[] getAllPlusImportedClasses()
getAllPlusImportedClasses
in interface Ontology
public OntProperty[] getAllPlusImportedProperties()
getAllPlusImportedProperties
in interface Ontology
public boolean importedClass(ObjectId cid)
importedClass
in interface Ontology
public boolean importedProperty(ObjectId pid)
importedProperty
in interface Ontology
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |