|
Protégé-OWL 3.4 beta | ||||||||
| 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.DefaultSimpleInstance
edu.stanford.smi.protegex.owl.model.impl.DefaultRDFIndividual
public class DefaultRDFIndividual
| Constructor Summary | |
|---|---|
DefaultRDFIndividual()
|
|
DefaultRDFIndividual(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 |
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 |
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. |
Collection |
getComments()
Gets all rdfs:comments for this resource. |
Collection |
getDifferentFrom()
Gets all owl:differentFroms for this resource. |
Collection |
getDocumentation()
|
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. |
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. |
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. |
String |
getURI()
Gets the full URI of this resource. |
Collection |
getVersionInfo()
Gets the values of the owl:versionInfo property. |
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 |
hasRDFType(RDFSClass type)
Checks whether this resource has a given rdf:type. |
boolean |
hasRDFType(RDFSClass type,
boolean includingSuperclasses)
|
boolean |
isAnonymous()
Checks whether this represents an anonymous resource / bnode. |
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 |
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 |
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)
|
String |
toString()
|
| Methods inherited from class edu.stanford.smi.protege.model.DefaultSimpleInstance |
|---|
rename |
| Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance |
|---|
addDirectType, addInstanceListener, copy, deepCopy, getBrowserText, getDirectType, getDirectTypes, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes, shallowCopy |
| Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|---|
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, assertFrameName, compareTo, delete, equals, equals, getDefaultKnowledgeBase, getDefiningProjectURI, getDirectOwnSlotValue, getDirectOwnSlotValues, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hashCode, hasOwnSlot, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, localize, markDeleted, markDeleting, moveDirectOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.stanford.smi.protegex.owl.model.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, rename |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public DefaultRDFIndividual(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id)
public DefaultRDFIndividual()
| Method Detail |
|---|
public 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 Icon getIcon()
getIcon in interface edu.stanford.smi.protege.model.FramegetIcon in interface ProtegeInstancegetIcon in class edu.stanford.smi.protege.model.DefaultSimpleInstanceProtegeUI.getIcon(edu.stanford.smi.protegex.owl.model.RDFResource)public String getIconName()
RDFResourcegetIconLocation().
getIconName in interface RDFResourceRDFResource.getIconLocation()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 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 RDFResource getAllValuesFromOnTypes(RDFProperty property)
RDFResource
getAllValuesFromOnTypes in interface RDFResourceproperty - the property to check for restrictions
public Collection getComments()
RDFResource
getComments in interface RDFResourceRDFResource.addComment(java.lang.String),
RDFResource.removeComment(java.lang.String)public Collection getDifferentFrom()
RDFResource
getDifferentFrom in interface RDFResourceRDFResource.addDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource),
RDFResource.removeDifferentFrom(edu.stanford.smi.protegex.owl.model.RDFResource)public Collection getHasValuesOnTypes(RDFProperty property)
RDFResource
getHasValuesOnTypes in interface RDFResourceproperty - the property to look for restrictions
public Class getIconLocation()
RDFResourcegetIconName().
getIconLocation in interface RDFResourceRDFResource.getIconName()public RDFSClass getProtegeType()
RDFResource
getProtegeType in interface RDFResourceRDFResource.getProtegeTypes()public Collection getProtegeTypes()
RDFResourcegetRDFTypes(): Anonymous classes are internally stored using some special
Protege metaclasses (e.g. OWLNames.Cls.COMPLEMENT_CLASS instead of owl:Class).
getProtegeTypes in interface RDFResourceRDFResource.getProtegeType()public Collection getDocumentation()
getDocumentation in interface edu.stanford.smi.protege.model.FramegetDocumentation in interface ProtegeInstancegetDocumentation in class edu.stanford.smi.protege.model.DefaultFrameRDFResource.getComments()public Collection getInferredTypes()
RDFResource
getInferredTypes in interface RDFResourcepublic Collection getIsDefinedBy()
RDFResource
getIsDefinedBy in interface RDFResourceRDFResource.addIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource),
RDFResource.removeIsDefinedBy(edu.stanford.smi.protegex.owl.model.RDFResource)public Collection getLabels()
RDFResource
getLabels in interface RDFResourcepublic String getLocalName()
RDFResource
getLocalName in interface RDFResourcepublic String getPrefixedName()
RDFResource
getPrefixedName in interface RDFResource