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.
-
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, evalArgs, execMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.function.Function
build
-
Field Details
-
URI
The SPARQL function URI.- See Also:
- Constant Field Values
-
-
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
-