Class AbstractHTTPQuery
java.lang.Object
org.eclipse.rdf4j.query.impl.AbstractOperation
org.eclipse.rdf4j.query.impl.AbstractQuery
org.eclipse.rdf4j.http.client.query.AbstractHTTPQuery
- Direct Known Subclasses:
HTTPBooleanQuery, HTTPGraphQuery, HTTPTupleQuery, SPARQLBooleanQuery, SPARQLGraphQuery, SPARQLTupleQuery
Base class for any
Query operation over HTTP.- Author:
- Andreas Schwarte
-
Nested Class Summary
Nested classes/interfaces inherited from interface Query
Query.QueryTypeModifier and TypeInterfaceDescriptionstatic enumThe different types of queries that RDF4J recognizes: boolean queries, graph queries, and tuple queries. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final QueryLanguageprotected final StringFields inherited from class AbstractOperation
bindings, dataset, includeInferredModifier and TypeFieldDescriptionprotected final MapBindingSetprotected Datasetprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHTTPQuery(SPARQLProtocolSession httpClient, QueryLanguage queryLanguage, String queryString, String baseURI) -
Method Summary
Modifier and TypeMethodDescriptionBinding[]protected SPARQLProtocolSessionvoidsetMaxExecutionTime(int maxExecutionTimeSeconds) Specifies the maximum time that an operation is allowed to run.toString()Methods inherited from class AbstractQuery
getMaxQueryTime, setMaxQueryTimeModifier and TypeMethodDescriptionintDeprecated.voidsetMaxQueryTime(int maxQueryTimeSeconds) Deprecated.Methods inherited from class AbstractOperation
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxExecutionTime, removeBinding, setBinding, setDataset, setIncludeInferredModifier and TypeMethodDescriptionvoidRemoves all previously set bindings.Retrieves the bindings that have been set on this operation.Gets the dataset that has been set usingOperation.setDataset(Dataset), if any.booleanReturns whether or not this operation will return inferred statements (if any are present in the repository).intReturns the maximum operation execution time.voidremoveBinding(String name) Removes a previously set binding on the supplied variable.voidsetBinding(String name, Value value) Binds the specified variable to the supplied value.voidsetDataset(Dataset dataset) Specifies the dataset against which to execute an operation, overriding any dataset that is specified in the operation itself.voidsetIncludeInferred(boolean includeInferred) Determine whether evaluation results of this operation should include inferred statements (if any inferred statements are present in the repository).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Query
explainModifier and TypeMethodDescriptiondefault Explanationexplain(Explanation.Level level) Explain how the query will be (or has been) executed/evaluated by returning an explanation of the query plan.
-
Field Details
-
queryLanguage
-
queryString
-
baseURI
-
-
Constructor Details
-
AbstractHTTPQuery
protected AbstractHTTPQuery(SPARQLProtocolSession httpClient, QueryLanguage queryLanguage, String queryString, String baseURI)
-
-
Method Details
-
getHttpClient
- Returns:
- Returns the
SPARQLProtocolSessionto be used for all HTTP based interaction
-
getBindingsArray
-
setMaxExecutionTime
public void setMaxExecutionTime(int maxExecutionTimeSeconds) Description copied from interface:OperationSpecifies the maximum time that an operation is allowed to run. The operation will be interrupted when it exceeds the time limit. Any consecutive requests to fetch query results will result inQueryInterruptedExceptions orUpdateExecutionExceptions (depending on whether the operation is a query or an update).- Specified by:
setMaxExecutionTimein interfaceOperation- Overrides:
setMaxExecutionTimein classAbstractOperation- Parameters:
maxExecutionTimeSeconds- The maximum query time, measured in seconds. A negative or zero value indicates an unlimited execution time (which is the default).
-
toString
-