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:
org.apache.jena.sparql.function.Function
public final class FUN_JSONPath
extends org.apache.jena.sparql.function.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 invalid input: '<'noorani.bakerally at emse.fr>, Maxime Lefrançois
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.NodeValueexec(org.apache.jena.sparql.expr.NodeValue json, org.apache.jena.sparql.expr.NodeValue jsonpath) org.apache.jena.sparql.expr.NodeValuenodeForObject(Object value) Methods inherited from class org.apache.jena.sparql.function.FunctionBase2
checkBuild, execMethods inherited from class org.apache.jena.sparql.function.FunctionBase
build, exec, exec
-
Field Details
-
URI
The SPARQL function URI.- See Also:
-
-
Constructor Details
-
FUN_JSONPath
public FUN_JSONPath()
-
-
Method Details
-
exec
public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue json, org.apache.jena.sparql.expr.NodeValue jsonpath) - Specified by:
execin classorg.apache.jena.sparql.function.FunctionBase2
-
nodeForObject
-