- 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 Sets.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA factory-helper to work withOntVocabularyinstances, that wrap constant-holders from the packagesorg.apache.jena.vocabularyandorg.apache.jena.vocabulary(such asOWL2). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabularystatic final OntVocabulary -
Method Summary
Modifier and TypeMethodDescriptiondefault OntVocabularyand(OntVocabulary other) Creates a new instance ofOntVocabulary, combining this and the given vocabularies.Set<? extends org.apache.jena.rdf.model.Resource>Answers aSetof system/builtinResources 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 aSetof system/builtinResources for the specified URI-key.default Set<org.apache.jena.rdf.model.Property>Returns a collection of all built-in properties with implicitrdf:typeequal toowl:AnnotationProperty.default Set<org.apache.jena.rdf.model.Resource>Returns a collection of all built-in uri resources with implicitrdf:typeequal toowl:Class.default Set<org.apache.jena.rdf.model.Property>Returns a collection of all built-in properties with implicitrdf:typeequal toowl:DatatypeProperty.default Set<org.apache.jena.rdf.model.Resource>Returns a collection of all built-in uri-resources with implicitrdf:typeequal tordfs:Datatype.default Set<org.apache.jena.rdf.model.Property>Returns a collection of all built-in properties with implicitrdf:typeequal toowl:ObjectProperty.default Set<org.apache.jena.rdf.model.Resource>Returns a collection of all built-in uri resources with implicitrdf:typeequal 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 aSetof system/builtinResources 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:Resourceshould be used, because it is a supertype of everything.- Parameters:
key- String, notnull- Returns:
- a
SetofResources (possibly empty)
-
get
default <X extends org.apache.jena.rdf.model.Resource> Set<X> get(org.apache.jena.rdf.model.Resource uri) Answers aSetof system/builtinResources for the specified URI-key.- Type Parameters:
X- eitherResourceorProperty- Parameters:
uri- a URI-Resource, notnull- Returns:
- a
SetofXs, notnullbut possibly empty
-
getBuiltinAnnotationProperties
Returns a collection of all built-in properties with implicitrdf:typeequal toowl:AnnotationProperty.- Returns:
SetofProperties
-
getBuiltinDatatypeProperties
Returns a collection of all built-in properties with implicitrdf:typeequal toowl:DatatypeProperty.- Returns:
SetofProperties
-
getBuiltinObjectProperties
Returns a collection of all built-in properties with implicitrdf:typeequal toowl:ObjectProperty.- Returns:
SetofProperties
-
getBuiltinDatatypes
Returns a collection of all built-in uri-resources with implicitrdf:typeequal tordfs:Datatype.- Returns:
SetofResources
-
getBuiltinClasses
Returns a collection of all built-in uri resources with implicitrdf:typeequal toowl:Class.- Returns:
SetofResources
-
getBuiltinSWRLs
Returns a collection of all built-in uri resources with implicitrdf:typeequal toswrl:Builtin.- Returns:
SetofResources
-
getSystemResources
Returns all reserved resources: OWL entities cannot have an uri belonging to the return collection.- Returns:
SetofResources
-
getSystemProperties
Returns all reserved properties: OWL2 ontology cannot contain assertion with predicate belonging to the return collection.- Returns:
SetofProperties
-
and
Creates a new instance ofOntVocabulary, combining this and the given vocabularies.- Parameters:
other-OntVocabulary, notnull- Returns:
OntVocabulary
-