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
    Modifier and Type
    Field
    Description
    static String
    The SPARQL function URI.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.expr.NodeValue
    exec​(org.apache.jena.sparql.expr.NodeValue json, org.apache.jena.sparql.expr.NodeValue jsonpath)
     
    org.apache.jena.sparql.expr.NodeValue
     

    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.function.Function

    build
  • Field Details

  • 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:
      exec in class org.apache.jena.sparql.function.FunctionBase2
    • nodeForObject

      public org.apache.jena.sparql.expr.NodeValue nodeForObject(Object value)