Interface RonProvider

Type Parameters:
K - The key type of objects. The type correspondences are strings for JSON and RDF terms for RON.
V - The type of values contained in literals. Typically object for JSON and RDF term for RON. If we allowed a V type, then we'd need a Java-to-V mapper, such as Object-to-Node.

public interface RonProvider
Abstraction akin to JSONPath's JsonProvidere. There are subtle differences between JSON and RON: In RON, keys and literals are all RDF terms.
  • Method Details

    • newObject

      Object newObject(org.apache.jena.graph.Node node)
    • isObject

      boolean isObject(Object obj)
    • getObjectId

      org.apache.jena.graph.Node getObjectId(Object obj)
      Get the id of an object. Can be thought of as extracting the @id attribute of a JSON-LD object.
    • setProperty

      void setProperty(Object obj, org.apache.jena.graph.Node p, boolean isFoward, Object value)
    • getProperty

      Object getProperty(Object obj, org.apache.jena.graph.Node p, boolean isForward)
    • removeProperty

      void removeProperty(Object obj, org.apache.jena.graph.Node p, boolean isForward)
    • newArray

      Object newArray()
    • isArray

      boolean isArray(Object obj)
    • addElement

      void addElement(Object arr, Object value)
    • setElement

      void setElement(Object arr, int index, Object value)
    • removeElement

      void removeElement(Object arr, int index)
    • newLiteral

      Object newLiteral(org.apache.jena.graph.Node node)
    • isLiteral

      boolean isLiteral(Object obj)
    • getLiteral

      org.apache.jena.graph.Node getLiteral(Object obj)
    • newNull

      Object newNull()
    • isNull

      boolean isNull(Object obj)