java.lang.Object
com.hp.hpl.jena.enhanced.Polymorphic
com.hp.hpl.jena.enhanced.EnhNode
com.hp.hpl.jena.rdf.model.impl.ResourceImpl
com.hp.hpl.jena.ontology.impl.OntResourceImpl
com.hp.hpl.jena.ontology.impl.OntPropertyImpl
com.hp.hpl.jena.ontology.daml.impl.DAMLPropertyImpl
com.hp.hpl.jena.ontology.daml.impl.DAMLObjectPropertyImpl
- All Implemented Interfaces:
- com.hp.hpl.jena.ontology.daml.DAMLCommon, com.hp.hpl.jena.ontology.daml.DAMLObjectProperty, com.hp.hpl.jena.ontology.daml.DAMLProperty, com.hp.hpl.jena.graph.FrontsNode, com.hp.hpl.jena.ontology.OntProperty, com.hp.hpl.jena.ontology.OntResource, com.hp.hpl.jena.rdf.model.Property, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.rdf.model.Resource
- public class DAMLObjectPropertyImpl
- extends DAMLPropertyImpl
- implements com.hp.hpl.jena.ontology.daml.DAMLObjectProperty
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.
- Version:
- CVS info: $Id: DAMLObjectPropertyImpl.java,v 1.7 2005/02/21 12:05:26 andy_seaborne Exp $
| Nested classes inherited from class com.hp.hpl.jena.ontology.impl.OntPropertyImpl |
|
| Nested classes inherited from class com.hp.hpl.jena.ontology.impl.OntResourceImpl |
com.hp.hpl.jena.ontology.impl.OntResourceImpl.AsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.LangTagFilter, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectAsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectAsStringMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SingleEqualityFilter, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SubjectAsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SubjectMapper |
| Fields inherited from class com.hp.hpl.jena.enhanced.Polymorphic |
|
|
Method Summary |
boolean |
isTransitive()
Answer true if this property is transitive. |
boolean |
isUnambiguous()
Answer true if this property is an unambiguous property. |
com.hp.hpl.jena.ontology.daml.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
unabiguous - that is, it is defined by the DAML class UnambiguousProperty. |
| Methods inherited from class com.hp.hpl.jena.ontology.daml.impl.DAMLPropertyImpl |
getDAMLModel, getDomainClasses, getEquivalenceSet, getEquivalentValues, getRangeClasses, getRDFTypes, getSameProperties, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, getVocabulary, isUnique, prop_comment, prop_domain, prop_equivalentTo, prop_label, prop_range, prop_samePropertyAs, prop_subPropertyOf, prop_type, setIsUnique, setRDFType |
| Methods inherited from class com.hp.hpl.jena.ontology.impl.OntPropertyImpl |
addDomain, addEquivalentProperty, addInverseOf, addRange, addSubProperty, addSuperProperty, asDatatypeProperty, asFunctionalProperty, asInverseFunctionalProperty, asObjectProperty, asSymmetricProperty, asTransitiveProperty, convertToDatatypeProperty, convertToFunctionalProperty, convertToInverseFunctionalProperty, convertToObjectProperty, convertToSymmetricProperty, convertToTransitiveProperty, getDomain, getEquivalentProperty, getInverse, getInverseOf, getOrdinal, getRange, getSubProperty, getSuperProperty, hasDomain, hasEquivalentProperty, hasInverse, hasRange, hasSubProperty, hasSuperProperty, inModel, isDatatypeProperty, isFunctionalProperty, isInverseFunctionalProperty, isInverseOf, isObjectProperty, isProperty, isSymmetricProperty, isTransitiveProperty, listDeclaringClasses, listDeclaringClasses, listDomain, listEquivalentProperties, listInverse, listInverseOf, listRange, listSubProperties, listSubProperties, listSuperProperties, listSuperProperties, removeDomain, removeEquivalentProperty, removeInverseProperty, removeRange, removeSubProperty, removeSuperProperty, setDomain, setEquivalentProperty, setInverseOf, setRange, setSubProperty, setSuperProperty |
| Methods inherited from class com.hp.hpl.jena.ontology.impl.OntResourceImpl |
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addListPropertyValue, addPropertyValue, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asIndividual, asOntology, asProperty, checkProfile, convertToType, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasPropertyValue, hasRDFType, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasType, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDefinedBy, isDifferentFrom, isIndividual, isOntLanguageTerm, isOntology, isSameAs, langTagMatch, listAs, listComments, listDifferentFrom, listDirectPropertyValues, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, objectAs, objectAsInt, objectAsProperty, objectAsResource, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removePropertyValue, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, selectLang, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo |
| Methods inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, isAnon, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, toString, visitWith |
| Methods inherited from class com.hp.hpl.jena.enhanced.EnhNode |
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isValid, viewAs |
| Methods inherited from interface com.hp.hpl.jena.ontology.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.ontology.OntResource |
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
| Methods inherited from interface com.hp.hpl.jena.ontology.OntProperty |
addDomain, addEquivalentProperty, addInverseOf, addRange, addSubProperty, addSuperProperty, asDatatypeProperty, asFunctionalProperty, asInverseFunctionalProperty, asObjectProperty, asSymmetricProperty, asTransitiveProperty, convertToDatatypeProperty, convertToFunctionalProperty, convertToInverseFunctionalProperty, convertToObjectProperty, convertToSymmetricProperty, convertToTransitiveProperty, getDomain, getEquivalentProperty, getInverse, getInverseOf, getRange, getSubProperty, getSuperProperty, hasDomain, hasEquivalentProperty, hasInverse, hasRange, hasSubProperty, hasSuperProperty, isDatatypeProperty, isFunctionalProperty, isInverseFunctionalProperty, isInverseOf, isObjectProperty, isSymmetricProperty, isTransitiveProperty, listDeclaringClasses, listDeclaringClasses, listDomain, listEquivalentProperties, listInverse, listInverseOf, listRange, listSubProperties, listSubProperties, listSuperProperties, listSuperProperties, removeDomain, removeEquivalentProperty, removeInverseProperty, removeRange, removeSubProperty, removeSuperProperty, setDomain, setEquivalentProperty, setInverseOf, setRange, setSubProperty, setSuperProperty |
factory
public static com.hp.hpl.jena.enhanced.Implementation factory
- A factory for generating DAMLObjectProperty facets from nodes in enhanced graphs.
Note: should not be invoked directly by user code: use
as() 55 instead.
m_propInverseOf
private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propInverseOf
- Property accessor for inverseOf
DAMLObjectPropertyImpl
public DAMLObjectPropertyImpl(com.hp.hpl.jena.graph.Node n,
com.hp.hpl.jena.enhanced.EnhGraph g)
Construct a DAML object property represented by the given node in the given graph.
setIsTransitive
public 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.
- Specified by:
setIsTransitive in interface com.hp.hpl.jena.ontology.daml.DAMLObjectProperty
isTransitive
public boolean isTransitive()
Answer true if this property is transitive.
- Specified by:
isTransitive in interface com.hp.hpl.jena.ontology.daml.DAMLObjectProperty
setIsUnambiguous
public void setIsUnambiguous(boolean unambiguous)
Set the flag to indicate that this property is to be considered
unabiguous - that is, it is defined by the DAML class UnambiguousProperty.
- Specified by:
setIsUnambiguous in interface com.hp.hpl.jena.ontology.daml.DAMLObjectProperty
isUnambiguous
public boolean isUnambiguous()
Answer true if this property is an unambiguous property.
- Specified by:
isUnambiguous in interface com.hp.hpl.jena.ontology.daml.DAMLObjectProperty
prop_inverseOf
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_inverseOf()
Property accessor for the inverseOf property of a DAML Property. This denotes
that the named property (say, P) is an inverse of this property (say, Q). Formally,
if (x, y) is an instance of P, then (y, x) is an instance of Q. According to the
DAML specification, inverseOf is only defined for object properties (i.e. not
datatype properties).
- Specified by:
prop_inverseOf in interface com.hp.hpl.jena.ontology.daml.DAMLObjectProperty