Class AbstractHTTPQuery

All Implemented Interfaces:
Operation, Query
Direct Known Subclasses:
HTTPBooleanQuery, HTTPGraphQuery, HTTPTupleQuery, SPARQLBooleanQuery, SPARQLGraphQuery, SPARQLTupleQuery

public abstract class AbstractHTTPQuery extends AbstractQuery
Base class for any Query operation over HTTP.
Andreas Schwarte
  • Field Details

    • queryLanguage

      protected final QueryLanguage queryLanguage
    • queryString

      protected final String queryString
    • baseURI

      protected final String baseURI
  • Constructor Details

  • Method Details

    • getHttpClient

      protected SPARQLProtocolSession getHttpClient()
      Returns the SPARQLProtocolSession to be used for all HTTP based interaction
    • getBindingsArray

      public Binding[] getBindingsArray()
    • setMaxExecutionTime

      public void setMaxExecutionTime(int maxExecutionTimeSeconds)
      Description copied from interface: Operation
      Specifies 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 in QueryInterruptedExceptions or UpdateExecutionExceptions (depending on whether the operation is a query or an update).
      Specified by:
      setMaxExecutionTime in interface Operation
      setMaxExecutionTime in class AbstractOperation
      maxExecutionTimeSeconds - The maximum query time, measured in seconds. A negative or zero value indicates an unlimited execution time (which is the default).
    • toString

      public String toString()
      toString in class Object