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.
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 .
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) .
A factory for generating OntProperty facets from nodes in enhanced graphs.
Note: should not be invoked directly by user code: use
com.hp.hpl.jena.rdf.model.RDFNode.as as() instead.
Add a resource representing the domain of this property.
Parameters: res - A resource that represents a domain class for this property. exception: OntProfileException - If the Profile.DOMAIN property is not supported in the current language profile.
Add a property that is equivalent to this property.
Parameters: prop - A property that is equivalent to this property. exception: OntProfileException - If the Profile.EQUIVALENT_PROPERTY property is not supported in the current language profile.
Add a property that is the inverse of this property.
Parameters: prop - A property that is the inverse of this property. exception: OntProfileException - If the Profile.INVERSE_OF property is not supported in the current language profile.
Add a resource representing the range of this property.
Parameters: res - A resource that represents a range class for this property. exception: OntProfileException - If the Profile.RANGE property is not supported in the current language profile.
Parameters: prop - A property that is a sub-property of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Parameters: prop - A property that is a super-property of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Answer a view of this property as a datatype property
This property, but viewed as a DatatypeProperty node exception: ConversionException - if the resource cannot be converted to a datatype propertygiven the language profile and the current state of the underlying model.
Answer a view of this property as a functional property
This property, but viewed as a FunctionalProperty node exception: ConversionException - if the resource cannot be converted to a functional propertygiven the language profile and the current state of the underlying model.
Answer a view of this property as an inverse functional property
This property, but viewed as an InverseFunctionalProperty node exception: ConversionException - if the resource cannot be converted to an inverse functional propertygiven the language profile and the current state of the underlying model.
Answer a view of this property as an object property
This property, but viewed as an ObjectProperty node exception: ConversionException - if the resource cannot be converted to an object propertygiven the language profile and the current state of the underlying model.
Answer a view of this property as a symmetric property
This property, but viewed as a SymmetricProperty node exception: ConversionException - if the resource cannot be converted to a symmetric propertygiven the language profile and the current state of the underlying model.
Answer a view of this property as a transitive property
This property, but viewed as a TransitiveProperty node exception: ConversionException - if the resource cannot be converted to a transitive propertygiven the language profile and the current state of the underlying model.
Answer a resource that represents the domain class of this property. If there is
more than one such resource, an arbitrary selection is made.
An resource representing the class that forms the domain of this property exception: OntProfileException - If the Profile.DOMAIN property is not supported in the current language profile.
Answer a property that is equivalent to this property. If there is
more than one such property, an arbitrary selection is made.
A property equivalent to this property exception: OntProfileException - If the Profile.EQUIVALENT_PROPERTY property is not supported in the current language profile.
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.
The property that is the inverse of this property, or null.
Answer a property that is an inverse of this property. If there is
more than one such property, an arbitrary selection is made.
A property inverse to this property exception: OntProfileException - If the Profile.INVERSE_OF property is not supported in the current language profile.
Answer a resource that represents the range class of this property. If there is
more than one such resource, an arbitrary selection is made.
An resource representing the class that forms the range of this property exception: OntProfileException - If the Profile.RANGE property is not supported in the current language profile.
Answer a property that is the sub-property of this property. If there is
more than one such property, an arbitrary selection is made.
A sub-property of this property exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Answer a property that is the super-property of this property. If there is
more than one such property, an arbitrary selection is made.
A super-property of this property exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Answer true if the given resource a class specifying the range of this property.
Parameters: res - A resource representing a class True if the given resource is one of the range classes of this property.
hasSubProperty
public boolean hasSubProperty(Property prop, boolean direct)(Code)
Answer true if the given property is a sub-property of this property.
Parameters: prop - A property to test. Parameters: direct - If true, only consider the direcly adjacent properties in theproperty hierarchy True if the given property is a sub-property of this property.
hasSuperProperty
public boolean hasSuperProperty(Property prop, boolean direct)(Code)
Answer true if the given property is a super-property of this property.
Parameters: prop - A property to test. Parameters: direct - If true, only consider the direcly adjacent properties in theproperty hierarchy True if the given property is a super-property of this property.
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. If the given model is an ontology model, make the new property object
an ontproperty.
Parameters: m - A model A property equal to this property that is attached to m.
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.
An iterator of the classes having this property as oneof their declared properties
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.
Parameters: direct - If true, use only direct associations between classesand properties An iterator of the classes having this property as oneof their declared properties
Answer an iterator over all of the declared domain classes of this property.
Each element of the iterator will be an
OntResource .
An iterator over the classes that form the domain of this property. exception: OntProfileException - If the Profile.DOMAIN property is not supported in the current language profile.
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 .
An iterator over the properties equivalent to this property. exception: OntProfileException - If the Profile.EQUIVALENT_PROPERTY property is not supported in the current language profile.
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 .
An iterator over the properties inverse to this property. exception: OntProfileException - If the Profile.INVERSE_OF property is not supported in the current language profile.
Answer an iterator over all of the declared range classes of this property.
Each element of the iterator will be an
OntResource .
An iterator over the classes that form the range of this property. exception: OntProfileException - If the Profile.RANGE property is not supported in the current language profile.
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.
An iterator whose values are the restrictions from the localmodel that reference this property.
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 .
An iterator over the sub-properties of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
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 .
Parameters: direct - If true, only answer the direcly adjacent properties in theproperty hierarchy: i.e. eliminate any property for which there is a longer routeto reach that child under the sub-property relation. An iterator over the sub-properties of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
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 .
An iterator over the super-properties of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
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 .
Parameters: direct - If true, only answer the direcly adjacent properties in theproperty hierarchy: i.e. eliminate any property for which there is a longer routeto reach that child under the super-property relation. An iterator over the super-properties of this property. exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Remove the given class from the stated domain(s) of this property. If this statement
is not true of the current model, nothing happens.
Parameters: cls - A class to be removed from the declared domain(s) of this property exception: OntProfileException - If the Profile.DOMAIN property is not supported in the current language profile.
removeEquivalentProperty
public void removeEquivalentProperty(Property prop)(Code)
Remove the statement that this property and the given property are
equivalent. If this statement
is not true of the current model, nothing happens.
Parameters: prop - A property that may be declared to be equivalent to this property exception: OntProfileException - If the Profile.EQUIVALENT_PROPERTY property is not supported in the current language profile.
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.
Parameters: prop - A property that may be declared to be inverse to this property exception: OntProfileException - If the Profile.INVERSE_OF property is not supported in the current language profile.
Remove the given class from the stated range(s) of this property. If this statement
is not true of the current model, nothing happens.
Parameters: cls - A class to be removed from the declared range(s) of this property exception: OntProfileException - If the Profile.RANGE property is not supported in the current language profile.
Remove the given property from the sub-properties of this property. If this statement
is not true of the current model, nothing happens.
Parameters: prop - A property to be removed from the sub-properties of this property exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Remove the given property from the super-properties of this property. If this statement
is not true of the current model, nothing happens.
Parameters: prop - A property to be removed from the super-properties of this property exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
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.
Parameters: res - The resource that represents the domain class for this property. exception: OntProfileException - If the Profile.DOMAIN property is not supported in the current language profile.
Assert that the given property is equivalent to this property. Any existing
statements for equivalentProperty will be removed.
Parameters: prop - The property that this property is a equivalent to. exception: OntProfileException - If the Profile.EQUIVALENT_PROPERTY property is not supported in the current language profile.
Assert that the given property is the inverse of this property. Any existing
statements for inverseOf will be removed.
Parameters: prop - The property that this property is a inverse to. exception: OntProfileException - If the Profile.INVERSE_OF property is not supported in the current language profile.
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.
Parameters: res - The resource that represents the range class for this property. exception: OntProfileException - If the Profile.RANGE property is not supported in the current language profile.
Assert that this property is super-property of the given property. Any existing
statements for subPropertyOf on prop will be removed.
Parameters: prop - The property that is a sub-property of this property exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Assert that this property is sub-property of the given property. Any existing
statements for subPropertyOf will be removed.
Parameters: prop - The property that this property is a sub-property of exception: OntProfileException - If the Profile.SUB_PROPERTY_OF property is not supported in the current language profile.
Fields inherited from com.hp.hpl.jena.ontology.impl.OntResourceImpl