Answer an iterator that ranges over the property resources in this model, i.e. the resources with rdf:type Property
or equivalent. An OntProperty
is equivalent to an rdfs:Property
in a normal RDF graph; this type is provided as a common super-type for the more specific {@link ObjectProperty} and{@link DatatypeProperty} property types.
Note This method searches for nodes in the underlying model whose rdf:type
is rdf:Property
. This type is entailed by specific property sub-types, such as owl:ObjectProperty
. An important consequence of this is that in models without an attached reasoner (e.g. in the OWL_MEM
{@link OntModelSpec}), the entailed type will not be present and this method will omit such properties from the returned iterator.
Solution There are two ways to address to this issue: either use a reasoning engine to ensure that type entailments are taking place correctly, or call {@link #listAllOntProperties()}. Note that listAllOntProperties
is potentially less efficient than this method.
The resources returned by this iterator will those whose type corresponds to the value given in the ontology vocabulary associated with this model.
@return An iterator over property resources.
|
|