Class OntVocabulary.Impls

java.lang.Object
org.apache.jena.ontapi.common.OntVocabulary.Impls
Enclosing interface:
OntVocabulary

public static final class OntVocabulary.Impls extends Object
A factory-helper to work with OntVocabulary instances, that wrap constant-holders from the packages org.apache.jena.vocabulary and org.apache.jena.vocabulary (such as OWL2).

In ONT-API, a OntVocabulary singleton is used to build OntPersonality and, also, in com.github.owlcs.ontapi.transforms subsystem.

  • Constructor Details

    • Impls

      public Impls()
  • Method Details

    • create

      public static OntVocabulary create(OntVocabulary... vocabularies)
      Creates a fresh union vocabulary that combines the given ones.
      Parameters:
      vocabularies - an Array of OntVocabularys
      Returns:
      OntVocabulary
      See Also:
    • create

      public static OntVocabulary create(org.apache.jena.rdf.model.Resource key, org.apache.jena.rdf.model.Resource... values)
      Creates a OntVocabulary that contains the specified mapping (key -> Set).
      Parameters:
      key - a URI-Resource, not null
      values - an Array with Resources to map, not null
      Returns:
      a OntVocabulary with single (specified) mapping
    • create

      public static OntVocabulary create(org.apache.jena.rdf.model.Resource key, Collection<? extends org.apache.jena.rdf.model.Resource> values)
      Creates a OntVocabulary that contains the specified mapping (key -> Set).
      Parameters:
      key - a URI-Resource, not null
      values - a Collection of Resources to map, not null
      Returns:
      a OntVocabulary with single (specified) mapping
    • create

      public static OntVocabulary create(String key, Collection<? extends org.apache.jena.rdf.model.Resource> values)
      Creates a OntVocabulary that contains the specified mapping (key -> Set).
      Parameters:
      key - String, a URI of resource-family, not null
      values - a Collection of Resources to map, not null
      Returns:
      a OntVocabulary with single mapping
      See Also:
    • create

      public static OntVocabulary create(Class<?>... schemas)
      Creates a OntVocabulary with mapping for system resource/properties.
      Parameters:
      schemas - an Array of schemas - constant-holders with Resource and Property public static final fields, not null
      Returns:
      a OntVocabulary with mapping for system resources and properties (keys: rdfs:Resource and rdf:Property)