|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
|
+--com.hp.hpl.jena.daml.common.DAMLCommonImpl
|
+--com.hp.hpl.jena.daml.common.DAMLDataInstanceImpl
A DAML data instance is an instance of a DAML Dataype (compared to an DAML instance which is an instance of a DAML Class; Class and Datatype are disjoint).
| Constructor Summary | |
DAMLDataInstanceImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
Constructor, takes the URI for this instance, and the underlying model it will be attached to. |
|
DAMLDataInstanceImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel store,
DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this instance, and the underlying model it will be attached to. |
|
| Method Summary | |
java.util.Iterator |
getSameInstances()
Return an iterator over all of the instances that are the same as this one, by generating the transitive closure over the daml:samePropertyAs
property. |
DatatypeTranslator |
getTranslator()
Answer the Datatype translator for values encoded by the datatype of this instance. |
java.lang.Object |
getValue()
Answer the value of this instance as a Java object, translated from the serialised RDF representation by the Dataype's translator. |
PropertyAccessor |
prop_sameIndividualAs()
Property accessor for daml:sameIndividualAs property on a DAML instance. |
void |
setValue(java.lang.Object value)
Set the value of this instance to the given Java value, which will be serialised into the RDF graph by the datatype's translator. |
| Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl |
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, port, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType, toString |
| Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon |
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType |
| Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString |
| Constructor Detail |
public DAMLDataInstanceImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel store,
DAMLVocabulary vocabulary)
namespace - The namespace the instance inhabits, or nullname - The name of the instancestore - The RDF store that contains the RDF statements defining the properties of the instancevocabulary - Reference to the DAML vocabulary used by this instance.
public DAMLDataInstanceImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
uri - The URI of the instancestore - The RDF store that contains the RDF statements defining the properties of the instancevocabulary - Reference to the DAML vocabulary used by this instance.| Method Detail |
public PropertyAccessor prop_sameIndividualAs()
daml:sameIndividualAs property on a DAML instance.
prop_sameIndividualAs in interface DAMLDataInstancepublic java.util.Iterator getSameInstances()
daml:samePropertyAs
property.
getSameInstances in interface DAMLDataInstancepublic DatatypeTranslator getTranslator()
getTranslator in interface DAMLDataInstancepublic java.lang.Object getValue()
getValue in interface DAMLDataInstancepublic void setValue(java.lang.Object value)
setValue in interface DAMLDataInstancevalue - A Java value whose serialisation will be made the value of this
data instance by setting the rdf:value relation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||