|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface encapsulating a property in an ontology.
Method Summary | |
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 this property is the inverse of. |
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 of which this property is the inverse. |
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. |
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 |
isSymmetricProperty()
Answer true if this property is a symmetric property |
boolean |
isTransitiveProperty()
Answer true if this property is a transitive property |
ExtendedIterator |
listDomain()
Answer an iterator over all of the declared domain classes of this property. |
ExtendedIterator |
listEquivalentProperties()
Answer an iterator over all of the properties that are declared to be equivalent properties to this property. |
ExtendedIterator |
listInverse()
Answer an iterator over the properties that are defined to be inverses of this property. |
ExtendedIterator |
listInverseOf()
Answer an iterator over all of the properties that this property is declared to be the inverse of. |
ExtendedIterator |
listRange()
Answer an iterator over all of the declared range classes of this property. |
ExtendedIterator |
listSubProperties()
Answer an iterator over all of the properties that are declared to be sub-properties of this property. |
ExtendedIterator |
listSubProperties(boolean direct)
Answer an iterator over all of the properties that are declared to be sub-properties of this property. |
ExtendedIterator |
listSuperProperties()
Answer an iterator over all of the properties that are declared to be super-properties of this property. |
ExtendedIterator |
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 this property is the inverse of the given 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. |
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, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
as, asNode, canAs, inModel, visitWith |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Property |
getLocalName, getNameSpace, getOrdinal, isProperty |
Method Detail |
public void setSuperProperty(Property prop)
Assert that this property is sub-property of the given property. Any existing
statements for subPropertyOf
will be removed.
prop
- The property that this property is a sub-property of
OntProfileException
- 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.
prop
- A property that is a super-property of this property.
OntProfileException
- 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.
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public ExtendedIterator 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
.
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public ExtendedIterator 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
.
direct
- 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 super-property relation.
OntProfileException
- 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.
prop
- A property to test.direct
- If true, only consider the direcly adjacent properties in the
property hierarchy
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public 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.
prop
- A property to be removed from the super-properties of this property
OntProfileException
- 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.
prop
- The property that is a sub-property of this property
OntProfileException
- 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.
prop
- A property that is a sub-property of this property.
OntProfileException
- 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.
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public ExtendedIterator 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
.
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public ExtendedIterator 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
.
direct
- 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.
OntProfileException
- 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.
prop
- A property to test.direct
- If true, only consider the direcly adjacent properties in the
property hierarchy
OntProfileException
- If the Profile.SUB_PROPERTY_OF()
property is not supported in the current language profile.public 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.
prop
- A property to be removed from the sub-properties of this property
OntProfileException
- 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.
res
- The resource that represents the domain class for this property.
OntProfileException
- 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.
res
- A resource that represents a domain class for this property.
OntProfileException
- 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.
OntProfileException
- If the Profile.DOMAIN()
property is not supported in the current language profile.public ExtendedIterator listDomain()
Answer an iterator over all of the declared domain classes of this property.
Each element of the iterator will be an OntResource
.
OntProfileException
- 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.
res
- A resource representing a class
OntProfileException
- If the Profile.DOMAIN()
property is not supported in the current language profile.public 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.
cls
- A class to be removed from the declared domain(s) of this property
OntProfileException
- 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.
res
- The resource that represents the range class for this property.
OntProfileException
- 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.
res
- A resource that represents a range class for this property.
OntProfileException
- 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.
OntProfileException
- If the Profile.RANGE()
property is not supported in the current language profile.public ExtendedIterator listRange()
Answer an iterator over all of the declared range classes of this property.
Each element of the iterator will be an OntResource
.
OntProfileException
- 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.
res
- A resource representing a class
OntProfileException
- If the Profile.RANGE()
property is not supported in the current language profile.public 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.
cls
- A class to be removed from the declared range(s) of this property
OntProfileException
- 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.
prop
- The property that this property is a equivalent to.
OntProfileException
- 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.
prop
- A property that is equivalent to this property.
OntProfileException
- 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.
OntProfileException
- If the Profile.EQUIVALENT_PROPERTY()
property is not supported in the current language profile.public ExtendedIterator 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
.
OntProfileException
- 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.
prop
- A property to test for
OntProfileException
- If the Profile.EQUIVALENT_PROPERTY()
property is not supported in the current language profile.public 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.
prop
- A property that may be declared to be equivalent to this property
OntProfileException
- If the Profile.EQUIVALENT_PROPERTY()
property is not supported in the current language profile.public void setInverseOf(Property prop)
Assert that this property is the inverse of the given property. Any existing
statements for inverseOf
will be removed.
prop
- The property that this property is a inverse to.
OntProfileException
- If the Profile.INVERSE_OF()
property is not supported in the current language profile.public void addInverseOf(Property prop)
Add a property that this property is the inverse of.
prop
- A property that is the inverse of this property.
OntProfileException
- If the Profile.INVERSE_OF()
property is not supported in the current language profile.public OntProperty getInverseOf()
Answer a property of which this property is the inverse. If there is more than one such property, an arbitrary selection is made.
OntProfileException
- If the Profile.INVERSE_OF()
property is not supported in the current language profile.public ExtendedIterator listInverseOf()
Answer an iterator over all of the properties that this property is declared to be the inverse of.
Each element of the iterator will be an OntProperty
.
OntProfileException
- 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.
prop
- A property to test for
OntProfileException
- If the Profile.INVERSE_OF()
property is not supported in the current language profile.public 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.
prop
- A property that may be declared to be inverse to this property
OntProfileException
- 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
ConversionException
- if the resource cannot be converted to a functional property
given the lanuage profile and the current state of the underlying model.public DatatypeProperty asDatatypeProperty()
Answer a view of this property as a datatype property
ConversionException
- if the resource cannot be converted to a datatype property
given the lanuage profile and the current state of the underlying model.public ObjectProperty asObjectProperty()
Answer a view of this property as an object property
ConversionException
- if the resource cannot be converted to an object property
given the lanuage profile and the current state of the underlying model.public TransitiveProperty asTransitiveProperty()
Answer a view of this property as a transitive property
ConversionException
- if the resource cannot be converted to a transitive property
given the lanuage profile and the current state of the underlying model.public InverseFunctionalProperty asInverseFunctionalProperty()
Answer a view of this property as an inverse functional property
ConversionException
- if the resource cannot be converted to an inverse functional property
given the lanuage profile and the current state of the underlying model.public SymmetricProperty asSymmetricProperty()
Answer a view of this property as a symmetric property
ConversionException
- if the resource cannot be converted to a symmetric property
given the lanuage 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.
public DatatypeProperty convertToDatatypeProperty()
Answer a facet of this property as a datatype property, adding additional information to the model if necessary.
public ObjectProperty convertToObjectProperty()
Answer a facet of this property as an object property, adding additional information to the model if necessary.
public TransitiveProperty convertToTransitiveProperty()
Answer a facet of this property as a transitive property, adding additional information to the model if necessary.
public InverseFunctionalProperty convertToInverseFunctionalProperty()
Answer a facet of this property as an inverse functional property, adding additional information to the model if necessary.
public SymmetricProperty convertToSymmetricProperty()
Answer a facet of this property as a symmetric property, adding additional information to the model if necessary.
public boolean isFunctionalProperty()
Answer true if this property is a functional property
rdf:type
that defines it as a functional property.public boolean isDatatypeProperty()
Answer true if this property is a datatype property
rdf:type
that defines it as a datatype property.public boolean isObjectProperty()
Answer true if this property is an object property
rdf:type
that defines it as an object property.public boolean isTransitiveProperty()
Answer true if this property is a transitive property
rdf:type
that defines it as a transitive property.public boolean isInverseFunctionalProperty()
Answer true if this property is an inverse functional property
rdf:type
that defines it as an inverse functional property.public boolean isSymmetricProperty()
Answer true if this property is a symmetric property
rdf: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 abritrary selection.
public ExtendedIterator listInverse()
Answer an iterator over the properties that are defined to be inverses of this property.
inverseOf
this property.public boolean hasInverse()
Answer true if there is at least one inverse property for this property.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |