Class E_UrlFetch

java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.aksw.jena_sparql_api.sparql.ext.url.E_UrlFetch
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public class E_UrlFetch extends org.apache.jena.sparql.function.FunctionBase
url:fetch(?url, [option1 [, ... [, optionN]]]) If the first argument is a string then it is considered to be the URL. If the next option to process - is a string then it is interpreted as a json key with the following option its value. - is a json object then it is merged into the current one
Author:
raven
  • Field Details

    • jsonContentTypePattern

      public static final Pattern jsonContentTypePattern
      Liberal pattern that checks for any content type ending in json.
  • Constructor Details

    • E_UrlFetch

      public E_UrlFetch()
  • Method Details

    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env)
      Overrides:
      exec in class org.apache.jena.sparql.function.FunctionBase
    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(List<org.apache.jena.sparql.expr.NodeValue> args)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase
    • checkBuild

      public void checkBuild(String uri, org.apache.jena.sparql.expr.ExprList args)
      Specified by:
      checkBuild in class org.apache.jena.sparql.function.FunctionBase
    • assemble

      public static com.google.gson.JsonObject assemble(List<org.apache.jena.sparql.expr.NodeValue> args)
    • expandShortcuts

      public static void expandShortcuts(List<String> key)
    • configure

      public static URLConnection configure(UrlFetchSpec conf, org.apache.jena.sparql.function.FunctionEnv env) throws IOException
      Throws:
      IOException
    • configure

      public static void configure(URLConnection conn, UrlFetchSpec conf)