|
||||||||||
| 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.DAMLPropertyImpl
|
+--com.hp.hpl.jena.daml.common.DAMLObjectPropertyImpl
Implementation for Java encapsulation of an object property in a DAML ontology. An object property
is a partition of the class of properties, in which the range of the property
is a DAML instance (rather than a datatype). Object properties may be transitive
and unambiguous, which are modelled in the specification by sub-classes of
ObjectProperty named TransitiveProperty and
UnambiguousProperty. In this API, transitivity and uniqueness are
modelled as attributes of the DAMLObjectProperty object.
| Constructor Summary | |
DAMLObjectPropertyImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
Constructor, takes the URI for this property, and the underlying model it will be attached to. |
|
DAMLObjectPropertyImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel store,
DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this property, and the underlying model it will be attached to. |
|
| Method Summary | |
boolean |
isTransitive()
Answer true if this property is to be considered transitive, that is it is characterised by the DAML class TransitiveProperty |
boolean |
isUnambiguous()
Answer true if this property is to be considered unabiguous, that is it is characterised by the DAML class UnambiguousProperty |
Resource |
port(Model m)
This is a Jena internal method. |
PropertyAccessor |
prop_inverseOf()
Property accessor for the 'inverseOf' property of a DAML Property. |
void |
setIsTransitive(boolean transitive)
Set the flag to indicate that this property is to be considered transitive - that is, it is defined by the DAML class TransitiveProperty. |
void |
setIsUnambiguous(boolean unambiguous)
Set the flag to indicate that this property is to be considered unambiguous - that is, it is defined by the DAML class UnambiguousProperty. |
java.lang.String |
toString()
Return a readable representation of the DAML value |
| Methods inherited from class com.hp.hpl.jena.daml.common.DAMLPropertyImpl |
getDomainClasses, getEquivalentValues, getOrdinal, getRangeClasses, getSameProperties, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isUnique, prop_domain, prop_range, prop_samePropertyAs, prop_subPropertyOf, setIsUnique |
| Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl |
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType |
| 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.DAMLProperty |
getDomainClasses, getEquivalentValues, getRangeClasses, getSameProperties, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isUnique, prop_domain, prop_range, prop_samePropertyAs, prop_subPropertyOf, setIsUnique |
| Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon |
getAll, getDAMLModel, getEquivalenceSet, 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 |
| Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Property |
getLocalName, getNameSpace, getOrdinal |
| Constructor Detail |
public DAMLObjectPropertyImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel store,
DAMLVocabulary vocabulary)
namespace - The namespace the property inhabits, or nullname - The name of the propertystore - The RDF store that contains the RDF statements defining the properties of the propertyvocabulary - Reference to the DAML vocabulary used by this property.
public DAMLObjectPropertyImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
uri - The URI of the propertystore - The RDF store that contains the RDF statements defining the properties of the propertyvocabulary - Reference to the DAML vocabulary used by this property.| Method Detail |
public java.lang.String toString()
toString in interface ResourcetoString in class DAMLPropertyImplpublic void setIsTransitive(boolean transitive)
setIsTransitive in interface DAMLObjectPropertytransitive - True for a transitive propertypublic boolean isTransitive()
isTransitive in interface DAMLObjectPropertypublic void setIsUnambiguous(boolean unambiguous)
setIsUnambiguous in interface DAMLObjectPropertyunambiguous - True for a unambiguous propertypublic boolean isUnambiguous()
isUnambiguous in interface DAMLObjectPropertypublic PropertyAccessor prop_inverseOf()
prop_inverseOf in interface DAMLObjectProperty
public Resource port(Model m)
throws RDFException
port in interface ResourceIport in class DAMLPropertyImplm - The model to port to
RDFException - if an RDF processing error ocurrs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||