Module org.apache.jena.ontapi
Package org.apache.jena.ontapi.common
Interface OntPersonality.Reserved
- All Superinterfaces:
ResourceVocabulary<org.apache.jena.rdf.model.Resource>
- Enclosing interface:
- OntPersonality
public static interface OntPersonality.Reserved
extends ResourceVocabulary<org.apache.jena.rdf.model.Resource>
A vocabulary of reserved IRIs.
A
model
, that holds this configuration,
cannot contain entities with the IRIs from this vocabulary.
Example of such a forbidden Property
returned by this vocabulary is
owl:sameAs
,
since it is used by a model to build individual equality and, therefore, it cannot be used in other cases.
An ontology model
cannot contain an OWL entity with this IRI.
All these things are customizable, and vocabularies may contain more or less restrictions.
Each node obtained from this class must be IRI (i.e. node.isURI() = true
).
-
Method Summary
Modifier and TypeMethodDescriptiondefault Set<org.apache.jena.graph.Node>
Resources + Propertiesdefault Set<org.apache.jena.graph.Node>
Gets all reserved IRIs, which are most likely used as a predicate in SPO of some schema graph.default Set<org.apache.jena.graph.Node>
Gets all reserved IRIs, which are most likely used as an object in SPO of some schema graph.Methods inherited from interface org.apache.jena.ontapi.common.ResourceVocabulary
get, supports
-
Method Details
-
getResources
Gets all reserved IRIs, which are most likely used as an object in SPO of some schema graph.- Returns:
- Set of IRI-
node
s
-
getProperties
Gets all reserved IRIs, which are most likely used as a predicate in SPO of some schema graph.- Returns:
- Set of IRI-
node
s
-
getAllResources
Resources + Properties- Returns:
- Set of IRI-
node
s
-