java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase2
fr.mines_stetienne.ci.sparql_generate.json.FUN_CBOR
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public final class FUN_CBOR extends org.apache.jena.sparql.function.FunctionBase2
Binding function fun:CBOR takes as input a CBOR document, decodes it, and return a sub-JSON document according to a JSONPath expression.
  • Param 1 (cbor) is a base64 encoding of the CBOR document in a RDF Literal with datatype URI <https://www.iana.org/assignments/media-types/application/cbor> or xsd:string
  • Param 2 is the JSONPath query. See https://github.com/json-path/JsonPath for the syntax specification;
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • 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 cbor, org.apache.jena.sparql.expr.NodeValue jsonpath)
     

    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_CBOR

      public FUN_CBOR()
  • Method Details

    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue cbor, org.apache.jena.sparql.expr.NodeValue jsonpath)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase2