- All Known Implementing Classes:
OntVocabulary.Impls.BaseImpl
public interface OntVocabulary
An Ontology Vocabulary.
This is a generic interface that simply maps an
uri
-key to a Set
of
RDF Resources
or RDF Properties
,
that are defined in vocabulary schemas and represent some family determined by that key.
A schema is a java class containing public static final constants.
Schemas are usually located inside the packages
org.apache.jena.vocabulary
and org.apache.jena.vocabulary
.
There are two kinds of property/resources described by this vocabulary: system and builtin.
A system resource/property is simply a URI defined in any scheme.
A builtin resource/property is a URI with a known type that does not require explicit declaration.
Note that all methods of this interface return unmodifiable Set
s.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A factory-helper to work withOntVocabulary
instances, that wrap constant-holders from the packagesorg.apache.jena.vocabulary
andorg.apache.jena.vocabulary
(such asOWL2
). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
static final OntVocabulary
-
Method Summary
Modifier and TypeMethodDescriptiondefault OntVocabulary
and
(OntVocabulary other) Creates a new instance ofOntVocabulary
, combining this and the given vocabularies.Set<? extends org.apache.jena.rdf.model.Resource>
Answers aSet
of system/builtinResource
s for the specified URI-key
.default <X extends org.apache.jena.rdf.model.Resource>
Set<X>get
(org.apache.jena.rdf.model.Resource uri) Answers aSet
of system/builtinResource
s for the specified URI-key.default Set<org.apache.jena.rdf.model.Property>
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:AnnotationProperty
.default Set<org.apache.jena.rdf.model.Resource>
Returns a collection of all built-in uri resources with implicitrdf:type
equal toowl:Class
.default Set<org.apache.jena.rdf.model.Property>
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:DatatypeProperty
.default Set<org.apache.jena.rdf.model.Resource>
Returns a collection of all built-in uri-resources with implicitrdf:type
equal tordfs:Datatype
.default Set<org.apache.jena.rdf.model.Property>
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:ObjectProperty
.default Set<org.apache.jena.rdf.model.Resource>
Returns a collection of all built-in uri resources with implicitrdf:type
equal toswrl:Builtin
.default Set<org.apache.jena.rdf.model.Property>
Returns all reserved properties: OWL2 ontology cannot contain assertion with predicate belonging to the return collection.default Set<org.apache.jena.rdf.model.Resource>
Returns all reserved resources: OWL entities cannot have an uri belonging to the return collection.
-
Field Details
-
EMPTY
-
RDFS
-
OWL2_FULL
-
OWL2_EL
-
OWL2_QL
-
OWL2_RL
-
OWL1_FULL
-
OWL1_LITE
-
DC
-
SKOS
-
SWRL
-
-
Method Details
-
get
Answers aSet
of system/builtinResource
s for the specified URI-key
. A URI-key
- is a schema URI that determines a family of desired resources. For example, to get all resources a keyrdfs:Resource
should be used, because it is a supertype of everything.- Parameters:
key
- String, notnull
- Returns:
- a
Set
ofResource
s (possibly empty)
-
get
default <X extends org.apache.jena.rdf.model.Resource> Set<X> get(org.apache.jena.rdf.model.Resource uri) Answers aSet
of system/builtinResource
s for the specified URI-key.- Type Parameters:
X
- eitherResource
orProperty
- Parameters:
uri
- a URI-Resource
, notnull
- Returns:
- a
Set
ofX
s, notnull
but possibly empty
-
getBuiltinAnnotationProperties
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:AnnotationProperty
.- Returns:
Set
ofProperties
-
getBuiltinDatatypeProperties
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:DatatypeProperty
.- Returns:
Set
ofProperties
-
getBuiltinObjectProperties
Returns a collection of all built-in properties with implicitrdf:type
equal toowl:ObjectProperty
.- Returns:
Set
ofProperties
-
getBuiltinDatatypes
Returns a collection of all built-in uri-resources with implicitrdf:type
equal tordfs:Datatype
.- Returns:
Set
ofResources
-
getBuiltinClasses
Returns a collection of all built-in uri resources with implicitrdf:type
equal toowl:Class
.- Returns:
Set
ofResources
-
getBuiltinSWRLs
Returns a collection of all built-in uri resources with implicitrdf:type
equal toswrl:Builtin
.- Returns:
Set
ofResources
-
getSystemResources
Returns all reserved resources: OWL entities cannot have an uri belonging to the return collection.- Returns:
Set
ofResources
-
getSystemProperties
Returns all reserved properties: OWL2 ontology cannot contain assertion with predicate belonging to the return collection.- Returns:
Set
ofProperties
-
and
Creates a new instance ofOntVocabulary
, combining this and the given vocabularies.- Parameters:
other
-OntVocabulary
, notnull
- Returns:
OntVocabulary
-