|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Ontology
encapsulating the web ontology
Method Summary | |
---|---|
void |
addCompatiblePriorOnts(DocId id)
Add a priorVersion ontology which is backwardCompatibleWith. |
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. |
OntProperty |
createProperty()
Create a Property object. |
PropertyRestriction |
createRestriction()
Create a PropertyRestriction object. |
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. |
Method Detail |
---|
void addOntClass(OntClass c)
OntClass getOntClass(ObjectId id)
void deleteOntClass(ObjectId id)
OntClass[] getAllClasses()
java.util.Iterator getClassIterator()
void addProperty(OntProperty p)
OntProperty getProperty(ObjectId id)
void deleteProperty(ObjectId id)
OntProperty[] getAllProperties()
java.util.Iterator getPropertyIterator()
void addRestriction(PropertyRestriction p)
PropertyRestriction getRestriction(ObjectId id)
void deleteRestriction(ObjectId id)
PropertyRestriction[] getAllRestrictions()
DocId[] getCompatiblePriorOnts()
void addCompatiblePriorOnts(DocId id)
void deleteCompatiblePriorOnts(DocId id)
DocId[] getPriorOnts()
void addPriorOnts(DocId id)
void deletePriorOnts(DocId id)
java.lang.String getVersion()
void setVersion(java.lang.String ver)
OntClass createClass()
OntProperty createProperty()
PropertyRestriction createRestriction()
boolean hasClass(java.lang.String name)
boolean hasProperty(java.lang.String name)
OntClass[] getAllPlusImportedClasses()
OntProperty[] getAllPlusImportedProperties()
boolean importedClass(ObjectId cid)
boolean importedProperty(ObjectId pid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |