Class SparqlFnLibJson
java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.json.SparqlFnLibJson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intlength(com.google.gson.JsonElement json) Get the length of a json array.static com.google.gson.JsonElementmerge(com.google.gson.JsonElement a, com.google.gson.JsonElement b) static com.google.gson.JsonElementCreates a deep copy of the given json object with the given key and value (converted to JSON) appended.
-
Constructor Details
-
SparqlFnLibJson
public SparqlFnLibJson()
-
-
Method Details
-
length
public static int length(com.google.gson.JsonElement json) Get the length of a json array. RaisesIllegalArgumentExceptionfor 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)
-