gate.creole.ontology
Interface OClass

All Superinterfaces:
TClass
All Known Implementing Classes:
OClassImpl

public interface OClass
extends TClass


Field Summary
 
Fields inherited from interface gate.creole.ontology.TClass
DIRECT_CLOSURE, TRANSITIVE_CLOSURE
 
Method Summary
 Set getDisjointClasses()
          Returns a set of all classes that are disjoint with ours.
 Set getInheritedProperties()
          This method supplies all KBProperty inherited from the superclasses of the given class.
 Set getProperties()
          Returns a set of all KBProperty (ako relations) for which this class is the domain (first predicate).
 Set getPropertiesByName(String name)
          Returns the set of properties with the given name.
 Set getSameClasses()
          Returns a set of all classes that are the same as ours.
 void setDisjointWith(OClass theClass)
          Indicates that these are disjoint classes
 void setSameClassAs(OClass theClass)
          Indicates that these classes are the same
 
Methods inherited from interface gate.creole.ontology.TClass
addSubClass, addSuperClass, equals, getComment, getId, getName, getOntology, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClassesVSDistance, getURI, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass, setComment, setName, setURI, toString
 

Method Detail

setDisjointWith

public void setDisjointWith(OClass theClass)
Indicates that these are disjoint classes


setSameClassAs

public void setSameClassAs(OClass theClass)
Indicates that these classes are the same


getDisjointClasses

public Set getDisjointClasses()
Returns a set of all classes that are disjoint with ours. Null if no such classes.


getSameClasses

public Set getSameClasses()
Returns a set of all classes that are the same as ours. Null if no such classes.


getProperties

public Set getProperties()
Returns a set of all KBProperty (ako relations) for which this class is the domain (first predicate). The properties are associated with classes, not independent of them and attached via anonymous classes and restrictions as it is in DAML/OWL. Therefore our model is closer to the Protege frame-based model. The advantage of having this kind of model is that it can be generalised API both for Protege and DAML/OWL/RDF ontologies.


getPropertiesByName

public Set getPropertiesByName(String name)
Returns the set of properties with the given name. The set elements are instances of KBProperty or sub-classes. The reason why we need a set is because a class can have more than one property with the same name but different ranges.

Parameters:
name -
Returns:
a Set value.

getInheritedProperties

public Set getInheritedProperties()
This method supplies all KBProperty inherited from the superclasses of the given class. Null if no such properties exist. Note that to get all properties (both inherited and associated with the current class) one needs to call both getInheritedProperties and getProperties.