Interface ResourceVocabulary<T extends org.apache.jena.rdf.model.Resource>

Type Parameters:
T - any subtype of Resource
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

    Modifier and Type
    Method
    Description
    Set<org.apache.jena.graph.Node>
    get(Class<? extends T> type)
    Returns a Set of Jena Graph Nodes for the given Class-type.
    boolean
    supports(Class<? extends T> type)
    Answers true if the given type is supported by the vocabulary.
  • Method Details

    • get

      Set<org.apache.jena.graph.Node> get(Class<? extends T> type) throws OntJenaException
      Returns a Set of Jena Graph Nodes for the given Class-type.
      Parameters:
      type - Class, any subtype of T
      Returns:
      Set of nodes (immutable!), can be empty (if no mapping or type is not supported)
      Throws:
      OntJenaException
    • supports

      boolean supports(Class<? extends T> type)
      Answers true if the given type is supported by the vocabulary.
      Parameters:
      type - Class, any subtype of T
      Returns:
      boolean