Class QueryExecSelect

java.lang.Object
org.aksw.commons.util.closeable.AutoCloseableBase
org.aksw.jenax.dataaccess.sparql.exec.query.QueryExecBaseSelect
org.aksw.jenax.dataaccess.sparql.exec.query.QueryExecSelect
All Implemented Interfaces:
AutoCloseable, QueryExecBaseIterator, org.apache.jena.sparql.exec.QueryExec

public class QueryExecSelect extends QueryExecBaseSelect
Execute non-select query forms as select queries. Map all non-select sparql query types to select queries. Works for CONSTRUCT and ASK. DESCRIBE and JSON not yet supported.
  • Field Details

  • Constructor Details

    • QueryExecSelect

      protected QueryExecSelect(org.apache.jena.query.Query query, QueryExecFactoryQuery delegate, boolean rawTuples)
  • Method Details

    • of

      public static org.apache.jena.sparql.exec.QueryExec of(org.apache.jena.query.Query query, QueryExecFactoryQuery qef)
      Create a QueryExec
      Parameters:
      query - The query which should be executed as a select one
      qef - A query exec factory that receives the select query derived from 'query'
      Returns:
    • of

      public static org.apache.jena.sparql.exec.QueryExec of(org.apache.jena.query.Query query, QueryExecFactoryQuery qef, boolean rawTuples)
      Create a QueryExec
      Parameters:
      query - The query which should be executed as a select one
      qef - A query exec factory that receives the select query derived from 'query'
      rawTuples - Naive substitution of the the template with the bindings
      Returns:
    • doSelect

      protected org.apache.jena.sparql.exec.QueryExec doSelect(org.apache.jena.query.Query selectQuery)
      Description copied from class: QueryExecBaseSelect
      The actual method that needs to be implemented. The argument is always a SPARQL query of select type. The RowSet may need to implement close() in order to close an underlying query execution.
      Specified by:
      doSelect in class QueryExecBaseSelect