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 Strings), not literals or blank-nodes.- See Also:
-
Method Summary
-
Method Details
-
get
Returns aSetofJena Graph Nodes for the givenClass-type.- Parameters:
type-Class, any subtype ofT- Returns:
- Set of
nodes (immutable!), can be empty (if no mapping or type is not supported) - Throws:
OntJenaException
-
supports
Answerstrueif the given type is supported by the vocabulary.- Parameters:
type-Class, any subtype ofT- Returns:
- boolean
-