Class FUN_JSONPath
- java.lang.Object
-
- org.apache.jena.sparql.function.FunctionBase
-
- org.apache.jena.sparql.function.FunctionBase2
-
- fr.mines_stetienne.ci.sparql_generate.json.FUN_JSONPath
-
- All Implemented Interfaces:
Function
public final class FUN_JSONPath extends FunctionBase2
Binding function fun:JSONPath extracts a string from a JSON document, according to a JSONPath expression.- Param 1 is a JSON document;
- Param 2 is the JSONPath query. See https://github.com/json-path/JsonPath for the syntax specification;
- Result is a boolean, float, double, integer, string, as it best fits.
- Author:
- Noorani Bakerally
, Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description FUN_JSONPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeValue
exec(NodeValue json, NodeValue jsonpath)
NodeValue
nodeForObject(Object value)
-
Methods inherited from class org.apache.jena.sparql.function.FunctionBase2
checkBuild, exec
-
Methods inherited from class org.apache.jena.sparql.function.FunctionBase
build, evalArgs, exec, exec
-
-
-
-
Field Detail
-
URI
public static final String URI
The SPARQL function URI.- See Also:
- Constant Field Values
-
-