Module org.apache.jena.ontapi
Package org.apache.jena.ontapi.common
Interface ResourceVocabulary<T extends org.apache.jena.rdf.model.Resource>
- Type Parameters:
T
- any subtype ofResource
- All Known Subinterfaces:
OntPersonality.Builtins
,OntPersonality.Punnings
,OntPersonality.Reserved
public interface ResourceVocabulary<T extends org.apache.jena.rdf.model.Resource>
This is a resource type mapper.
It is a technical interface that is included into the
OntPersonality
.
Note: all its methods must return a IRIs (as String
s), not literals or blank-nodes.- See Also:
-
Method Summary
-
Method Details
-
get
Returns aSet
ofJena Graph Node
s for the givenClass
-type.- Parameters:
type
-Class
, any subtype ofT
- Returns:
- Set of
node
s (immutable!), can be empty (if no mapping or type is not supported) - Throws:
OntJenaException
-
supports
Answerstrue
if the given type is supported by the vocabulary.- Parameters:
type
-Class
, any subtype ofT
- Returns:
- boolean
-