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 Type
    Method
    Description
    default Set<org.apache.jena.graph.Node>
    Resources + Properties
    default 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

      default Set<org.apache.jena.graph.Node> getResources()
      Gets all reserved IRIs, which are most likely used as an object in SPO of some schema graph.
      Returns:
      Set of IRI-nodes
    • getProperties

      default Set<org.apache.jena.graph.Node> getProperties()
      Gets all reserved IRIs, which are most likely used as a predicate in SPO of some schema graph.
      Returns:
      Set of IRI-nodes
    • getAllResources

      default Set<org.apache.jena.graph.Node> getAllResources()
      Resources + Properties
      Returns:
      Set of IRI-nodes