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 Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternLiberal pattern that checks for any content type ending in json. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonObjectvoidcheckBuild(String uri, org.apache.jena.sparql.expr.ExprList args) static voidconfigure(URLConnection conn, UrlFetchSpec conf) static URLConnectionconfigure(UrlFetchSpec conf, org.apache.jena.sparql.function.FunctionEnv env) org.apache.jena.sparql.expr.NodeValueorg.apache.jena.sparql.expr.NodeValueexec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env) static voidexpandShortcuts(List<String> key) Methods inherited from class org.apache.jena.sparql.function.FunctionBase
build, exec
-
Field Details
-
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:
execin classorg.apache.jena.sparql.function.FunctionBase
-
exec
- Specified by:
execin classorg.apache.jena.sparql.function.FunctionBase
-
checkBuild
- Specified by:
checkBuildin classorg.apache.jena.sparql.function.FunctionBase
-
assemble
-
expandShortcuts
-
configure
public static URLConnection configure(UrlFetchSpec conf, org.apache.jena.sparql.function.FunctionEnv env) throws IOException - Throws:
IOException
-
configure
-