Class SparqlFnLibJson

java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.json.SparqlFnLibJson

public class SparqlFnLibJson extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    length(com.google.gson.JsonElement json)
    Get the length of a json array.
    static com.google.gson.JsonElement
    merge(com.google.gson.JsonElement a, com.google.gson.JsonElement b)
     
    static com.google.gson.JsonElement
    set(com.google.gson.JsonElement json, String key, org.apache.jena.graph.Node value)
    Creates a deep copy of the given json object with the given key and value (converted to JSON) appended.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SparqlFnLibJson

      public SparqlFnLibJson()
  • Method Details

    • length

      public static int length(com.google.gson.JsonElement json)
      Get the length of a json array. Raises IllegalArgumentException for non array arguments
    • set

      public static com.google.gson.JsonElement set(com.google.gson.JsonElement json, String key, org.apache.jena.graph.Node value)
      Creates a deep copy of the given json object with the given key and value (converted to JSON) appended. Overwrites any prior value for that key.
    • merge

      public static com.google.gson.JsonElement merge(com.google.gson.JsonElement a, com.google.gson.JsonElement b)