public class OntPropertyImpl extends OntResourceImpl implements OntProperty
Implementation of the abstraction representing a general ontology property.
| Modifier and Type | Field and Description |
|---|---|
static Implementation |
factory
A factory for generating OntProperty facets from nodes in enhanced graphs.
|
KNOWN_LANGUAGESrdfNodeFactory| Constructor and Description |
|---|
OntPropertyImpl(Node n,
EnhGraph g)
Construct an ontology property represented by the given node in the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(Resource res)
Add a resource representing the domain of this property.
|
void |
addEquivalentProperty(Property prop)
Add a property that is equivalent to this property.
|
void |
addInverseOf(Property prop)
Add a property that is the inverse of this property.
|
void |
addRange(Resource res)
Add a resource representing the range of this property.
|
void |
addSubProperty(Property prop)
Add a sub-property of this property.
|
void |
addSuperProperty(Property prop)
Add a super-property of this property.
|
DatatypeProperty |
asDatatypeProperty()
Answer a view of this property as a datatype property
|
FunctionalProperty |
asFunctionalProperty()
Answer a view of this property as a functional property
|
InverseFunctionalProperty |
asInverseFunctionalProperty()
Answer a view of this property as an inverse functional property
|
ObjectProperty |
asObjectProperty()
Answer a view of this property as an object property
|
SymmetricProperty |
asSymmetricProperty()
Answer a view of this property as a symmetric property
|
TransitiveProperty |
asTransitiveProperty()
Answer a view of this property as a transitive property
|
DatatypeProperty |
convertToDatatypeProperty()
Answer a facet of this property as a datatype property, adding additional information to the model if necessary.
|
FunctionalProperty |
convertToFunctionalProperty()
Answer a facet of this property as a functional property, adding additional information to the model if necessary.
|
InverseFunctionalProperty |
convertToInverseFunctionalProperty()
Answer a facet of this property as an inverse functional property, adding additional information to the model if necessary.
|
ObjectProperty |
convertToObjectProperty()
Answer a facet of this property as an object property, adding additional information to the model if necessary.
|
SymmetricProperty |
convertToSymmetricProperty()
Answer a facet of this property as a symmetric property, adding additional information to the model if necessary.
|
TransitiveProperty |
convertToTransitiveProperty()
Answer a facet of this property as a transitive property, adding additional information to the model if necessary.
|
OntResource |
getDomain()
Answer a resource that represents the domain class of this property.
|
OntProperty |
getEquivalentProperty()
Answer a property that is equivalent to this property.
|
OntProperty |
getInverse()
Answer the property that is the inverse of this property.
|
OntProperty |
getInverseOf()
Answer a property that is an inverse of this property.
|
int |
getOrdinal()
Returns the ordinal value of a containment property.
|
OntResource |
getRange()
Answer a resource that represents the range class of this property.
|
OntProperty |
getSubProperty()
Answer a property that is the sub-property of this property.
|
OntProperty |
getSuperProperty()
Answer a property that is the super-property of this property.
|
boolean |
hasDomain(Resource res)
Answer true if the given resource a class specifying the domain of this property.
|
boolean |
hasEquivalentProperty(Property prop)
Answer true if the given property is equivalent to this property.
|
boolean |
hasInverse()
Answer true if there is at least one inverse property for this property.
|
boolean |
hasRange(Resource res)
Answer true if the given resource a class specifying the range of this property.
|
boolean |
hasSubProperty(Property prop,
boolean direct)
Answer true if the given property is a sub-property of this property.
|
boolean |
hasSuperProperty(Property prop,
boolean direct)
Answer true if the given property is a super-property of this property.
|
Property |
inModel(Model m)
Answer a property that is attached to the given model, which will either
be this property or a new property object with the same URI in the given
model.
|
boolean |
isDatatypeProperty()
Answer true if this property is a datatype property
|
boolean |
isFunctionalProperty()
Answer true if this property is a functional property
|
boolean |
isInverseFunctionalProperty()
Answer true if this property is an inverse functional property
|
boolean |
isInverseOf(Property prop)
Answer true if this property is the inverse of the given property.
|
boolean |
isObjectProperty()
Answer true if this property is an object property
|
boolean |
isProperty()
Answer true to indicate that this resource is an RDF property.
|
boolean |
isSymmetricProperty()
Answer true if this property is a symmetric property
|
boolean |
isTransitiveProperty()
Answer true if this property is a transitive property
|
ExtendedIterator<OntClass> |
listDeclaringClasses()
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in
OntClass.listDeclaredProperties(). |
ExtendedIterator<OntClass> |
listDeclaringClasses(boolean direct)
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in
OntClass.listDeclaredProperties(boolean). |
ExtendedIterator<OntClass> |
listDomain()
Answer an iterator over all of the declared domain classes of this property.
|
ExtendedIterator<OntProperty> |
listEquivalentProperties()
Answer an iterator over all of the properties that are declared to be equivalent properties to
this property.
|
ExtendedIterator<OntProperty> |
listInverse()
Answer an iterator over the properties that are defined to be inverses of this property.
|
ExtendedIterator<? extends OntProperty> |
listInverseOf()
Answer an iterator over all of the properties that are declared to be inverse properties of
this property.
|
ExtendedIterator<OntClass> |
listRange()
Answer an iterator over all of the declared range classes of this property.
|
ExtendedIterator<Restriction> |
listReferringRestrictions()
Answer an iterator over any restrictions that mention this property as
the property that the restriction is adding some constraint to.
|
ExtendedIterator<OntProperty> |
listSubProperties()
Answer an iterator over all of the properties that are declared to be sub-properties of
this property.
|
ExtendedIterator<OntProperty> |
listSubProperties(boolean direct)
Answer an iterator over all of the properties that are declared to be sub-properties of
this property.
|
ExtendedIterator<OntProperty> |
listSuperProperties()
Answer an iterator over all of the properties that are declared to be super-properties of
this property.
|
ExtendedIterator<OntProperty> |
listSuperProperties(boolean direct)
Answer an iterator over all of the properties that are declared to be super-properties of
this property.
|
void |
removeDomain(Resource cls)
Remove the given class from the stated domain(s) of this property.
|
void |
removeEquivalentProperty(Property prop)
Remove the statement that this property and the given property are
equivalent.
|
void |
removeInverseProperty(Property prop)
Remove the statement that this property is the inverse of the given property.
|
void |
removeRange(Resource cls)
Remove the given class from the stated range(s) of this property.
|
void |
removeSubProperty(Property prop)
Remove the given property from the sub-properties of this property.
|
void |
removeSuperProperty(Property prop)
Remove the given property from the super-properties of this property.
|
void |
setDomain(Resource res)
Assert that the given resource represents the class of individuals that form the
domain of this property.
|
void |
setEquivalentProperty(Property prop)
Assert that the given property is equivalent to this property.
|
void |
setInverseOf(Property prop)
Assert that the given property is the inverse of this property.
|
void |
setRange(Resource res)
Assert that the given resource represents the class of individuals that form the
range of this property.
|
void |
setSubProperty(Property prop)
Assert that this property is super-property of the given property.
|
void |
setSuperProperty(Property prop)
Assert that this property is sub-property of the given property.
|
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asIndividual, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDefinedBy, isDifferentFrom, isIndividual, isOntLanguageTerm, isOntology, 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, setVersionInfoabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWithas, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsaddView, supportsaddComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asIndividual, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDefinedBy, isDifferentFrom, isIndividual, isOntLanguageTerm, isOntology, 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, setVersionInfogetLocalName, getNameSpaceabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toStringas, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithasNodepublic static Implementation factory
as() instead.public boolean isProperty()
Answer true to indicate that this resource is an RDF property.
isProperty in interface OntResourceisProperty in interface PropertyisProperty in class OntResourceImplpublic int getOrdinal()
PropertyRDF containers use properties of the form _1, _2, _3 etc to represent the containment relationship between the container and the objects it contains. When invoked on such a containment property, this method returns the integer part of the property name. When invoked on other properties, it returns 0.
getOrdinal in interface PropertyProperty.getOrdinal()public void setSuperProperty(Property prop)
Assert that this property is sub-property of the given property. Any existing
statements for subPropertyOf will be removed.
setSuperProperty in interface OntPropertyprop - The property that this property is a sub-property ofProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public void addSuperProperty(Property prop)
Add a super-property of this property.
addSuperProperty in interface OntPropertyprop - A property that is a super-property of this property.ProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public OntProperty getSuperProperty()
Answer a property that is the super-property of this property. If there is more than one such property, an arbitrary selection is made.
getSuperProperty in interface OntPropertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public ExtendedIterator<OntProperty> listSuperProperties()
Answer an iterator over all of the properties that are declared to be super-properties of
this property. Each element of the iterator will be an OntProperty.
listSuperProperties in interface OntPropertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public ExtendedIterator<OntProperty> listSuperProperties(boolean direct)
Answer an iterator over all of the properties that are declared to be super-properties of
this property. Each element of the iterator will be an OntProperty.
listSuperProperties in interface OntPropertydirect - If true, only answer the directly adjacent properties in the
property hierarchy: i.e. eliminate any property for which there is a longer route
to reach that child under the super-property relation.ProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public boolean hasSuperProperty(Property prop, boolean direct)
Answer true if the given property is a super-property of this property.
hasSuperProperty in interface OntPropertyprop - A property to test.direct - If true, only consider the directly adjacent properties in the
property hierarchypublic void removeSuperProperty(Property prop)
Remove the given property from the super-properties of this property. If this statement is not true of the current model, nothing happens.
removeSuperProperty in interface OntPropertyprop - A property to be removed from the super-properties of this propertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public void setSubProperty(Property prop)
Assert that this property is super-property of the given property. Any existing
statements for subPropertyOf on prop will be removed.
setSubProperty in interface OntPropertyprop - The property that is a sub-property of this propertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public void addSubProperty(Property prop)
Add a sub-property of this property.
addSubProperty in interface OntPropertyprop - A property that is a sub-property of this property.ProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public OntProperty getSubProperty()
Answer a property that is the sub-property of this property. If there is more than one such property, an arbitrary selection is made.
getSubProperty in interface OntPropertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public ExtendedIterator<OntProperty> listSubProperties()
Answer an iterator over all of the properties that are declared to be sub-properties of
this property. Each element of the iterator will be an OntProperty.
listSubProperties in interface OntPropertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public ExtendedIterator<OntProperty> listSubProperties(boolean direct)
Answer an iterator over all of the properties that are declared to be sub-properties of
this property. Each element of the iterator will be an OntProperty.
listSubProperties in interface OntPropertydirect - If true, only answer the direcly adjacent properties in the
property hierarchy: i.e. eliminate any property for which there is a longer route
to reach that child under the sub-property relation.ProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public boolean hasSubProperty(Property prop, boolean direct)
Answer true if the given property is a sub-property of this property.
hasSubProperty in interface OntPropertyprop - A property to test.direct - If true, only consider the direcly adjacent properties in the
property hierarchypublic void removeSubProperty(Property prop)
Remove the given property from the sub-properties of this property. If this statement is not true of the current model, nothing happens.
removeSubProperty in interface OntPropertyprop - A property to be removed from the sub-properties of this propertyProfileException - If the Profile.SUB_PROPERTY_OF() property is not supported in the current language profile.public void setDomain(Resource res)
Assert that the given resource represents the class of individuals that form the
domain of this property. Any existing domain statements for this property are removed.
setDomain in interface OntPropertyres - The resource that represents the domain class for this property.ProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.public void addDomain(Resource res)
Add a resource representing the domain of this property.
addDomain in interface OntPropertyres - A resource that represents a domain class for this property.ProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.public OntResource getDomain()
Answer a resource that represents the domain class of this property. If there is more than one such resource, an arbitrary selection is made.
getDomain in interface OntPropertyProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.public ExtendedIterator<OntClass> listDomain()
Answer an iterator over all of the declared domain classes of this property.
Each element of the iterator will be an OntResource.
listDomain in interface OntPropertyProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.public boolean hasDomain(Resource res)
Answer true if the given resource a class specifying the domain of this property.
hasDomain in interface OntPropertyres - A resource representing a classpublic void removeDomain(Resource cls)
Remove the given class from the stated domain(s) of this property. If this statement is not true of the current model, nothing happens.
removeDomain in interface OntPropertycls - A class to be removed from the declared domain(s) of this propertyProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.public void setRange(Resource res)
Assert that the given resource represents the class of individuals that form the
range of this property. Any existing range statements for this property are removed.
setRange in interface OntPropertyres - The resource that represents the range class for this property.ProfileException - If the Profile.RANGE() property is not supported in the current language profile.public void addRange(Resource res)
Add a resource representing the range of this property.
addRange in interface OntPropertyres - A resource that represents a range class for this property.ProfileException - If the Profile.RANGE() property is not supported in the current language profile.public OntResource getRange()
Answer a resource that represents the range class of this property. If there is more than one such resource, an arbitrary selection is made.
getRange in interface OntPropertyProfileException - If the Profile.RANGE() property is not supported in the current language profile.public ExtendedIterator<OntClass> listRange()
Answer an iterator over all of the declared range classes of this property.
Each element of the iterator will be an OntResource.
listRange in interface OntPropertyProfileException - If the Profile.RANGE() property is not supported in the current language profile.public boolean hasRange(Resource res)
Answer true if the given resource a class specifying the range of this property.
hasRange in interface OntPropertyres - A resource representing a classpublic void removeRange(Resource cls)
Remove the given class from the stated range(s) of this property. If this statement is not true of the current model, nothing happens.
removeRange in interface OntPropertycls - A class to be removed from the declared range(s) of this propertyProfileException - If the Profile.RANGE() property is not supported in the current language profile.public void setEquivalentProperty(Property prop)
Assert that the given property is equivalent to this property. Any existing
statements for equivalentProperty will be removed.
setEquivalentProperty in interface OntPropertyprop - The property that this property is a equivalent to.ProfileException - If the Profile.EQUIVALENT_PROPERTY() property is not supported in the current language profile.public void addEquivalentProperty(Property prop)
Add a property that is equivalent to this property.
addEquivalentProperty in interface OntPropertyprop - A property that is equivalent to this property.ProfileException - If the Profile.EQUIVALENT_PROPERTY() property is not supported in the current language profile.public OntProperty getEquivalentProperty()
Answer a property that is equivalent to this property. If there is more than one such property, an arbitrary selection is made.
getEquivalentProperty in interface OntPropertyProfileException - If the Profile.EQUIVALENT_PROPERTY() property is not supported in the current language profile.public ExtendedIterator<OntProperty> listEquivalentProperties()
Answer an iterator over all of the properties that are declared to be equivalent properties to
this property. Each element of the iterator will be an OntProperty.
listEquivalentProperties in interface OntPropertyProfileException - If the Profile.EQUIVALENT_PROPERTY() property is not supported in the current language profile.public boolean hasEquivalentProperty(Property prop)
Answer true if the given property is equivalent to this property.
hasEquivalentProperty in interface OntPropertyprop - A property to test forpublic void removeEquivalentProperty(Property prop)
Remove the statement that this property and the given property are equivalent. If this statement is not true of the current model, nothing happens.
removeEquivalentProperty in interface OntPropertyprop - A property that may be declared to be equivalent to this propertyProfileException - If the Profile.EQUIVALENT_PROPERTY() property is not supported in the current language profile.public void setInverseOf(Property prop)
Assert that the given property is the inverse of this property. Any existing
statements for inverseOf will be removed.
setInverseOf in interface OntPropertyprop - The property that this property is a inverse to.ProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.public void addInverseOf(Property prop)
Add a property that is the inverse of this property.
addInverseOf in interface OntPropertyprop - A property that is the inverse of this property.ProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.public OntProperty getInverseOf()
Answer a property that is an inverse of this property. If there is more than one such property, an arbitrary selection is made.
getInverseOf in interface OntPropertyProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.public ExtendedIterator<? extends OntProperty> listInverseOf()
Answer an iterator over all of the properties that are declared to be inverse properties of
this property. Each element of the iterator will be an OntProperty.
listInverseOf in interface OntPropertyProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.public boolean isInverseOf(Property prop)
Answer true if this property is the inverse of the given property.
isInverseOf in interface OntPropertyprop - A property to test forpublic void removeInverseProperty(Property prop)
Remove the statement that this property is the inverse of the given property. If this statement is not true of the current model, nothing happens.
removeInverseProperty in interface OntPropertyprop - A property that may be declared to be inverse to this propertyProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.public FunctionalProperty asFunctionalProperty()
Answer a view of this property as a functional property
asFunctionalProperty in interface OntPropertyConversionException - if the resource cannot be converted to a functional property
given the language profile and the current state of the underlying model.public DatatypeProperty asDatatypeProperty()
Answer a view of this property as a datatype property
asDatatypeProperty in interface OntPropertyasDatatypeProperty in interface OntResourceasDatatypeProperty in class OntResourceImplConversionException - if the resource cannot be converted to a datatype property
given the language profile and the current state of the underlying model.public ObjectProperty asObjectProperty()
Answer a view of this property as an object property
asObjectProperty in interface OntPropertyasObjectProperty in interface OntResourceasObjectProperty in class OntResourceImplConversionException - if the resource cannot be converted to an object property
given the language profile and the current state of the underlying model.public TransitiveProperty asTransitiveProperty()
Answer a view of this property as a transitive property
asTransitiveProperty in interface OntPropertyConversionException - if the resource cannot be converted to a transitive property
given the language profile and the current state of the underlying model.public InverseFunctionalProperty asInverseFunctionalProperty()
Answer a view of this property as an inverse functional property
asInverseFunctionalProperty in interface OntPropertyConversionException - if the resource cannot be converted to an inverse functional property
given the language profile and the current state of the underlying model.public SymmetricProperty asSymmetricProperty()
Answer a view of this property as a symmetric property
asSymmetricProperty in interface OntPropertyConversionException - if the resource cannot be converted to a symmetric property
given the language profile and the current state of the underlying model.public FunctionalProperty convertToFunctionalProperty()
Answer a facet of this property as a functional property, adding additional information to the model if necessary.
convertToFunctionalProperty in interface OntPropertypublic DatatypeProperty convertToDatatypeProperty()
Answer a facet of this property as a datatype property, adding additional information to the model if necessary.
convertToDatatypeProperty in interface OntPropertypublic ObjectProperty convertToObjectProperty()
Answer a facet of this property as an object property, adding additional information to the model if necessary.
convertToObjectProperty in interface OntPropertypublic TransitiveProperty convertToTransitiveProperty()
Answer a facet of this property as a transitive property, adding additional information to the model if necessary.
convertToTransitiveProperty in interface OntPropertypublic InverseFunctionalProperty convertToInverseFunctionalProperty()
Answer a facet of this property as an inverse functional property, adding additional information to the model if necessary.
convertToInverseFunctionalProperty in interface OntPropertypublic SymmetricProperty convertToSymmetricProperty()
Answer a facet of this property as a symmetric property, adding additional information to the model if necessary.
convertToSymmetricProperty in interface OntPropertypublic boolean isFunctionalProperty()
Answer true if this property is a functional property
isFunctionalProperty in interface OntPropertyrdf:type that defines it as a functional property.public boolean isDatatypeProperty()
Answer true if this property is a datatype property
isDatatypeProperty in interface OntPropertyisDatatypeProperty in interface OntResourceisDatatypeProperty in class OntResourceImplrdf:type that defines it as a datatype property.public boolean isObjectProperty()
Answer true if this property is an object property
isObjectProperty in interface OntPropertyisObjectProperty in interface OntResourceisObjectProperty in class OntResourceImplrdf:type that defines it as an object property.public boolean isTransitiveProperty()
Answer true if this property is a transitive property
isTransitiveProperty in interface OntPropertyrdf:type that defines it as a transitive property.public boolean isInverseFunctionalProperty()
Answer true if this property is an inverse functional property
isInverseFunctionalProperty in interface OntPropertyrdf:type that defines it as an inverse functional property.public boolean isSymmetricProperty()
Answer true if this property is a symmetric property
isSymmetricProperty in interface OntPropertyrdf:type that defines it as a symmetric property.public OntProperty getInverse()
Answer the property that is the inverse of this property. If no such property is defined, return null. If more than one inverse is defined, return an arbitrary selection.
getInverse in interface OntPropertypublic ExtendedIterator<OntProperty> listInverse()
Answer an iterator over the properties that are defined to be inverses of this property.
listInverse in interface OntPropertyinverseOf this property.public boolean hasInverse()
Answer true if there is at least one inverse property for this property.
hasInverse in interface OntPropertypublic ExtendedIterator<OntClass> listDeclaringClasses()
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in OntClass.listDeclaredProperties(). This
simulates a frame-like view of properties and classes; for more
details see the
RDF frames howto.
listDeclaringClasses in interface OntPropertypublic ExtendedIterator<OntClass> listDeclaringClasses(boolean direct)
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in OntClass.listDeclaredProperties(boolean). This
simulates a frame-like view of properties and classes; for more
details see the
RDF frames howto.
listDeclaringClasses in interface OntPropertydirect - If true, use only direct associations between classes
and propertiespublic ExtendedIterator<Restriction> listReferringRestrictions()
Answer an iterator over any restrictions that mention this property as the property that the restriction is adding some constraint to. For example:
<owl:Restriction>
<owl:onProperty rdf:resource="#childOf" />
<owl:hasValue rdf:resource="#ian" />
</owl:Restriction>
Note that any such restrictions do not affect the global semantics of this property itself. Restrictions define new class expressions, and the property constraints are local to that class expression. This method is provided as a convenience to assist callers to navigate the relationships in the model.
listReferringRestrictions in interface OntPropertyLicenced under the Apache License, Version 2.0