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 Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object arr, Object value) org.apache.jena.graph.NodegetLiteral(Object obj) org.apache.jena.graph.NodegetObjectId(Object obj) Get the id of an object.getProperty(Object obj, org.apache.jena.graph.Node p, boolean isForward) booleanbooleanbooleanbooleannewArray()newLiteral(org.apache.jena.graph.Node node) newNull()newObject(org.apache.jena.graph.Node node) voidremoveElement(Object arr, int index) voidremoveProperty(Object obj, org.apache.jena.graph.Node p, boolean isForward) voidsetElement(Object arr, int index, Object value) voidsetProperty(Object obj, org.apache.jena.graph.Node p, boolean isFoward, Object value)
-
Method Details
-
newObject
-
isObject
-
getObjectId
Get the id of an object. Can be thought of as extracting the@idattribute of a JSON-LD object. -
setProperty
-
getProperty
-
removeProperty
-
newArray
Object newArray() -
isArray
-
addElement
-
setElement
-
removeElement
-
newLiteral
-
isLiteral
-
getLiteral
-
newNull
Object newNull() -
isNull
-