java.lang.Object
org.apache.jena.ontapi.common.OntVocabulary.Impls
- Enclosing interface:
- OntVocabulary
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe base implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OntVocabularyCreates aOntVocabularywith mapping for system resource/properties.static OntVocabularycreate(String key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabularythat contains the specified mapping (key -> Set).static OntVocabularycreate(OntVocabulary... vocabularies) Creates a fresh union vocabulary that combines the given ones.static OntVocabularycreate(org.apache.jena.rdf.model.Resource key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabularythat contains the specified mapping (key -> Set).static OntVocabularycreate(org.apache.jena.rdf.model.Resource key, org.apache.jena.rdf.model.Resource... values) Creates aOntVocabularythat contains the specified mapping (key -> Set).
-
Constructor Details
-
Impls
public Impls()
-
-
Method Details
-
create
Creates a fresh union vocabulary that combines the given ones.- Parameters:
vocabularies- anArrayofOntVocabularys- Returns:
OntVocabulary- See Also:
-
create
public static OntVocabulary create(org.apache.jena.rdf.model.Resource key, org.apache.jena.rdf.model.Resource... values) Creates aOntVocabularythat contains the specified mapping (key -> Set).- Parameters:
key- a URI-Resource, notnullvalues- anArraywithResources to map, notnull- Returns:
- a
OntVocabularywith 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 aOntVocabularythat contains the specified mapping (key -> Set).- Parameters:
key- a URI-Resource, notnullvalues- aCollectionofResources to map, notnull- Returns:
- a
OntVocabularywith single (specified) mapping
-
create
public static OntVocabulary create(String key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabularythat contains the specified mapping (key -> Set).- Parameters:
key-String, a URI of resource-family, notnullvalues- aCollectionofResources to map, notnull- Returns:
- a
OntVocabularywith single mapping - See Also:
-
create
Creates aOntVocabularywith mapping for system resource/properties.- Parameters:
schemas- anArrayof schemas - constant-holders withResourceandPropertypublic static final fields, notnull- Returns:
- a
OntVocabularywith mapping for system resources and properties (keys:rdfs:Resourceandrdf:Property)
-