|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OClass
Each OClass (Ontology Class) represents a concept/class in ontology. It provides various methods (including and not limited) to iterate through its super and sub classes in the taxonomy hierarchy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface gate.creole.ontology.OConstants |
---|
OConstants.Closure, OConstants.OntologyFormat, OConstants.OWL, OConstants.QueryLanguage, OConstants.RDF, OConstants.RDFS, OConstants.XMLSchema |
Field Summary |
---|
Method Summary | |
---|---|
void |
addSubClass(OClass subClass)
Adds a sub class to this class. |
Set<OClass> |
getEquivalentClasses()
Returns a set of all classes that are equivalent as this one. |
Set<OClass> |
getSubClasses(byte closure)
Deprecated. |
Set<OClass> |
getSubClasses(OConstants.Closure closure)
|
ClosableIterator<OClass> |
getSubClassesIterator(OConstants.Closure closure)
|
ArrayList<Set<OClass>> |
getSubClassesVsDistance()
Gets the sub classes, and returns them in an array list where on each index there is a collection of the sub classes at distance - the index. |
Set<OClass> |
getSuperClasses(byte closure)
Deprecated. |
Set<OClass> |
getSuperClasses(OConstants.Closure closure)
|
ArrayList<Set<OClass>> |
getSuperClassesVSDistance()
Gets the super classes, and returns them in an array list where on each index there is a collection of the super classes at distance - the index. |
boolean |
isEquivalentClassAs(OClass aClass)
Checks whether the class is equivalent as the given class. |
boolean |
isSubClassOf(OClass aClass,
byte closure)
Deprecated. |
boolean |
isSubClassOf(OClass aClass,
OConstants.Closure closure)
|
boolean |
isSuperClassOf(OClass aClass,
byte closure)
Checks whether the class is a super class of the given class. |
boolean |
isSuperClassOf(OClass aClass,
OConstants.Closure closure)
|
boolean |
isTopClass()
Checks whether this class is a top. |
void |
removeSubClass(OClass subClass)
Removes a sub class. |
void |
setEquivalentClassAs(OClass theClass)
Indicates that these classes are the equivalent |
Methods inherited from interface gate.creole.ontology.OResource |
---|
addAnnotationPropertyValue, getAllSetProperties, getAnnotationPropertyValues, getComment, getComments, getLabel, getLabels, getName, getONodeID, getOntology, getPropertiesWithResourceAsDomain, getPropertiesWithResourceAsRange, getSetAnnotationProperties, getURI, hasAnnotationPropertyWithValue, removeAnnotationPropertyValue, removeAnnotationPropertyValues, setComment, setLabel, setURI |
Method Detail |
---|
void addSubClass(OClass subClass)
subClass
- the subClass to be added.void removeSubClass(OClass subClass)
subClass
- the sub class to be removed@Deprecated Set<OClass> getSubClasses(byte closure)
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
Set<OClass> getSubClasses(OConstants.Closure closure)
ClosableIterator<OClass> getSubClassesIterator(OConstants.Closure closure)
@Deprecated Set<OClass> getSuperClasses(byte closure)
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
Set<OClass> getSuperClasses(OConstants.Closure closure)
boolean isSuperClassOf(OClass aClass, byte closure)
aClass
- closure
- either OntologyConstants.DIRECT_CLOSURE or
OntologyConstants.TRANSITIVE_CLOSURE
boolean isSuperClassOf(OClass aClass, OConstants.Closure closure)
@Deprecated boolean isSubClassOf(OClass aClass, byte closure)
aClass
- closure
- either OntologyConstants.DIRECT_CLOSURE or
OntologyConstants.TRANSITIVE_CLOSURE
boolean isSubClassOf(OClass aClass, OConstants.Closure closure)
boolean isTopClass()
void setEquivalentClassAs(OClass theClass)
Set<OClass> getEquivalentClasses()
boolean isEquivalentClassAs(OClass aClass)
aClass
-
ArrayList<Set<OClass>> getSuperClassesVSDistance()
ArrayList<Set<OClass>> getSubClassesVsDistance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |