Class Service
- java.lang.Object
-
- org.apache.jena.sparql.engine.http.Service
-
public class Service extends java.lang.ObjectExecution of OpService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringbasestatic SymbolqueryClientUse to set the HTTP client for a service.static SymbolqueryCompressionUse to set the HttpQuery.allowCompression flag.static SymbolqueryTimeoutSet timeout.static SymbolserviceAllowedControl whether SERVICE processing is allowed.static SymbolserviceContextUse this Symbol to allow passing additional service context variables SERVICE <IRI> call.
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryIteratorexec(OpService op, Context context)Executes a service operator
-
-
-
Field Detail
-
base
public static final java.lang.String base
- See Also:
- Constant Field Values
-
queryCompression
public static final Symbol queryCompression
Use to set the HttpQuery.allowCompression flag.
-
queryClient
public static final Symbol queryClient
Use to set the HTTP client for a service.
-
serviceContext
public static final Symbol serviceContext
Use this Symbol to allow passing additional service context variables SERVICE <IRI> call. Parameters need to be grouped by SERVICE <IRI>, a Map<String, Context> is assumed. The key of the first map is the SERVICE IRI, the value is a Context who's values will override any defaults in the original context.
-
serviceAllowed
public static final Symbol serviceAllowed
Control whether SERVICE processing is allowed. If the context contains this, and it is set to "false", then SERVICE is not allowed.
-
queryTimeout
public static final Symbol queryTimeout
Set timeout. The value of this symbol gives the value of the timeout in milliseconds- A Number; the long value is used
- A string, e.g. "1000", parsed as a number
- A string, as two numbers separated by a comma, e.g. "500,10000" parsed as two numbers
-
-
Method Detail
-
exec
public static QueryIterator exec(OpService op, Context context)
Executes a service operator- Parameters:
op- Servicecontext- Context- Returns:
- Query iterator of service results
-
-