|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Ontology
encapsulating the web ontology
Field Summary | |
---|---|
static int |
ALLVALUERESTRICTION
|
static int |
ATOMICNODE
|
static int |
CARDINALITYRESTRICTION
|
static int |
COMPLEMENTOF
|
static int |
DISJOINTWITH
|
static int |
DOMAIN
|
static int |
EQUIVALENTCLASS
|
static int |
EQUIVALENTPROPERTY
|
static int |
HASVALUERESTRICTION
|
static int |
INTERSECTIONOF
|
static int |
INVERSEOF
|
static int |
ONEOF
|
static int |
RANGE
|
static int |
SOMEVALUERESTRICTION
|
static int |
SUBCLASSOF
|
static int |
SUBPROPERTYOF
|
static int |
UNIONOF
|
Method Summary | |
---|---|
void |
addAllAxiomNodeRestrictions(java.util.Vector<AxiomNode> res)
|
boolean |
addAnnotations(ObjectId sId,
ObjectId oId,
java.lang.String value)
Add annotations. |
void |
addAssertedClass(ObjectId cid)
Add an asserted class. |
void |
addAssertedProperty(ObjectId pid)
Add an asserted property. |
void |
addAxiom(Axiom a)
Axiom Design Methods |
void |
addAxiomByObject(ObjectId obj,
Axiom a)
|
void |
addAxiomBySubject(ObjectId sub,
Axiom a)
|
void |
addAxiomByType(java.lang.Integer type,
Axiom a)
|
void |
addAxiomNodeRestriction(AxiomNode res)
|
void |
addCompatiblePriorOnts(DocId id)
Add a priorVersion ontology which is backwardCompatibleWith. |
void |
addImportedAxiom(Axiom a)
|
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 |
boolean |
assertedClass(ObjectId cid)
To tell if the ontology asserted specified class. |
boolean |
assertedProperty(ObjectId pid)
To tell if the ontology asserted specified property. |
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 |
java.util.Vector<Annotation> |
getAllAnnotations()
Get all annotations. |
java.util.List<Axiom> |
getAllAxioms()
|
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> |
getAllAxiomsByObject()
|
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> |
getAllAxiomsBySubject()
|
java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> |
getAllAxiomsByType()
|
OntClass[] |
getAllClasses()
get all the classes in this ontology |
java.util.List<Axiom> |
getAllPlusImportedAxioms()
|
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> |
getAllPlusImportedAxiomsByObject()
|
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> |
getAllPlusImportedAxiomsBySubject()
|
java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> |
getAllPlusImportedAxiomsByType()
|
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.Vector<Annotation> |
getAnnotationsByObject(ObjectId pid)
Get annotations by object ID. |
java.util.Vector<Annotation> |
getAnnotationsBySubject(ObjectId pid)
Get annotations by subject ID. |
java.util.List<Axiom> |
getAxiomByObject(ObjectId object)
|
java.util.List<Axiom> |
getAxiomBySubject(ObjectId subject)
|
java.util.List<Axiom> |
getAxiomByType(java.lang.Integer type)
|
java.util.Vector<AxiomNode> |
getAxiomNodeRestrictions()
|
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 |
OntObject |
getOntObject(ObjectId id)
get the object (class/property) given the ID |
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. |
Field Detail |
---|
static final int SUBCLASSOF
static final int SUBPROPERTYOF
static final int EQUIVALENTCLASS
static final int EQUIVALENTPROPERTY
static final int INVERSEOF
static final int DISJOINTWITH
static final int COMPLEMENTOF
static final int INTERSECTIONOF
static final int UNIONOF
static final int ONEOF
static final int ATOMICNODE
static final int CARDINALITYRESTRICTION
static final int HASVALUERESTRICTION
static final int SOMEVALUERESTRICTION
static final int ALLVALUERESTRICTION
static final int DOMAIN
static final int RANGE
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)
OntObject getOntObject(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)
void addImportedClass(ObjectId cid, OntClass c)
void addImportedProperty(ObjectId pid, OntProperty p)
boolean assertedClass(ObjectId cid)
boolean assertedProperty(ObjectId pid)
void addAssertedClass(ObjectId cid)
void addAssertedProperty(ObjectId pid)
boolean addAnnotations(ObjectId sId, ObjectId oId, java.lang.String value)
java.util.Vector<Annotation> getAnnotationsBySubject(ObjectId pid)
java.util.Vector<Annotation> getAnnotationsByObject(ObjectId pid)
java.util.Vector<Annotation> getAllAnnotations()
void addAxiom(Axiom a)
void addAxiomByObject(ObjectId obj, Axiom a)
void addAxiomBySubject(ObjectId sub, Axiom a)
void addAxiomByType(java.lang.Integer type, Axiom a)
void addAxiomNodeRestriction(AxiomNode res)
void addAllAxiomNodeRestrictions(java.util.Vector<AxiomNode> res)
java.util.List<Axiom> getAllAxioms()
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsByObject()
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllAxiomsBySubject()
java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllAxiomsByType()
java.util.List<Axiom> getAxiomByObject(ObjectId object)
java.util.List<Axiom> getAxiomBySubject(ObjectId subject)
java.util.List<Axiom> getAxiomByType(java.lang.Integer type)
java.util.Vector<AxiomNode> getAxiomNodeRestrictions()
java.util.List<Axiom> getAllPlusImportedAxioms()
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByObject()
java.util.Hashtable<ObjectId,java.util.Vector<Axiom>> getAllPlusImportedAxiomsBySubject()
java.util.Hashtable<java.lang.Integer,java.util.Vector<Axiom>> getAllPlusImportedAxiomsByType()
void addImportedAxiom(Axiom a)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |