|
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.DefaultSlot
edu.stanford.smi.protegex.owl.model.impl.DefaultRDFProperty
public class DefaultRDFProperty
The default implementation of the OWLProperty interface.
| 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. |
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. |
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. |
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. |
boolean |
isFunctional()
Checks whether this is a functional property. |
boolean |
isPureAnnotationProperty()
Checks whether this property is a real annotation 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. |
protected boolean |
isUntyped()
|
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)
|
String |
toString()
|
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, rename, setAllowedClses, setAllowedParents, setAllowedValues, setAllowsMultipleValues, setAssociatedFacet, setDefaultValues, setDirectTypeOfSubslots, setInverseSlot, setMaximumCardinality, setMaximumValue, setMinimumCardinality, setMinimumValue, setValues, setValueType |
| 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, 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.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.Slot |
|---|
getTemplateSlotClses, 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, 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 |
| 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 RDFPropertylistener - the PropertyListener to add (must be a PropertyAdapter)public void addSuperproperty(RDFProperty superProperty)
RDFProperty
addSuperproperty in interface RDFPropertysuperProperty - the new super propertypublic void addEquivalentProperty(RDFProperty property)
RDFProperty
addEquivalentProperty in interface RDFPropertyproperty - the property to declare to be equivalent to thispublic void addUnionDomainClass(RDFSClass domainClass)
RDFProperty
addUnionDomainClass in interface RDFPropertydomainClass - the new domain classpublic boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally in interface RDFObjectobject - 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 RDFPropertyincludingSuperproperties - true to also consider superproperties
public Collection getDomains(boolean includingSuperproperties)
RDFProperty
getDomains in interface RDFPropertyincludingSuperproperties - true to also consider superproperties
public Collection getEquivalentProperties()
RDFProperty
getEquivalentProperties in interface RDFPropertypublic RDFProperty getFirstSuperproperty()
RDFProperty
getFirstSuperproperty in interface RDFPropertypublic Icon getInheritedIcon()
getInheritedIcon in interface RDFPropertypublic Icon getIcon()
getIcon in interface edu.stanford.smi.protege.model.FramegetIcon in interface ProtegeInstancegetIcon in class edu.stanford.smi.protege.model.DefaultSlotProtegeUI.getIcon(edu.stanford.smi.protegex.owl.model.RDFResource)protected boolean isUntyped()
public String getIconName()
RDFResourcegetIconLocation().
getIconName in interface RDFResourceRDFResource.getIconLocation()public RDFProperty getInverseProperty()
RDFProperty
getInverseProperty in interface RDFPropertypublic RDFResource getRange()
RDFPropertygetRange(false).
getRange in interface RDFPropertypublic RDFResource getRange(boolean includingSuperproperties)
RDFProperty
getRange in interface RDFPropertyincludingSuperproperties - 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 RDFPropertypublic Collection getRanges(boolean includingSuperproperties)
RDFProperty
getRanges in interface RDFPropertyincludingSuperproperties - true to also consider superproperties
public Collection getSubproperties(boolean transitive)
RDFProperty
getSubproperties in interface RDFPropertytransitive - true to get subproperties recursively
public int getSubpropertyCount()
RDFProperty
getSubpropertyCount in interface RDFPropertypublic Collection getSuperproperties(boolean transitive)
RDFProperty
getSuperproperties in interface RDFPropertytransitive - true to get superproperties recursively
public int getSuperpropertyCount()
RDFProperty
getSuperpropertyCount in interface RDFPropertypublic Collection getUnionDomain()
RDFPropertygetUnionDomain(false).
getUnionDomain in interface RDFPropertypublic Collection getUnionDomain(boolean includingSuperproperties)
RDFProperty
getUnionDomain in interface RDFPropertyincludingSuperproperties - true to walk up the superproperty tree
public Collection getUnionRangeClasses()
RDFProperty
getUnionRangeClasses in interface RDFPropertypublic boolean hasDatatypeRange()
RDFProperty
hasDatatypeRange in interface RDFPropertypublic boolean hasObjectRange()
RDFProperty
hasObjectRange in interface RDFPropertypublic boolean hasRange(boolean includingSuperproperties)
RDFProperty
hasRange in interface RDFPropertyincludingSuperproperties - true to also look at the range of the superproperties
public boolean isSubpropertyOf(RDFProperty superProperty,
boolean transitive)
RDFProperty
isSubpropertyOf in interface RDFPropertysuperProperty - the potential superpropertytransitive - true to traverse the superproperty hierarchy recursively
public boolean isAnnotationProperty()
RDFProperty
isAnnotationProperty in interface RDFPropertypublic boolean isPureAnnotationProperty()
RDFProperty
isPureAnnotationProperty in interface RDFPropertypublic boolean isDomainDefined()
RDFPropertyisDomainDefined(false).
isDomainDefined in interface RDFPropertypublic boolean isDomainDefined(boolean transitive)
RDFProperty
isDomainDefined in interface RDFPropertytransitive - true to also consider the superproperties recursively
public boolean isFunctional()
RDFProperty
isFunctional in interface RDFPropertypublic boolean isRangeDefined()
RDFProperty
isRangeDefined in interface RDFPropertypublic boolean isReadOnly()
RDFProperty
isReadOnly in interface RDFPropertypublic void removeEquivalentProperty(OWLProperty property)
RDFProperty
removeEquivalentProperty in interface RDFPropertyproperty - the equivalent property to removepublic void removePropertyListener(PropertyListener listener)
RDFProperty
removePropertyListener in interface RDFPropertylistener - the PropertyListener to remove (must be a PropertyAdapter)public void removeSuperproperty(RDFProperty property)
RDFProperty
removeSuperproperty in interface RDFPropertyproperty - the property to remove from the superpropertiespublic void removeUnionDomainClass(RDFSClass domainClass)
RDFProperty
removeUnionDomainClass in interface RDFPropertydomainClass - the domain class to remove from the domainpublic void setDomainDefined(boolean value)
RDFProperty
setDomainDefined in interface RDFPropertypublic void setEquivalentProperties(Collection slots)
RDFProperty
setEquivalentProperties in interface RDFPropertyslots - a Collection of RDFProperty objectspublic void setFunctional(boolean value)
RDFProperty
setFunctional in interface RDFPropertyvalue - true to make this a functional property, false to make this unfunctionalpublic void setInverseProperty(RDFProperty inverseProperty)
RDFProperty
setInverseProperty in interface RDFPropertyinverseProperty - the new inverse property or null to clear the valuepublic void setRange(RDFResource range)
RDFPropertyOWLModel.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 RDFPropertyrange - the new range of this property or null to delete the rangepublic void setRanges(Collection ranges)
RDFProperty
setRanges in interface RDFPropertyranges - 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
protected void updateRDFType(boolean value,
RDFSClass metaclass)
public 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 edu.stanford.smi.protege.model.SlotgetDocumentation in interface ProtegeInstancegetDocumentation in interface ProtegeSlotgetDocumentation in class edu.stanford.smi.protege.model.DefaultSlotRDFResource.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 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 Set getReferringAnonymousClasses()
RDFResource
getReferringAnonymousClasses in interface RDFResourcepublic 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 RDFResourcepublic boolean isAnonymous()
RDFResourceOWLModel.isAnonymousResourceName().
isAnonymous in interface RDFResourceOWLModel.isAnonymousResourceName(java.lang.String)
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 setDomain(RDFSClass domainClass)
RDFProperty
setDomain in interface RDFPropertydomainClass - the new domainpublic void setDomains(Collection domainClasses)
RDFProperty
setDomains in interface RDFPropertydomainClasses - the new domains (RDFSClasses)public void setInferredTypes(Collection types)
setInferredTypes in interface RDFResourcepublic void setDocumentation(String value)
setDocumentation in interface edu.stanford.smi.protege.model.FramesetDocumentation in interface edu.stanford.smi.protege.model.SlotsetDocumentation in interface ProtegeInstancesetDocumentation in interface ProtegeSlotsetDocumentation in class edu.stanford.smi.protege.model.DefaultSlotRDFResource.setComment(java.lang.String)
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 setProtegeTypes(Collection types)
setProtegeTypes in interface RDFResourcepublic void setRDFType(RDFSClass type)
setRDFType in interface RDFResourcepublic void setRDFTypes(Collection types)
setRDFTypes in interface RDFResourcepublic boolean isDeprecated()
Deprecatable
isDeprecated in interface Deprecatablepublic void setDeprecated(boolean value)
setDeprecated in interface Deprecatablepublic void accept(OWLModelVisitor visitor)
VisitableOWLModelVisitor,
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 Visitablevisitor - The visitor that will operate on this object.public String toString()
toString in class edu.stanford.smi.protege.model.DefaultSlot
|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||