|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RDFSClass
The base interface of the RDFS/OWL classes used by the OWL Plugin. All user-defined classes will be some instance of this interface.
Method Summary | |
---|---|
void |
addClassListener(ClassListener listener)
Adds a ClassListener to receive events about this RDFSClass. |
void |
addSuperclass(RDFSClass superclass)
Adds a class to the rdfs:subClassOfs of this. |
RDFSClass |
createClone()
Creates a copy of anonymous classes which contain a completely new expression tree. |
RDFResource |
createInstance(String name)
Creates a new instance of this class. |
Collection |
getDependingClasses()
Gets all OWLAnonymousClasses the life cycle of which depends on this. |
Collection |
getEquivalentClasses()
Gets a Collection of all directly equivalent Clses of this. |
ImageIcon |
getImageIcon()
Gets an ImageIcon displaying this. |
int |
getInferredInstanceCount()
Gets the number of direct inferred instances of this class. |
Collection |
getInferredInstances(boolean includingSubclasses)
Gets all resources that have this as their inferred type. |
int |
getInstanceCount(boolean includingSubclasses)
Gets the number of instances of this, possibly including the instances of all subclasses. |
Collection |
getInstances(boolean includingSubclasses)
Gets the instances of this, possibly including the instances of all subclasses. |
Collection |
getNamedSubclasses()
Gets a Collection of all direct subclasses that are not anonymous. |
Collection |
getNamedSubclasses(boolean transitive)
Gets the named subclasses of this class. |
Collection |
getNamedSuperclasses()
Gets a Collection of all direct superclasses that are not anonymous. |
Collection |
getNamedSuperclasses(boolean transitive)
Gets the superclasses of this class. |
String |
getNestedBrowserText()
Gets the browser text when this is embedded into a complex expression. |
void |
getNestedNamedClasses(Set set)
Gets all RDFSClses that are somewhere used in the expression below this. |
String |
getParsableExpression()
Deprecated. not needed anymore |
Collection |
getPureSuperclasses()
Gets the subset of those direct superclasses which are not at the same time equivalent classes (or operands of equivalent intersection classes). |
int |
getSubclassCount()
Gets the number of (direct) subclasses of this. |
Collection |
getSubclasses(boolean transitive)
Gets the subclasses of this, including the subclasses of the subclasses etc. |
int |
getSuperclassCount()
Gets the number of (direct) superclasses of this. |
Collection |
getSuperclasses(boolean transitive)
Gets the superclasses of this, optionally including the superclasses of the superclasses etc. |
Collection |
getUnionDomainProperties()
Equivalent to getUnionDomainProperties(false) . |
Collection |
getUnionDomainProperties(boolean transitive)
Gets those properties that have this in their domain, with union semantics. |
boolean |
hasEquivalentClass(RDFSClass other)
Checks whether this is a (direct) equivalent class of a given other Cls. |
boolean |
hasPropertyValueWithBrowserText(RDFProperty property,
String browserText)
For an object-valued property, checks whether one of the property values has a given browser text. |
boolean |
isAnonymous()
Checks whether this is an anonymous class. |
boolean |
isMetaclass()
Checks whether this is a metaclass, i.e. |
boolean |
isSubclassOf(RDFSClass superclass)
Checks whether this is a (direct) subclass of a given class. |
void |
removeClassListener(ClassListener listener)
Removes a ClassListener to receive events about this RDFSClass. |
void |
removeSuperclass(RDFSClass superclass)
Removes a given class from the superclasses of this. |
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.visitor.Visitable |
---|
accept |
Method Detail |
---|
void addClassListener(ClassListener listener)
listener
- the ClassListener to addvoid addSuperclass(RDFSClass superclass)
superclass
- RDFSClass createClone()
RDFResource createInstance(String name)
name
- the name of the new instance or null for a default name
Collection getDependingClasses()
Collection getEquivalentClasses()
ImageIcon getImageIcon()
getIcon()
for use when an ImageIcon is required.
int getInferredInstanceCount()
getInferredInstances(false).size()
but
could be optimized internally for better performance.
getInferredInstances(boolean)
Collection getInferredInstances(boolean includingSubclasses)
includingSubclasses
- true to include instances of subclasses of this
int getInstanceCount(boolean includingSubclasses)
includingSubclasses
- true to also include the instances of the subclasses
Collection getInstances(boolean includingSubclasses)
includingSubclasses
- true to also get the instances of the subclasses
Collection getNamedSubclasses()
Collection getNamedSubclasses(boolean transitive)
transitive
- true to include the descendent classes
or false to only include the direct named subclasses
Collection getNamedSuperclasses()
Collection getNamedSuperclasses(boolean transitive)
transitive
- true to include the ancestor classes
or false to only include the direct named superclasses
String getNestedBrowserText()
void getNestedNamedClasses(Set set)
set
- an (initially empty) Set that will contain the nested named classesString getParsableExpression()
Collection getPureSuperclasses()
getSuperclasses(false)
.
int getSubclassCount()
Collection getSubclasses(boolean transitive)
int getSuperclassCount()
Collection getSuperclasses(boolean transitive)
Collection getUnionDomainProperties()
getUnionDomainProperties(false)
.
Collection getUnionDomainProperties(boolean transitive)
transitive
- true to include superclasses
boolean hasEquivalentClass(RDFSClass other)
other
- the Cls to compare with
boolean hasPropertyValueWithBrowserText(RDFProperty property, String browserText)
property
- the property (must not have datatype literals as values)browserText
- the browser text to compare to
boolean isAnonymous()
isAnonymous
in interface RDFResource
OWLModel.isAnonymousResourceName(java.lang.String)
boolean isMetaclass()
boolean isSubclassOf(RDFSClass superclass)
superclass
- the superclass in question
void removeClassListener(ClassListener listener)
listener
- the ClassListener to removevoid removeSuperclass(RDFSClass superclass)
superclass
- the superclass to remove
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |