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 class
The base implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OntVocabulary
Creates aOntVocabulary
with mapping for system resource/properties.static OntVocabulary
create
(String key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabulary
that contains the specified mapping (key -> Set
).static OntVocabulary
create
(OntVocabulary... vocabularies) Creates a fresh union vocabulary that combines the given ones.static OntVocabulary
create
(org.apache.jena.rdf.model.Resource key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabulary
that contains the specified mapping (key -> Set
).static OntVocabulary
create
(org.apache.jena.rdf.model.Resource key, org.apache.jena.rdf.model.Resource... values) Creates aOntVocabulary
that 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
- anArray
ofOntVocabulary
s- Returns:
OntVocabulary
- See Also:
-
create
public static OntVocabulary create(org.apache.jena.rdf.model.Resource key, org.apache.jena.rdf.model.Resource... values) Creates aOntVocabulary
that contains the specified mapping (key -> Set
).- Parameters:
key
- a URI-Resource
, notnull
values
- anArray
withResource
s to map, notnull
- 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 aOntVocabulary
that contains the specified mapping (key -> Set
).- Parameters:
key
- a URI-Resource
, notnull
values
- aCollection
ofResource
s to map, notnull
- Returns:
- a
OntVocabulary
with single (specified) mapping
-
create
public static OntVocabulary create(String key, Collection<? extends org.apache.jena.rdf.model.Resource> values) Creates aOntVocabulary
that contains the specified mapping (key -> Set
).- Parameters:
key
-String
, a URI of resource-family, notnull
values
- aCollection
ofResource
s to map, notnull
- Returns:
- a
OntVocabulary
with single mapping - See Also:
-
create
Creates aOntVocabulary
with mapping for system resource/properties.- Parameters:
schemas
- anArray
of schemas - constant-holders withResource
andProperty
public static final fields, notnull
- Returns:
- a
OntVocabulary
with mapping for system resources and properties (keys:rdfs:Resource
andrdf:Property
)
-