|
|||||||||||
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.DefaultSlot
edu.stanford.smi.protegex.owl.model.impl.DefaultRDFProperty
The default implementation of the OWLProperty interface.
Field Summary |
Fields inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|
Constructor Summary | |
DefaultRDFProperty()
|
|
DefaultRDFProperty(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id)
|
Method Summary | |
void |
accept(OWLModelVisitor visitor)
This method is provided to be used with the OWLModelVisitor ,
which is part of the visitor design pattern. |
void |
addComment(String comment)
Adds an rdfs:comment to this resource. |
void |
addDifferentFrom(RDFResource resource)
Adds an owl:differentFrom to this resource. |
void |
addEquivalentProperty(RDFProperty property)
Adds a property to the list of equivalent properties of this. |
void |
addIsDefinedBy(RDFResource instance)
Adds an rdfs:isDefinedBy to this resource. |
void |
addLabel(String label,
String language)
Adds a label to this. |
void |
addPropertyListener(PropertyListener listener)
Adds a PropertyListener to receive events on changes in the property. |
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 |
addSuperproperty(RDFProperty superProperty)
Adds a property to the super properties of this. |
void |
addUnionDomainClass(RDFSClass domainClass)
Adss a class to the domain of this, applying union semantics. |
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. |
boolean |
equalsStructurally(RDFObject object)
Determines whether or not the specified class is structurally equal to this class. |
RDFResource |
getAllValuesFromOnTypes(RDFProperty property)
Checks for rdfs:range or owl:allValuesFrom restrictions on the types of this resource. |
ImageIcon |
getBaseImageIcon()
|
Collection |
getComments()
Gets all rdfs:comments for this resource. |
Collection |
getDifferentFrom()
Gets all owl:differentFroms for this resource. |
Collection |
getDocumentation()
|
RDFSClass |
getDomain(boolean includingSuperproperties)
Gets the first value of the rdfs:domain property. |
Collection |
getDomains(boolean includingSuperproperties)
Gets the values of the rdfs:domain property. |
Collection |
getEquivalentProperties()
Gets the equivalent slots of this. |
RDFProperty |
getFirstSuperproperty()
Gets the first superproperty of this (if any exists). |
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). |
Icon |
getIcon()
|
Class |
getIconLocation()
Gets a class that serves as a location of the icon resource. |
String |
getIconName()
Gets the local name of an icon for this type of resource. |
Collection |
getInferredTypes()
Gets the direct types that were inferred during the most recent execution of a reasoner. |
Icon |
getInheritedIcon()
|
RDFProperty |
getInverseProperty()
Gets the inverse property of this. |
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. |
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. |
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. |
RDFResource |
getRange()
Equivalent to getRange(false) . |
RDFResource |
getRange(boolean includingSuperproperties)
Gets the range defined at this. |
RDFSDatatype |
getRangeDatatype()
Gets the direct or inherited RDFSDatatype of this. |
Collection |
getRanges(boolean includingSuperproperties)
Gets all range definitions at this (or optionally its superproperties). |
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. |
Collection |
getSubproperties(boolean transitive)
Gets the subproperties of this, and possibly the subproperties of the subproperties etc. |
int |
getSubpropertyCount()
Gets the number of properties that have this as rdfs:subPropertyOf. |
Collection |
getSuperproperties(boolean transitive)
Gets the superproperties of this, and possibly the superproperties of the superproperties etc. |
int |
getSuperpropertyCount()
Gets the number of values of the rdfs:subPropertyOf properties. |
Collection |
getUnionDomain()
Equivalent to getUnionDomain(false) . |
Collection |
getUnionDomain(boolean includingSuperproperties)
Gets the domain of this, with union semantics. |
Collection |
getUnionRangeClasses()
Gets the range of this with union semantics. |
String |
getURI()
Gets the full URI of this resource. |
Collection |
getVersionInfo()
Gets the values of the owl:versionInfo property. |
boolean |
hasDatatypeRange()
Checks whether this can take only primitive, datatype values. |
boolean |
hasObjectRange()
Checks whether this can take only object/reference values. |
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 |
hasProtegeType(RDFSClass type)
Checks whether this resource has a given type. |
boolean |
hasProtegeType(RDFSClass type,
boolean includingSuperclasses)
|
boolean |
hasRange(boolean includingSuperproperties)
Checks whether this has any concrete range definition. |
boolean |
hasRDFType(RDFSClass type)
Checks whether this resource has a given rdf:type. |
boolean |
hasRDFType(RDFSClass type,
boolean includingSuperclasses)
|
boolean |
isAnnotationProperty()
Checks whether this Slot is an OWL AnnotationProperty. |
boolean |
isAnonymous()
Checks whether this represents an anonymous resource / bnode. |
boolean |
isDeprecated()
Checks whether this has been declared deprecated (using owl:DeprecatedClass or owl:DeprecatedProperty). |
boolean |
isDomainDefined()
Checks whether the domain of this property has been explicitly defined. |
boolean |
isDomainDefined(boolean transitive)
Checks whether the domain of this property has been explicitly defined. |
private boolean |
isDomainDefined(Set reached)
|
boolean |
isFunctional()
Checks whether this is a functional property. |
boolean |
isRangeDefined()
Checks whether this property defines its own range. |
boolean |
isReadOnly()
Checks if the values of this slot should be treated as read-only. |
boolean |
isSubpropertyOf(RDFProperty superProperty,
boolean transitive)
Checks if this is a subproperty of a given superproperty. |
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 |
removeComment(String value)
Removes an rdfs:comment from this resource. |
void |
removeDifferentFrom(RDFResource resource)
|
void |
removeEquivalentProperty(OWLProperty property)
Removes a property from the list of equivalent properties. |
void |
removeIsDefinedBy(RDFResource resource)
|
void |
removeLabel(String label,
String language)
Removes a label that has been previously added. |
void |
removePropertyListener(PropertyListener listener)
Removes a PropertyListener to receive events on changes in the property. |
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 |
removeSuperproperty(RDFProperty property)
Removes a superproperty. |
void |
removeUnionDomainClass(RDFSClass domainClass)
Removes a domain class, with union semantics. |
void |
removeVersionInfo(String versionInfo)
|
void |
setComment(String comment)
|
void |
setComments(Collection comments)
|
void |
setDeprecated(boolean value)
|
void |
setDocumentation(String value)
|
void |
setDomain(RDFSClass domainClass)
Sets the value of rdfs:domain to the given class. |
void |
setDomainDefined(boolean value)
Specifies whether the domain of this property is defined or not. |
void |
setDomains(Collection domainClasses)
Sets the values of the rdfs:domain property at this. |
void |
setEquivalentProperties(Collection slots)
Sets the equivalent properties of this. |
void |
setFunctional(boolean value)
Adds or removes owl:FunctionalProperty to/from the rdf:types of this. |
void |
setInferredTypes(Collection types)
|
void |
setInverseProperty(RDFProperty inverseProperty)
Sets the inverse property of this. |
void |
setPropertyValue(RDFProperty property,
Object value)
|
void |
setPropertyValues(RDFProperty property,
Collection values)
|
void |
setProtegeType(RDFSClass type)
|
void |
setProtegeTypes(Collection types)
|
void |
setRange(RDFResource range)
Sets the rdfs:range of this. |
void |
setRanges(Collection ranges)
Sets all ranges of this (in the unlikely case that multiple are needed). |
void |
setRDFType(RDFSClass type)
|
void |
setRDFTypeOfSubproperties(RDFSNamedClass type)
|
void |
setRDFTypes(Collection types)
|
void |
setUnionRangeClasses(Collection classes)
|
void |
synchronizeDomainAndRangeOfInverse()
Makes sure that the range and domain of the current inverse property match the domain and range of this. |
private void |
synchronizeDomainOfInverseWithRangeOfThis()
|
private void |
synchronizeRangeOfInverseWithDomainOfThis()
|
protected void |
updateRDFType(boolean value,
RDFSClass metaclass)
|
Methods inherited from class edu.stanford.smi.protege.model.DefaultSlot |
addDirectSuperslot, addSlotListener, deepCopy, getAllowedClses, getAllowedParents, getAllowedValues, getAllowsMultipleValues, getAssociatedFacet, getDefaultValues, getDirectDomain, getDirectSubslotCount, getDirectSubslots, getDirectSuperslotCount, getDirectSuperslots, getDomain, getInverseSlot, getMaximumCardinality, getMaximumValue, getMinimumCardinality, getMinimumValue, getSubslots, getSuperslots, getTemplateSlotClses, getValues, getValueType, hasDirectSuperslot, hasSuperslot, hasValueAtSomeFrame, moveDirectSubslot, removeDirectSuperslot, removeSlotListener, setAllowedClses, setAllowedParents, setAllowedValues, setAllowsMultipleValues, setAssociatedFacet, setDefaultValues, setDirectTypeOfSubslots, setInverseSlot, setMaximumCardinality, setMaximumValue, setMinimumCardinality, setMinimumValue, setValues, setValueType, toString |
Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance |
addDirectType, addInstanceListener, copy, 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.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.Slot |
getTemplateSlotClses |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.RDFResource |
delete, getBrowserText, getName, isVisible, setName, setVisible |
Constructor Detail |
public DefaultRDFProperty(edu.stanford.smi.protege.model.KnowledgeBase kb, edu.stanford.smi.protege.model.FrameID id)
public DefaultRDFProperty()
Method Detail |
public void addPropertyListener(PropertyListener listener)
RDFProperty
addPropertyListener
in interface RDFProperty
listener
- the PropertyListener to add (must be a PropertyAdapter)public void addSuperproperty(RDFProperty superProperty)
RDFProperty
addSuperproperty
in interface RDFProperty
superProperty
- the new super propertypublic void addEquivalentProperty(RDFProperty property)
RDFProperty
addEquivalentProperty
in interface RDFProperty
property
- the property to declare to be equivalent to thispublic void addUnionDomainClass(RDFSClass domainClass)
RDFProperty
addUnionDomainClass
in interface RDFProperty
domainClass
- the new domain classpublic boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally
in interface RDFObject
object
- The class to test against.
true
if the class is structurally equal
to this, false
if the class is not structurally
equal to this.public ImageIcon getBaseImageIcon()
public RDFSClass getDomain(boolean includingSuperproperties)
RDFProperty
getDomain
in interface RDFProperty
includingSuperproperties
- true to also consider superproperties
public Collection getDomains(boolean includingSuperproperties)
RDFProperty
getDomains
in interface RDFProperty
includingSuperproperties
- true to also consider superproperties
public Collection getEquivalentProperties()
RDFProperty
getEquivalentProperties
in interface RDFProperty
public RDFProperty getFirstSuperproperty()
RDFProperty
getFirstSuperproperty
in interface RDFProperty
public Icon getInheritedIcon()
getInheritedIcon
in interface RDFProperty
public Icon getIcon()
getIcon
in interface ProtegeInstance
public String getIconName()
RDFResource
getIconLocation()
.
getIconName
in interface RDFResource
RDFResource.getIconLocation()
public RDFProperty getInverseProperty()
RDFProperty
getInverseProperty
in interface RDFProperty
public RDFResource getRange()
RDFProperty
getRange(false)
.
getRange
in interface RDFProperty
public RDFResource getRange(boolean includingSuperproperties)
RDFProperty
getRange
in interface RDFProperty
includingSuperproperties
- true to also consider superproperties
RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)
,
RDFProperty.hasDatatypeRange()
,
RDFProperty.hasObjectRange()
public RDFSDatatype getRangeDatatype()
RDFProperty
getRangeDatatype
in interface RDFProperty
public Collection getRanges(boolean includingSuperproperties)
RDFProperty
getRanges
in interface RDFProperty
includingSuperproperties
- true to also consider superproperties
public Collection getSubproperties(boolean transitive)
RDFProperty
getSubproperties
in interface RDFProperty
transitive
- true to get subproperties recursively
public int getSubpropertyCount()
RDFProperty
getSubpropertyCount
in interface RDFProperty
public Collection getSuperproperties(boolean transitive)
RDFProperty
getSuperproperties
in interface RDFProperty
transitive
- true to get superproperties recursively
public int getSuperpropertyCount()
RDFProperty
getSuperpropertyCount
in interface RDFProperty
public Collection getUnionDomain()
RDFProperty
getUnionDomain(false)
.
getUnionDomain
in interface RDFProperty
public Collection getUnionDomain(boolean includingSuperproperties)
RDFProperty
getUnionDomain
in interface RDFProperty
includingSuperproperties
- true to walk up the superproperty tree
public Collection getUnionRangeClasses()
RDFProperty
getUnionRangeClasses
in interface RDFProperty
public boolean hasDatatypeRange()
RDFProperty
hasDatatypeRange
in interface RDFProperty
public boolean hasObjectRange()
RDFProperty
hasObjectRange
in interface RDFProperty
public boolean hasRange(boolean includingSuperproperties)
RDFProperty
hasRange
in interface RDFProperty
includingSuperproperties
- true to also look at the range of the superproperties
public boolean isSubpropertyOf(RDFProperty superProperty, boolean transitive)
RDFProperty
isSubpropertyOf
in interface RDFProperty
superProperty
- the potential superpropertytransitive
- true to traverse the superproperty hierarchy recursively
public boolean isAnnotationProperty()
RDFProperty
isAnnotationProperty
in interface RDFProperty
public boolean isDomainDefined()
RDFProperty
isDomainDefined(false)
.
isDomainDefined
in interface RDFProperty
public boolean isDomainDefined(boolean transitive)
RDFProperty
isDomainDefined
in interface RDFProperty
transitive
- true to also consider the superproperties recursively
private boolean isDomainDefined(Set reached)
public boolean isFunctional()
RDFProperty
isFunctional
in interface RDFProperty
public boolean isRangeDefined()
RDFProperty
isRangeDefined
in interface RDFProperty
public boolean isReadOnly()
RDFProperty
isReadOnly
in interface RDFProperty
public void removeEquivalentProperty(OWLProperty property)
RDFProperty
removeEquivalentProperty
in interface RDFProperty
property
- the equivalent property to removepublic void removePropertyListener(PropertyListener listener)
RDFProperty
removePropertyListener
in interface RDFProperty
listener
- the PropertyListener to remove (must be a PropertyAdapter)public void removeSuperproperty(RDFProperty property)
RDFProperty
removeSuperproperty
in interface RDFProperty
property
- the property to remove from the superpropertiespublic void removeUnionDomainClass(RDFSClass domainClass)
RDFProperty
removeUnionDomainClass
in interface RDFProperty
domainClass
- the domain class to remove from the domainpublic void setDomainDefined(boolean value)
RDFProperty
setDomainDefined
in interface RDFProperty
public void setEquivalentProperties(Collection slots)
RDFProperty
setEquivalentProperties
in interface RDFProperty
slots
- a Collection of RDFProperty objectspublic void setFunctional(boolean value)
RDFProperty
setFunctional
in interface RDFProperty
value
- true to make this a functional property, false to make this unfunctionalpublic void setInverseProperty(RDFProperty inverseProperty)
RDFProperty
setInverseProperty
in interface RDFProperty
inverseProperty
- the new inverse property or null to clear the valuepublic void setRange(RDFResource range)
RDFProperty
OWLModel.getXSDint
. If this is supposed
to hold instances of multiple classes, you can pass in a union class.
Note that this call will completely replace any previous ranges of this.
setRange
in interface RDFProperty
range
- the new range of this property or null to delete the rangepublic void setRanges(Collection ranges)
RDFProperty
setRanges
in interface RDFProperty
ranges
- a Collection of RDFResources (possibly empty)RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)
public void setRDFTypeOfSubproperties(RDFSNamedClass type)
public void setUnionRangeClasses(Collection classes)
setUnionRangeClasses
in interface RDFProperty
public void synchronizeDomainAndRangeOfInverse()
RDFProperty
synchronizeDomainAndRangeOfInverse
in interface RDFProperty
private void synchronizeDomainOfInverseWithRangeOfThis()
private void synchronizeRangeOfInverseWithDomainOfThis()
protected void updateRDFType(boolean value, RDFSClass metaclass)
public 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 ProtegeSlot
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 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 Set getReferringAnonymousClasses()
RDFResource
getReferringAnonymousClasses
in interface RDFResource
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 isAnonymous()
RDFResource
OWLModel.isAnonymousResourceName()
.
isAnonymous
in interface RDFResource
OWLModel.isAnonymousResourceName(java.lang.String)
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 setDomain(RDFSClass domainClass)
RDFProperty
setDomain
in interface RDFProperty
domainClass
- the new domainpublic void setDomains(Collection domainClasses)
RDFProperty
setDomains
in interface RDFProperty
domainClasses
- the new domains (RDFSClasses)public void setInferredTypes(Collection types)
setInferredTypes
in interface RDFResource
public void setDocumentation(String value)
setDocumentation
in interface ProtegeSlot
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 setProtegeTypes(Collection types)
setProtegeTypes
in interface RDFResource
public void setRDFType(RDFSClass type)
setRDFType
in interface RDFResource
public void setRDFTypes(Collection types)
setRDFTypes
in interface RDFResource
public boolean isDeprecated()
Deprecatable
isDeprecated
in interface Deprecatable
public void setDeprecated(boolean value)
setDeprecated
in interface Deprecatable
public void accept(OWLModelVisitor visitor)
Visitable
OWLModelVisitor
,
which is part of the visitor design pattern. By implementing this method,
instances of the implementing class are stating that they can accept an
OWLModelVisitor
accept
in interface Visitable
visitor
- The visitor that will operate on this object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |