|
|||||||||||
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
A basic implementation of the RDFSClass interface that provides support for disjoint classes.
Field Summary |
Fields inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|
Constructor Summary | |
(package private) |
AbstractRDFSClass()
|
|
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. |
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. |
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. the abbreviated name of the namespace. |
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. |
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. |
private Collection |
getVisibleFrames(Collection frames)
|
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. whether it is a subclass of rdfs:Class. |
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 |
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)
|
Methods inherited from class edu.stanford.smi.protege.model.DefaultCls |
addClsListener, addDirectSuperclass, addDirectTemplateSlot, addTemplateFacetValue, addTemplateSlotValue, createDirectInstance, getBrowserSlot, getBrowserSlotPattern, 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, setAbstract, setDirectBrowserSlot, setDirectBrowserSlotPattern, setDirectTypeOfSubclasses, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType, toString |
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, 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, readExternal, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible, writeExternal |
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 |
createClone, 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 |
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.RDFResource |
delete, getBrowserText, getIconName, getName, isVisible, setName, setVisible |
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)
AbstractRDFSClass()
Method Detail |
protected void addAnonymousClses(Collection target, Collection clses)
public void addClassListener(ClassListener listener)
RDFSClass
addClassListener
in interface RDFSClass
listener
- the ClassListener to addpublic void addSuperclass(RDFSClass superclass)
RDFSClass
addSuperclass
in interface RDFSClass
superclass
- public void addToUnionDomainOf(RDFProperty property)
public RDFResource createInstance(String name)
RDFSClass
createInstance
in interface RDFSClass
name
- the name of the new instance or null for a default name
protected AbstractOWLModel getAbstractOWLModel()
public RDFSClass getDefinition()
public Collection getUnionDomainProperties()
RDFSClass
getUnionDomainProperties(false)
.
getUnionDomainProperties
in interface RDFSClass
public Collection getPureSuperclasses()
RDFSClass
getSuperclasses(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 RDFSClass
transitive
- true to include superclasses
private Collection getVisibleFrames(Collection frames)
public Collection getDisjointClasses()
public Collection getEquivalentClasses()
RDFSClass
getEquivalentClasses
in interface RDFSClass
public int getInferredInstanceCount()
RDFSClass
getInferredInstances(false).size()
but
could be optimized internally for better performance.
getInferredInstanceCount
in interface RDFSClass
RDFSClass.getInferredInstances(boolean)
public Collection getInferredInstances(boolean includingSubclasses)
RDFSClass
getInferredInstances
in interface RDFSClass
includingSubclasses
- true to include instances of subclasses of this
public int getInstanceCount(boolean includingSubclasses)
RDFSClass
getInstanceCount
in interface RDFSClass
includingSubclasses
- true to also include the instances of the subclasses
public Collection getInstances(boolean includingSubclasses)
RDFSClass
getInstances
in interface RDFSClass
includingSubclasses
- true to also get the instances of the subclasses
public Collection getNamedSubclasses()
RDFSClass
getNamedSubclasses
in interface RDFSClass
public Collection getNamedSuperclasses()
RDFSClass
getNamedSuperclasses
in interface RDFSClass
public Collection getNamedSubclasses(boolean transitive)
RDFSClass
getNamedSubclasses
in interface RDFSClass
transitive
- true to include the descendent classes
or false to only include the direct named subclasses
public Collection getNamedSuperclasses(boolean transitive)
RDFSClass
getNamedSuperclasses
in interface RDFSClass
transitive
- true to include the ancestor classes
or false to only include the direct named superclasses
public String getParsableExpression()
getParsableExpression
in interface RDFSClass
public int getSubclassCount()
RDFSClass
getSubclassCount
in interface RDFSClass
public Collection getSubclasses(boolean transitive)
RDFSClass
getSubclasses
in interface RDFSClass
public int getSuperclassCount()
RDFSClass
getSuperclassCount
in interface RDFSClass
public Collection getSuperclasses(boolean transitive)
RDFSClass
getSuperclasses
in interface RDFSClass
public boolean hasPropertyValueWithBrowserText(RDFProperty property, String browserText)
RDFSClass
hasPropertyValueWithBrowserText
in interface RDFSClass
property
- 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 RDFSClass
other
- the Cls to compare with
public boolean isMetaclass()
RDFSClass
isMetaclass
in interface RDFSClass
public boolean isSubclassOf(RDFSClass superclass)
RDFSClass
isSubclassOf
in interface RDFSClass
superclass
- the superclass in question
public void removeClassListener(ClassListener listener)
RDFSClass
removeClassListener
in interface RDFSClass
listener
- the ClassListener to removepublic void removeSuperclass(RDFSClass superclass)
RDFSClass
removeSuperclass
in interface RDFSClass
superclass
- the superclass to removepublic void addComment(String comment)
RDFResource
addComment
in interface RDFResource
comment
- the comment to addRDFResource.getComments()
,
RDFResource.removeComment(java.lang.String)
public void addDifferentFrom(RDFResource resource)
RDFResource
addDifferentFrom
in interface RDFResource
resource
- the resource to addRDFResource.getDifferentFrom()
,
RDFResource.removeDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource)
public void addIsDefinedBy(RDFResource instance)
RDFResource
addIsDefinedBy
in interface RDFResource
instance
- 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 RDFResource
label
- the text of the label to addlanguage
- the language, or null for no languagepublic void addPropertyValue(RDFProperty property, Object value)
RDFResource
addPropertyValue
in interface RDFResource
property
- 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 RDFResource
listener
- the listener to addRDFResource.removePropertyValueListener(edu.stanford.smi.protegex.owl.model.event.PropertyValueListener)
public void addProtegeType(RDFSClass type)
RDFResource
addProtegeType
in interface RDFResource
type
- the type to addRDFResource.getProtegeTypes()
,
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)
public void addRDFType(RDFSClass type)
RDFResource
addRDFType
in interface RDFResource
type
- the rdf:type to addRDFResource.getProtegeTypes()
,
RDFResource.removeProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)
public void addResourceListener(ResourceListener listener)
RDFResource
addResourceListener
in interface RDFResource
listener
- the listener to addRDFResource.removeResourceListener(edu.stanford.smi.protegex.owl.model.event.ResourceListener)
public void addSameAs(RDFResource resource)
RDFResource
addSameAs
in interface RDFResource
resource
- the resource to addRDFResource.getSameAs()
,
RDFResource.removeSameAs(edu.stanford.smi.protegex.owl.model.RDFResource)
public void addVersionInfo(String versionInfo)
RDFResource
addVersionInfo
in interface RDFResource
versionInfo
- the version info to addRDFResource.getVersionInfo()
,
RDFResource.removeVersionInfo(java.lang.String)
public RDFResource as(Class javaInterface)
RDFResource
as
in interface RDFResource
javaInterface
- the Java interface to convert to
public boolean canAs(Class javaInterface)
RDFResource
canAs
in interface RDFResource
javaInterface
- the Java interface to test
public RDFResource getAllValuesFromOnTypes(RDFProperty property)
RDFResource
getAllValuesFromOnTypes
in interface RDFResource
property
- the property to check for restrictions
public Collection getComments()
RDFResource
getComments
in interface RDFResource
RDFResource.addComment(java.lang.String)
,
RDFResource.removeComment(java.lang.String)
public Collection getDifferentFrom()
RDFResource
getDifferentFrom
in interface RDFResource
RDFResource.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 RDFResource
property
- the property to look for restrictions
public Class getIconLocation()
RDFResource
getIconName()
.
getIconLocation
in interface RDFResource
RDFResource.getIconName()
public RDFSClass getProtegeType()
RDFResource
getProtegeType
in interface RDFResource
RDFResource.getProtegeTypes()
public Collection getProtegeTypes()
RDFResource
getRDFTypes()
: Anonymous classes are internally stored using some special
Protege metaclasses (e.g. OWLNames.Cls.COMPLEMENT_CLASS instead of owl:Class).
getProtegeTypes
in interface RDFResource
RDFResource.getProtegeType()
public Collection getDocumentation()
getDocumentation
in interface ProtegeInstance
public Collection getInferredTypes()
RDFResource
getInferredTypes
in interface RDFResource
public Collection getIsDefinedBy()
RDFResource
getIsDefinedBy
in interface RDFResource
RDFResource.addIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource)
,
RDFResource.removeIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource)
public Collection getLabels()
RDFResource
getLabels
in interface RDFResource
public String getLocalName()
RDFResource
getLocalName
in interface RDFResource
public String getNamespace()
RDFResource
getNamespace
in interface RDFResource
public String getNamespacePrefix()
RDFResource
getNamespacePrefix
in interface RDFResource
public OWLModel getOWLModel()
RDFResource
getOWLModel
in interface RDFResource
public Collection getPossibleRDFProperties()
RDFResource
getRDFProperties()
which
only returns those properties that also have a value at this resource.
getPossibleRDFProperties
in interface RDFResource
RDFResource.getRDFProperties()
public Object getPropertyValue(RDFProperty property)
RDFResource
getPropertyValue(property, true)
.
getPropertyValue
in interface RDFResource
property
- 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 RDFResource
property
- the property to get the values forincludingSubproperties
- true to also return the subproperty values
public int getPropertyValueCount(RDFProperty property)
RDFResource
getPropertyValueCount
in interface RDFResource
property
- the property
public RDFSLiteral getPropertyValueLiteral(RDFProperty property)
RDFResource
getPropertyValueLiteral
in interface RDFResource
property
- the property to get the value from
public Collection getPropertyValueLiterals(RDFProperty property)
RDFResource
getPropertyValues
,
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 RDFResource
property
- the property to get the values from
public Collection getPropertyValues(RDFProperty property)
RDFResource
getPropertyValues(property, false)
.
getPropertyValues
in interface RDFResource
property
- 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 RDFResource
property
- the property to get the values fromincludingSubproperties
- true to also return the subproperty values
public Set getReferringAnonymousClasses()
RDFResource
getReferringAnonymousClasses
in interface RDFResource
public Collection getRDFProperties()
RDFResource
getRDFProperties
in interface RDFResource
public RDFSClass getRDFType()
RDFResource
getRDFType
in interface RDFResource
RDFResource.getRDFTypes()
public Collection getRDFTypes()
RDFResource
getRDFTypes
in interface RDFResource
RDFResource.getRDFType()
public Collection getSameAs()
RDFResource
getSameAs
in interface RDFResource
public String getURI()
RDFResource
http://www.mydomain.org/myontology#Name
getURI
in interface RDFResource
public Collection getVersionInfo()
RDFResource
getVersionInfo
in interface RDFResource
public boolean hasPropertyValue(RDFProperty property)
RDFResource
hasPropertyValue
in interface RDFResource
property
- the property
public boolean hasPropertyValue(RDFProperty property, boolean includingSubproperties)
RDFResource
hasPropertyValue
in interface RDFResource
property
- the propertyincludingSubproperties
- true to also include subproperties of property
public boolean hasPropertyValue(RDFProperty property, Object value)
RDFResource
hasPropertyValue
in interface RDFResource
property
- the propertyvalue
- the value (possibly an RDFSLiteral)
public boolean hasPropertyValue(RDFProperty property, Object value, boolean includingSuperproperties)
RDFResource
getPropertyValues(property).contains(value);
.
hasPropertyValue
in interface RDFResource
property
- the propertyvalue
- the value (possibly an RDFSLiteral)includingSuperproperties
- true to also include subproperties of property
public boolean hasProtegeType(RDFSClass type)
RDFResource
hasProtegeType(type, false)
.
hasProtegeType
in interface RDFResource
type
- 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 RDFResource
public boolean hasRDFType(RDFSClass type)
RDFResource
hasProtegeType(type, false)
.
hasRDFType
in interface RDFResource
type
- 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 RDFResource
property
- 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 RDFResource
property
- 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 RDFResource
property
- 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 RDFResource
public void removeComment(String value)
RDFResource
removeComment
in interface RDFResource
value
- the comment to removeRDFResource.addComment(java.lang.String)
,
RDFResource.getComments()
public void removeDifferentFrom(RDFResource resource)
removeDifferentFrom
in interface RDFResource
public void removeIsDefinedBy(RDFResource resource)
removeIsDefinedBy
in interface RDFResource
public void removeLabel(String label, String language)
RDFResource
removeLabel
in interface RDFResource
label
- the text of the label to removelanguage
- the language of the label or nullpublic void removePropertyValue(RDFProperty property, Object value)
removePropertyValue
in interface RDFResource
public void removePropertyValueListener(PropertyValueListener listener)
removePropertyValueListener
in interface RDFResource
public void removeProtegeType(RDFSClass type)
RDFResource
removeProtegeType
in interface RDFResource
type
- the type to removeRDFResource.addProtegeType(edu.stanford.smi.protegex.owl.model.RDFSClass)
,
RDFResource.getProtegeTypes()
public void removeRDFType(RDFSClass type)
RDFResource
removeRDFType
in interface RDFResource
type
- the type to removeRDFResource.addRDFType(edu.stanford.smi.protegex.owl.model.RDFSClass)
,
RDFResource.getRDFTypes()
public void removeResourceListener(ResourceListener listener)
removeResourceListener
in interface RDFResource
public void removeSameAs(RDFResource resource)
removeSameAs
in interface RDFResource
public void removeVersionInfo(String versionInfo)
removeVersionInfo
in interface RDFResource
public void setComment(String comment)
setComment
in interface RDFResource
public void setComments(Collection comments)
setComments
in interface RDFResource
public void setDocumentation(String value)
setDocumentation
in interface ProtegeInstance
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 RDFResource
public void setProtegeType(RDFSClass type)
setProtegeType
in interface RDFResource
public void setRDFType(RDFSClass type)
setRDFType
in interface RDFResource
public void setRDFTypes(Collection types)
setRDFTypes
in interface RDFResource
public void setProtegeTypes(Collection types)
setProtegeTypes
in interface RDFResource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |