|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
edu.stanford.smi.protege.model.DefaultInstance
edu.stanford.smi.protege.model.DefaultCls
edu.stanford.smi.protegex.owl.model.impl.AbstractRDFSClass
public abstract class AbstractRDFSClass
A basic implementation of the RDFSClass interface that provides support for disjoint classes.
| Constructor Summary | |
|---|---|
AbstractRDFSClass(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id)
|
|
| Method Summary | |
|---|---|
protected void |
addAnonymousClses(Collection target,
Collection clses)
|
void |
addClassListener(ClassListener listener)
Adds a ClassListener to receive events about this RDFSClass. |
void |
addComment(String comment)
Adds an rdfs:comment to this resource. |
void |
addDifferentFrom(RDFResource resource)
Adds an owl:differentFrom to this resource. |
void |
addIsDefinedBy(RDFResource instance)
Adds an rdfs:isDefinedBy to this resource. |
void |
addLabel(String label,
String language)
Adds a label to this. |
void |
addPropertyValue(RDFProperty property,
Object value)
Adds a value for a given property to this resource. |
void |
addPropertyValueListener(PropertyValueListener listener)
Adds a PropertyValueListener to receive events when property values have changed. |
void |
addProtegeType(RDFSClass type)
Adds an type to this resource. |
void |
addRDFType(RDFSClass type)
Adds an rdf:type to this resource. |
void |
addResourceListener(ResourceListener listener)
Adds a ResourceListener to receive events when the type of this has changed. |
void |
addSameAs(RDFResource resource)
Adds an owl:sameAs to this resource. |
void |
addSuperclass(RDFSClass superclass)
Adds a class to the rdfs:subClassOfs of this. |
void |
addToUnionDomainOf(RDFProperty property)
|
void |
addVersionInfo(String versionInfo)
Adds an owl:versionInfo to this resource. |
RDFResource |
as(Class javaInterface)
Converts this dynamically into an instance of a given Java interface. |
boolean |
canAs(Class javaInterface)
Checks whether this can be dynamically morphed into an instance of a given Java interface. |
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. |
protected AbstractOWLModel |
getAbstractOWLModel()
|
RDFResource |
getAllValuesFromOnTypes(RDFProperty property)
Checks for rdfs:range or owl:allValuesFrom restrictions on the types of this resource. |
OWLBrowserSlotPattern |
getBrowserSlotPattern()
|
Collection |
getComments()
Gets all rdfs:comments for this resource. |
RDFSClass |
getDefinition()
|
Collection |
getDifferentFrom()
Gets all owl:differentFroms for this resource. |
Object |
getDirectTemplateFacetValue(edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Facet facet)
|
Collection |
getDisjointClasses()
|
Collection |
getDocumentation()
|
Collection |
getEquivalentClasses()
Gets a Collection of all directly equivalent Clses of this. |
Collection |
getHasValuesOnTypes(RDFProperty property)
Checks if there are any owl:hasValue restrictions defined on any rdf:type of this and returns the fillers of the restrictions (if found). |
Class |
getIconLocation()
Gets a class that serves as a location of the icon resource. |
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. |
Collection |
getInferredTypes()
Gets the direct types that were inferred during the most recent execution of a reasoner. |
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 |
getIsDefinedBy()
Gets all rdfs:isDefinedBy for this resource. |
Collection |
getLabels()
Gets the rdfs:labels that are currenly defined for this. |
String |
getLocalName()
Gets the local part of the full URI (name) of this resource. |
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 |
getNamespace()
Gets the namespace of this resource. |
String |
getNamespacePrefix()
Gets the prefix of the namespace, i.e. |
OWLModel |
getOWLModel()
Gets the OWLModel this resource is defined in. |
String |
getParsableExpression()
|
Collection |
getPossibleRDFProperties()
Gets a Collection of all RDFProperties that this resource could take values for. |
String |
getPrefixedName()
Gets the qualified name as a namespace, local name pair (e.g. |
Object |
getPropertyValue(RDFProperty property)
Gets all (direct) values of a given property. |
Object |
getPropertyValue(RDFProperty property,
boolean includingSubproperties)
Gets all values of a given property, and optionally its subproperties. |
RDFResource |
getPropertyValueAs(RDFProperty property,
Class javaInterface)
|
int |
getPropertyValueCount(RDFProperty property)
Gets the number of all (direct) values of a given property. |
RDFSLiteral |
getPropertyValueLiteral(RDFProperty property)
Gets the first value of a given property as an RDFSLiteral. |
Collection |
getPropertyValueLiterals(RDFProperty property)
Gets all (direct) values of a given property at this as RDFSLiterals. |
Collection |
getPropertyValues(RDFProperty property)
Gets all (direct) values of a given property at this resource. |
Collection |
getPropertyValues(RDFProperty property,
boolean includingSubproperties)
Gets all values of a given property, optionally including the values of the subproperties of the property. |
Collection |
getPropertyValuesAs(RDFProperty property,
Class javaInterface)
|
RDFSClass |
getProtegeType()
Gets the first asserted type of this resource. |
Collection |
getProtegeTypes()
Gets the asserted types of this resource. |
Collection |
getPureSuperclasses()
Gets the subset of those direct superclasses which are not at the same time equivalent classes (or operands of equivalent intersection classes). |
Collection |
getRDFProperties()
Gets all RDFProperties that have at least one value at this. |
RDFSClass |
getRDFType()
Gets the first asserted rdf:type of this resource. |
Collection |
getRDFTypes()
Gets the asserted rdf:types of this resource. |
Set |
getReferringAnonymousClasses()
Gets a Collection of all OWLAnonymousClasses that have a reference to this. |
Collection |
getSameAs()
Gets the values of the owl:sameAs property. |
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. |
String |
getURI()
Gets the full URI of this resource. |
Collection |
getVersionInfo()
Gets the values of the owl:versionInfo property. |
boolean |
hasEquivalentClass(RDFSClass other)
Checks whether this is a (direct) equivalent class of a given other Cls. |
boolean |
hasPropertyValue(RDFProperty property)
Checks whether this has any (direct) property value. |
boolean |
hasPropertyValue(RDFProperty property,
boolean includingSubproperties)
Checks whether this has any property value. |
boolean |
hasPropertyValue(RDFProperty property,
Object value)
Checks whether this has a certain (direct) property value. |
boolean |
hasPropertyValue(RDFProperty property,
Object value,
boolean includingSuperproperties)
Checks whether this has a certain property value. |
boolean |
hasPropertyValueWithBrowserText(RDFProperty property,
String browserText)
For an object-valued property, checks whether one of the property values has a given browser text. |
boolean |
hasPropertyValueWithBrowserText(edu.stanford.smi.protege.model.Slot property,
String browserText)
|
boolean |
hasProtegeType(RDFSClass type)
Checks whether this resource has a given type. |
boolean |
hasProtegeType(RDFSClass type,
boolean includingSuperclasses)
|
boolean |
hasRDFType(RDFSClass type)
Checks whether this resource has a given rdf:type. |
boolean |
hasRDFType(RDFSClass type,
boolean includingSuperclasses)
|
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. |
boolean |
isValidPropertyValue(RDFProperty property,
Object object)
A convenience method to access the corresponding method in OWLModel. |
Iterator |
listPropertyValues(RDFProperty property)
Gets all direct values of a certain property as an Iterator. |
Iterator |
listPropertyValues(RDFProperty property,
boolean includingSubproperties)
Gets all values of a certain property as an Iterator. |
Iterator |
listPropertyValuesAs(RDFProperty property,
Class javaInterface)
|
Iterator |
listRDFTypes()
Gets an Iterator on the rdf:types of this. |
void |
removeClassListener(ClassListener listener)
Removes a ClassListener to receive events about this RDFSClass. |
void |
removeComment(String value)
Removes an rdfs:comment from this resource. |
void |
removeDifferentFrom(RDFResource resource)
|
void |
removeIsDefinedBy(RDFResource resource)
|
void |
removeLabel(String label,
String language)
Removes a label that has been previously added. |
void |
removePropertyValue(RDFProperty property,
Object value)
|
void |
removePropertyValueListener(PropertyValueListener listener)
|
void |
removeProtegeType(RDFSClass type)
Removes a type from this resource. |
void |
removeRDFType(RDFSClass type)
Removes an rdf:type from this resource. |
void |
removeResourceListener(ResourceListener listener)
|
void |
removeSameAs(RDFResource resource)
|
void |
removeSuperclass(RDFSClass superclass)
Removes a given class from the superclasses of this. |
void |
removeVersionInfo(String versionInfo)
|
void |
setComment(String comment)
|
void |
setComments(Collection comments)
|
void |
setDirectBrowserSlotPattern(edu.stanford.smi.protege.model.BrowserSlotPattern slotPattern)
|
void |
setDocumentation(String value)
|
void |
setInferredTypes(Collection types)
|
void |
setPropertyValue(RDFProperty property,
Object value)
|
void |
setPropertyValues(RDFProperty property,
Collection values)
|
void |
setProtegeType(RDFSClass type)
|
void |
setProtegeTypes(Collection types)
|
void |
setRDFType(RDFSClass type)
|
void |
setRDFTypes(Collection types)
|
String |
toString()
|
| Methods inherited from class edu.stanford.smi.protege.model.DefaultCls |
|---|
addClsListener, addDirectSuperclass, addDirectTemplateSlot, addTemplateFacetValue, addTemplateSlotValue, createDirectInstance, getBrowserSlot, getConcreteSubclasses, getDirectBrowserSlot, getDirectBrowserSlotPattern, getDirectInstanceCount, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectSubclassCount, getDirectSubclasses, getDirectSuperclassCount, getDirectSuperclasses, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getIcon, getInheritedBrowserSlot, getInheritedBrowserSlotPattern, getInstanceCount, getInstances, getOverriddenTemplateFacets, getSubclasses, getSuperclasses, getTemplateFacets, getTemplateFacetValue, getTemplateFacetValues, getTemplateSlotAllowedClses, getTemplateSlotAllowedParents, getTemplateSlotAllowedValues, getTemplateSlotAllowsMultipleValues, getTemplateSlotDefaultValues, getTemplateSlotDocumentation, getTemplateSlotMaximumCardinality, getTemplateSlotMaximumValue, getTemplateSlotMinimumCardinality, getTemplateSlotMinimumValue, getTemplateSlots, getTemplateSlotValue, getTemplateSlotValues, getTemplateSlotValueType, getVisibleDirectSubclassCount, getVisibleDirectSubclasses, getVisibleTemplateSlots, hasDirectlyOverriddenTemplateFacet, hasDirectlyOverriddenTemplateSlot, hasDirectSuperclass, hasDirectTemplateSlot, hasInheritedTemplateSlot, hasOverriddenTemplateFacet, hasOverriddenTemplateSlot, hasSuperclass, hasTemplateFacet, hasTemplateSlot, isAbstract, isClsMetaCls, isConcrete, isDefaultClsMetaCls, isDefaultFacetMetaCls, isDefaultSlotMetaCls, isFacetMetaCls, isMetaCls, isRoot, isSlotMetaCls, moveDirectSubclass, moveDirectTemplateSlot, removeClsListener, removeDirectSuperclass, removeDirectTemplateSlot, removeTemplateFacetOverrides, rename, setAbstract, setDirectBrowserSlot, setDirectTypeOfSubclasses, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType |
| Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance |
|---|
addDirectType, addInstanceListener, copy, deepCopy, getBrowserText, getDirectType, getDirectTypes, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes, shallowCopy |
| Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|---|
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, assertFrameName, compareTo, delete, equals, equals, getDefaultKnowledgeBase, getDefiningProjectURI, getDirectOwnSlotValue, getDirectOwnSlotValues, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hashCode, hasOwnSlot, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, localize, markDeleted, markDeleting, moveDirectOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFSClass |
|---|
getDependingClasses, getImageIcon, getNestedBrowserText, getNestedNamedClasses, isAnonymous |
| 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.protegex.owl.model.RDFResource |
|---|
delete, getBrowserText, getIconName, getName, isVisible, setVisible |
| 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 |
| Constructor Detail |
|---|
public AbstractRDFSClass(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id)
| Method Detail |
|---|
protected void addAnonymousClses(Collection target,
Collection clses)
public void addClassListener(ClassListener listener)
RDFSClass
addClassListener in interface RDFSClasslistener - the ClassListener to addpublic void addSuperclass(RDFSClass superclass)
RDFSClass
addSuperclass in interface RDFSClasspublic void addToUnionDomainOf(RDFProperty property)
public RDFSClass createClone()
RDFSClass
createClone in interface RDFSClasspublic RDFResource createInstance(String name)
RDFSClass
createInstance in interface RDFSClassname - the name of the new instance or null for a default name
protected AbstractOWLModel getAbstractOWLModel()
public RDFSClass getDefinition()
public Collection getUnionDomainProperties()
RDFSClassgetUnionDomainProperties(false).
getUnionDomainProperties in interface RDFSClasspublic Collection getPureSuperclasses()
RDFSClassgetSuperclasses(false).
getPureSuperclasses in interface RDFSClass
public Object getDirectTemplateFacetValue(edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Facet facet)
public Collection getUnionDomainProperties(boolean transitive)
RDFSClass
getUnionDomainProperties in interface RDFSClasstransitive - true to include superclasses
public Collection getDisjointClasses()
public Collection getEquivalentClasses()
RDFSClass
getEquivalentClasses in interface RDFSClasspublic int getInferredInstanceCount()
RDFSClassgetInferredInstances(false).size() but
could be optimized internally for better performance.
getInferredInstanceCount in interface RDFSClassRDFSClass.getInferredInstances(boolean)public Collection getInferredInstances(boolean includingSubclasses)
RDFSClass
getInferredInstances in interface RDFSClassincludingSubclasses - true to include instances of subclasses of this
public int getInstanceCount(boolean includingSubclasses)
RDFSClass
getInstanceCount in interface RDFSClassincludingSubclasses - true to also include the instances of the subclasses
public Collection getInstances(boolean includingSubclasses)
RDFSClass
getInstances in interface RDFSClassincludingSubclasses - true to also get the instances of the subclasses
public Collection getNamedSubclasses()
RDFSClass
getNamedSubclasses in interface RDFSClasspublic Collection getNamedSuperclasses()
RDFSClass
getNamedSuperclasses in interface RDFSClasspublic Collection getNamedSubclasses(boolean transitive)
RDFSClass
getNamedSubclasses in interface RDFSClasstransitive - true to include the descendent classes
or false to only include the direct named subclasses
public Collection getNamedSuperclasses(boolean transitive)
RDFSClass
getNamedSuperclasses in interface RDFSClasstransitive - true to include the ancestor classes
or false to only include the direct named superclasses
public String getParsableExpression()
getParsableExpression in interface RDFSClasspublic int getSubclassCount()
RDFSClass
getSubclassCount in interface RDFSClasspublic Collection getSubclasses(boolean transitive)
RDFSClass
getSubclasses in interface RDFSClasspublic int getSuperclassCount()
RDFSClass
getSuperclassCount in interface RDFSClasspublic Collection getSuperclasses(boolean transitive)
RDFSClass
getSuperclasses in interface RDFSClass
public boolean hasPropertyValueWithBrowserText(RDFProperty property,
String browserText)
RDFSClass
hasPropertyValueWithBrowserText in interface RDFSClassproperty - the property (must not have datatype literals as values)browserText - the browser text to compare to
public boolean hasPropertyValueWithBrowserText(edu.stanford.smi.protege.model.Slot property,
String browserText)
public boolean hasEquivalentClass(RDFSClass other)
RDFSClass
hasEquivalentClass in interface RDFSClassother - the Cls to compare with
public boolean isMetaclass()
RDFSClass
isMetaclass in interface RDFSClasspublic boolean isSubclassOf(RDFSClass superclass)
RDFSClass
isSubclassOf in interface RDFSClasssuperclass - the superclass in question
public void removeClassListener(ClassListener listener)
RDFSClass
removeClassListener in interface RDFSClasslistener - the ClassListener to removepublic void removeSuperclass(RDFSClass superclass)
RDFSClass
removeSuperclass in interface RDFSClasssuperclass - the superclass to removepublic void addComment(String comment)
RDFResource
addComment in interface RDFResourcecomment - the comment to addRDFResource.getComments(),
RDFResource.removeComment(java.lang.String)public void addDifferentFrom(RDFResource resource)
RDFResource
addDifferentFrom in interface RDFResourceresource - the resource to addRDFResource.getDifferentFrom(),
RDFResource.removeDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource)public void addIsDefinedBy(RDFResource instance)
RDFResource
addIsDefinedBy in interface RDFResourceinstance - the resource to addRDFResource.getIsDefinedBy(),
RDFResource.removeIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource)
public void addLabel(String label,
String language)
RDFResource
addLabel in interface RDFResourcelabel - the text of the label to addlanguage - the language, or null for no language
public void addPropertyValue(RDFProperty property,
Object value)
RDFResource
addPropertyValue in interface RDFResourceproperty - the property to add a value forvalue - the value to add (may be an RDFSLiteral, a primitive value or another Resource)RDFResource.getPropertyValue(edu.stanford.smi.protegex.owl.model.RDFProperty),
RDFResource.getPropertyValues(edu.stanford.smi.protegex.owl.model.RDFProperty),
RDFResource.listPropertyValues(edu.stanford.smi.protegex.owl.model.RDFProperty),
RDFResource.removePropertyValue(edu.stanford.smi.protegex.owl.model.RDFProperty, java.lang.Object)public void addPropertyValueListener(PropertyValueListener listener)
RDFResource
addPropertyValueListener in interface RDFResourcelistener - the listener to addRDFResource.removePropertyValueListener(edu.stanford.smi.protegex.owl.model.event.PropertyValueListener)public void addProtegeType(RDFSClass type)
RDFResource
addProtegeType in interface RDFResourcetype - the type to addRDFResource.getProtegeTypes(),
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)public void addRDFType(RDFSClass type)
RDFResource
addRDFType in interface RDFResourcetype - the rdf:type to addRDFResource.getProtegeTypes(),
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)public void addResourceListener(ResourceListener listener)
RDFResource
addResourceListener in interface RDFResourcelistener - the listener to addRDFResource.removeResourceListener(edu.stanford.smi.protegex.owl.model.event.ResourceListener)public void addSameAs(RDFResource resource)
RDFResource
addSameAs in interface RDFResourceresource - the resource to addRDFResource.getSameAs(),
RDFResource.removeSameAs(edu.stanford.smi.protegex.owl.model.RDFResource)public void addVersionInfo(String versionInfo)
RDFResource
addVersionInfo in interface RDFResourceversionInfo - the version info to addRDFResource.getVersionInfo(),
RDFResource.removeVersionInfo(java.lang.String)public RDFResource as(Class javaInterface)
RDFResource
as in interface RDFResourcejavaInterface - the Java interface to convert to
public boolean canAs(Class javaInterface)
RDFResource
canAs in interface RDFResourcejavaInterface - the Java interface to test
public RDFResource getAllValuesFromOnTypes(RDFProperty property)
RDFResource
getAllValuesFromOnTypes in interface RDFResourceproperty - the property to check for restrictions
public Collection getComments()
RDFResource
getComments in interface RDFResourceRDFResource.addComment(java.lang.String),
RDFResource.removeComment(java.lang.String)public Collection getDifferentFrom()
RDFResource
getDifferentFrom in interface RDFResourceRDFResource.addDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource),
RDFResource.removeDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource)public Collection getHasValuesOnTypes(RDFProperty property)
RDFResource
getHasValuesOnTypes in interface RDFResourceproperty - the property to look for restrictions
public Class getIconLocation()
RDFResourcegetIconName().
getIconLocation in interface RDFResourceRDFResource.getIconName()public RDFSClass getProtegeType()
RDFResource
getProtegeType in interface RDFResourceRDFResource.getProtegeTypes()public Collection getProtegeTypes()
RDFResourcegetRDFTypes(): Anonymous classes are internally stored using some special
Protege metaclasses (e.g. OWLNames.Cls.COMPLEMENT_CLASS instead of owl:Class).
getProtegeTypes in interface RDFResourceRDFResource.getProtegeType()public Collection getDocumentation()
getDocumentation in interface edu.stanford.smi.protege.model.FramegetDocumentation in interface ProtegeInstancegetDocumentation in class edu.stanford.smi.protege.model.DefaultFrameRDFResource.getComments()public Collection getInferredTypes()
RDFResource
getInferredTypes in interface RDFResourcepublic Collection getIsDefinedBy()
RDFResource
getIsDefinedBy in interface RDFResourceRDFResource.addIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource),
RDFResource.removeIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource)public Collection getLabels()
RDFResource
getLabels in interface RDFResourcepublic String getLocalName()
RDFResource
getLocalName in interface RDFResourcepublic String getPrefixedName()
RDFResource
getPrefixedName in interface RDFResourcepublic String getNamespace()
RDFResource
getNamespace in interface RDFResourcepublic String getNamespacePrefix()
RDFResource
getNamespacePrefix in interface RDFResourcepublic OWLModel getOWLModel()
RDFResource
getOWLModel in interface RDFResourcepublic Collection getPossibleRDFProperties()
RDFResourcegetRDFProperties() which
only returns those properties that also have a value at this resource.
getPossibleRDFProperties in interface RDFResourceRDFResource.getRDFProperties()public Object getPropertyValue(RDFProperty property)
RDFResourcegetPropertyValue(property, true).
getPropertyValue in interface RDFResourceproperty - the property to get the values for
public RDFResource getPropertyValueAs(RDFProperty property,
Class javaInterface)
getPropertyValueAs in interface RDFResource
public Object getPropertyValue(RDFProperty property,
boolean includingSubproperties)
RDFResource
getPropertyValue in interface RDFResourceproperty - the property to get the values forincludingSubproperties - true to also return the subproperty values
public int getPropertyValueCount(RDFProperty property)
RDFResource
getPropertyValueCount in interface RDFResourceproperty - the property
public RDFSLiteral getPropertyValueLiteral(RDFProperty property)
RDFResource
getPropertyValueLiteral in interface RDFResourceproperty - the property to get the value from
public Collection getPropertyValueLiterals(RDFProperty property)
RDFResourcegetPropertyValues,
which may return values as primitive values (without the wrapping in an RDFSLiteral).
The caller must make sure that the property only holds datatype values
prior to the call.
getPropertyValueLiterals in interface RDFResourceproperty - the property to get the values from
public Collection getPropertyValues(RDFProperty property)
RDFResourcegetPropertyValues(property, false).
getPropertyValues in interface RDFResourceproperty - the property to get the values from
RDFResource.listPropertyValues(edu.stanford.smi.protegex.owl.model.RDFProperty)
public Collection getPropertyValuesAs(RDFProperty property,
Class javaInterface)
getPropertyValuesAs in interface RDFResource
public Collection getPropertyValues(RDFProperty property,
boolean includingSubproperties)
RDFResource
getPropertyValues in interface RDFResourceproperty - the property to get the values fromincludingSubproperties - true to also return the subproperty values
public Set getReferringAnonymousClasses()
RDFResource
getReferringAnonymousClasses in interface RDFResourcepublic Collection getRDFProperties()
RDFResource
getRDFProperties in interface RDFResourcepublic RDFSClass getRDFType()
RDFResource
getRDFType in interface RDFResourceRDFResource.getRDFTypes()public Collection getRDFTypes()
RDFResource
getRDFTypes in interface RDFResourceRDFResource.getRDFType()public Collection getSameAs()
RDFResource
getSameAs in interface RDFResourcepublic String getURI()
RDFResourcehttp://www.mydomain.org/myontology#Name
getURI in interface RDFResourcepublic Collection getVersionInfo()
RDFResource
getVersionInfo in interface RDFResourcepublic boolean hasPropertyValue(RDFProperty property)
RDFResource
hasPropertyValue in interface RDFResourceproperty - the property
public boolean hasPropertyValue(RDFProperty property,
boolean includingSubproperties)
RDFResource
hasPropertyValue in interface RDFResourceproperty - the propertyincludingSubproperties - true to also include subproperties of property
public boolean hasPropertyValue(RDFProperty property,
Object value)
RDFResource
hasPropertyValue in interface RDFResourceproperty - the propertyvalue - the value (possibly an RDFSLiteral)
public boolean hasPropertyValue(RDFProperty property,
Object value,
boolean includingSuperproperties)
RDFResourcegetPropertyValues(property).contains(value);.
hasPropertyValue in interface RDFResourceproperty - the propertyvalue - the value (possibly an RDFSLiteral)includingSuperproperties - true to also include subproperties of property
public boolean hasProtegeType(RDFSClass type)
RDFResourcehasProtegeType(type, false).
hasProtegeType in interface RDFResourcetype - the type in question
RDFResource.addProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass),
RDFResource.getProtegeTypes(),
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)
public boolean hasProtegeType(RDFSClass type,
boolean includingSuperclasses)
hasProtegeType in interface RDFResourcepublic boolean hasRDFType(RDFSClass type)
RDFResourcehasProtegeType(type, false).
hasRDFType in interface RDFResourcetype - the type in question
RDFResource.addProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass),
RDFResource.getProtegeTypes(),
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)
public boolean hasRDFType(RDFSClass type,
boolean includingSuperclasses)
hasRDFType in interface RDFResource
public boolean isValidPropertyValue(RDFProperty property,
Object object)
RDFResource
isValidPropertyValue in interface RDFResourceproperty - the property to check againstobject - the potential property value
OWLModel.isValidPropertyValue(edu.stanford.smi.protegex.owl.model.RDFResource, edu.stanford.smi.protegex.owl.model.RDFProperty, java.lang.Object)public Iterator listPropertyValues(RDFProperty property)
RDFResource
listPropertyValues in interface RDFResourceproperty - the property to get the values from
RDFResource.getPropertyValues(edu.stanford.smi.protegex.owl.model.RDFProperty)
public Iterator listPropertyValuesAs(RDFProperty property,
Class javaInterface)
listPropertyValuesAs in interface RDFResource
public Iterator listPropertyValues(RDFProperty property,
boolean includingSubproperties)
RDFResource
listPropertyValues in interface RDFResourceproperty - the property to get the values fromincludingSubproperties - true to also return values of subproperties
RDFResource.getPropertyValues(edu.stanford.smi.protegex.owl.model.RDFProperty)public Iterator listRDFTypes()
RDFResource
listRDFTypes in interface RDFResourcepublic void removeComment(String value)
RDFResource
removeComment in interface RDFResourcevalue - the comment to removeRDFResource.addComment(java.lang.String),
RDFResource.getComments()public void removeDifferentFrom(RDFResource resource)
removeDifferentFrom in interface RDFResourcepublic void removeIsDefinedBy(RDFResource resource)
removeIsDefinedBy in interface RDFResource
public void removeLabel(String label,
String language)
RDFResource
removeLabel in interface RDFResourcelabel - the text of the label to removelanguage - the language of the label or null
public void removePropertyValue(RDFProperty property,
Object value)
removePropertyValue in interface RDFResourcepublic void removePropertyValueListener(PropertyValueListener listener)
removePropertyValueListener in interface RDFResourcepublic void removeProtegeType(RDFSClass type)
RDFResource
removeProtegeType in interface RDFResourcetype - the type to removeRDFResource.addProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass),
RDFResource.getProtegeTypes()public void removeRDFType(RDFSClass type)
RDFResource
removeRDFType in interface RDFResourcetype - the type to removeRDFResource.addRDFType(edu.stanford.smi.protegex.owl.model.RDFSClass),
RDFResource.getRDFTypes()public void removeResourceListener(ResourceListener listener)
removeResourceListener in interface RDFResourcepublic void removeSameAs(RDFResource resource)
removeSameAs in interface RDFResourcepublic void removeVersionInfo(String versionInfo)
removeVersionInfo in interface RDFResourcepublic void setComment(String comment)
setComment in interface RDFResourcepublic void setComments(Collection comments)
setComments in interface RDFResourcepublic void setDocumentation(String value)
setDocumentation in interface edu.stanford.smi.protege.model.FramesetDocumentation in interface ProtegeInstancesetDocumentation in class edu.stanford.smi.protege.model.DefaultFrameRDFResource.setComment(java.lang.String)public void setInferredTypes(Collection types)
setInferredTypes in interface RDFResource
public void setPropertyValue(RDFProperty property,
Object value)
setPropertyValue in interface RDFResource
public void setPropertyValues(RDFProperty property,
Collection values)
setPropertyValues in interface RDFResourcepublic void setProtegeType(RDFSClass type)
setProtegeType in interface RDFResourcepublic void setRDFType(RDFSClass type)
setRDFType in interface RDFResourcepublic void setRDFTypes(Collection types)
setRDFTypes in interface RDFResourcepublic void setProtegeTypes(Collection types)
setProtegeTypes in interface RDFResourcepublic String toString()
toString in class edu.stanford.smi.protege.model.DefaultClspublic void setDirectBrowserSlotPattern(edu.stanford.smi.protege.model.BrowserSlotPattern slotPattern)
setDirectBrowserSlotPattern in interface edu.stanford.smi.protege.model.ClssetDirectBrowserSlotPattern in interface ProtegeClssetDirectBrowserSlotPattern in class edu.stanford.smi.protege.model.DefaultClspublic OWLBrowserSlotPattern getBrowserSlotPattern()
getBrowserSlotPattern in interface edu.stanford.smi.protege.model.ClsgetBrowserSlotPattern in interface ProtegeClsgetBrowserSlotPattern in class edu.stanford.smi.protege.model.DefaultCls
|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||