|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A named OWL class.
Method Summary | |
void |
addDisjointClass(RDFSClass disjointClass)
Adds a class to the list of disjoint classes of this. |
void |
addEquivalentClass(RDFSClass equivalentClass)
Adds a given class to the list of equivalent classes of this. |
void |
addInferredSuperclass(RDFSClass superclass)
Adds a computed superclass, as the result of a classification. |
OWLIndividual |
createOWLIndividual(String name)
Creates a new individual of this (assuming this is not a metaclass). |
RDFResource |
getAllValuesFrom(RDFProperty property)
Gets the allowed class for a given property. |
int |
getClassificationStatus()
Gets the classification status (whether this class is marked as inconsistent or not). |
RDFSClass |
getDefinition()
Gets the first equivalent class of this, or null if none is equivalent. |
Collection |
getDirectRestrictions()
Deprecated. will be deleted shortly, replaced with getRestrictions(false) |
Collection |
getDisjointClasses()
Gets the disjoint classes of this. |
Object |
getHasValue(RDFProperty property)
Gets the value of any owl:hasValue restriction defined on this class. |
Collection |
getInferredEquivalentClasses()
|
Collection |
getInferredSubclasses()
Gets the subclasses that were computed by the most recent call of a classifier. |
Collection |
getInferredSuperclasses()
Gets the superclasses that were computed by the most recent call of a classifier. |
int |
getMaxCardinality(RDFProperty property)
Gets the maximum number of values that are allowed for a given property at this class. |
int |
getMinCardinality(RDFProperty property)
Gets the minimum number of values that are allowed for a given property at this class. |
Collection |
getRestrictions()
Same as getRestrictions(false) . |
Collection |
getRestrictions(boolean includingSuperclassRestrictions)
Gets all Restrictions that are defined on this class or (optionally) its superclasses. |
Collection |
getRestrictions(RDFProperty property,
boolean includingSuperclassRestrictions)
Gets all restrictions that are defined on a given property. |
RDFResource |
getSomeValuesFrom(RDFProperty property)
Gets the filler of any defined someValuesFrom restriction for a given property. |
boolean |
getSubclassesDisjoint()
Checks whether all subclasses of this are declared to be disjoint. |
boolean |
hasNamedSuperclass()
Checks whether this has at least one named direct superclass. |
boolean |
isConsistent()
Determines whether this class has been flagged as being inconsistent or not. |
boolean |
isDefinedClass()
Checks if this is a "defined" class, with necessary and sufficient conditions. |
boolean |
isProbeClass()
Checks if this has been marked as a probe class, using the protege:probeClass annotation property. |
void |
removeDisjointClass(RDFSClass disjointClass)
Removes a disjoint class of this. |
void |
removeEquivalentClass(RDFSClass equivalentClass)
Removes an equivalent class. |
void |
removeInferredSuperclass(RDFSClass superclass)
Removes a computed superclass, as the result of a classification. |
void |
setClassificationStatus(int value)
Sets the classification status of this. |
void |
setDefinition(RDFSClass definingClass)
Removes all equivalent classes and then adds the given class (as definition). |
void |
setSubclassesDisjoint(boolean value)
Sets the value of the protege:subclassesDisjoint flag at this class. |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFSNamedClass |
createAnonymousInstance, createRDFIndividual, getAssociatedProperties, getFirstSuperclass, getUnionRangeClasses, isFunctionalProperty, isVisibleFromOWLThing |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
delete, getName, isValid, isVisible, moveDirectOwnSlotValue, setName, setVisible |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Cls |
getBrowserSlot, getDirectBrowserSlot, getInheritedBrowserSlot |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFObject |
equalsStructurally |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.visitor.Visitable |
accept |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.Deprecatable |
isDeprecated, setDeprecated |
Method Detail |
public void addDisjointClass(RDFSClass disjointClass)
disjointClass
- the disjoint class to addpublic void addEquivalentClass(RDFSClass equivalentClass)
equivalentClass
- the RDFSClass to add as equivalent classpublic void addInferredSuperclass(RDFSClass superclass)
superclass
- the computed superclass to addpublic OWLIndividual createOWLIndividual(String name)
name
- the name of the new instance or null for a default value
public RDFResource getAllValuesFrom(RDFProperty property)
public int getClassificationStatus()
public RDFSClass getDefinition()
public Collection getDirectRestrictions()
getRestrictions()
public Collection getDisjointClasses()
public Object getHasValue(RDFProperty property)
property
- the property to look for hasValue restrictions on
public Collection getInferredEquivalentClasses()
public Collection getInferredSubclasses()
public Collection getInferredSuperclasses()
public int getMaxCardinality(RDFProperty property)
property
- the property to get the maximum cardinality of
public int getMinCardinality(RDFProperty property)
property
- the property to get the minimum cardinality of
public Collection getRestrictions()
getRestrictions(false)
.
public Collection getRestrictions(boolean includingSuperclassRestrictions)
includingSuperclassRestrictions
- true to also include restrictions from named superclasses
getDirectRestrictions()
public Collection getRestrictions(RDFProperty property, boolean includingSuperclassRestrictions)
getRestrictions(includingSuperclassRestrictions)
but with
only those restrictions that restrict the selected property.
property
- the property to get the restrictions aboutincludingSuperclassRestrictions
- true to also include restrictions from named superclasses
public RDFResource getSomeValuesFrom(RDFProperty property)
public boolean getSubclassesDisjoint()
public boolean hasNamedSuperclass()
public boolean isConsistent()
true
if the class is consistent, false
if the class is inconsistent.public boolean isDefinedClass()
getDefinition() != null
.
public boolean isProbeClass()
public void removeDisjointClass(RDFSClass disjointClass)
disjointClass
- the disjoint class to removepublic void removeEquivalentClass(RDFSClass equivalentClass)
equivalentClass
- public void removeInferredSuperclass(RDFSClass superclass)
superclass
- the computed superclass to removepublic void setClassificationStatus(int value)
value
- one of OWLNames.CLASSIFICATION_STATUS_xxxpublic void setDefinition(RDFSClass definingClass)
definingClass
- the new equivalent classpublic void setSubclassesDisjoint(boolean value)
value
- the new value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |