|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OWLNamedClass
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) |
Object |
getHasValue(RDFProperty property)
Gets the value of an arbitrary owl:hasValue restriction defined on this class. |
Collection |
getHasValues(RDFProperty property)
Gets a collection of values for all owl:hasValue restrictions 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 |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Cls |
---|
getBrowserSlot, getDirectBrowserSlot, getInheritedBrowserSlot, rename |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
---|
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
---|
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFObject |
---|
equalsStructurally |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.Deprecatable |
---|
isDeprecated, setDeprecated |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.OWLClass |
---|
getDisjointClasses |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
---|
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Cls |
---|
getBrowserSlot, getDirectBrowserSlot, getInheritedBrowserSlot, rename |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
---|
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
---|
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFObject |
---|
equalsStructurally |
Method Detail |
---|
void addDisjointClass(RDFSClass disjointClass)
disjointClass
- the disjoint class to addvoid addEquivalentClass(RDFSClass equivalentClass)
equivalentClass
- the RDFSClass to add as equivalent classvoid addInferredSuperclass(RDFSClass superclass)
superclass
- the computed superclass to addOWLIndividual createOWLIndividual(String name)
name
- the name of the new instance or null for a default value
RDFResource getAllValuesFrom(RDFProperty property)
int getClassificationStatus()
RDFSClass getDefinition()
Collection getDirectRestrictions()
getRestrictions()
Object getHasValue(RDFProperty property)
property
- the property to look for hasValue restrictions on
Collection getHasValues(RDFProperty property)
property
- the property to look for hasValue restrictions on
Collection getInferredEquivalentClasses()
Collection getInferredSubclasses()
Collection getInferredSuperclasses()
int getMaxCardinality(RDFProperty property)
property
- the property to get the maximum cardinality of
int getMinCardinality(RDFProperty property)
property
- the property to get the minimum cardinality of
Collection getRestrictions()
getRestrictions(false)
.
Collection getRestrictions(boolean includingSuperclassRestrictions)
includingSuperclassRestrictions
- true to also include restrictions from named superclasses
getDirectRestrictions()
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
RDFResource getSomeValuesFrom(RDFProperty property)
boolean getSubclassesDisjoint()
boolean hasNamedSuperclass()
boolean isConsistent()
true
if the class is consistent, false
if the class is inconsistent.boolean isDefinedClass()
getDefinition() != null
.
boolean isProbeClass()
void removeDisjointClass(RDFSClass disjointClass)
disjointClass
- the disjoint class to removevoid removeEquivalentClass(RDFSClass equivalentClass)
equivalentClass
- void removeInferredSuperclass(RDFSClass superclass)
superclass
- the computed superclass to removevoid setClassificationStatus(int value)
value
- one of OWLNames.CLASSIFICATION_STATUS_xxxvoid setDefinition(RDFSClass definingClass)
definingClass
- the new equivalent classvoid setSubclassesDisjoint(boolean value)
value
- the new value
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |