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
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 Summary
FieldsFields inherited from class org.aksw.jenax.dataaccess.sparql.exec.query.QueryExecBaseSelect
activeQueryExec, isCancelled, query, rawTuplesFields inherited from class org.aksw.commons.util.closeable.AutoCloseableBase
closeStackTrace, enableCloseStackTrace, isClosed -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQueryExecSelect(org.apache.jena.query.Query query, QueryExecFactoryQuery delegate, boolean rawTuples) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.jena.sparql.exec.QueryExecdoSelect(org.apache.jena.query.Query selectQuery) The actual method that needs to be implemented.static org.apache.jena.sparql.exec.QueryExecof(org.apache.jena.query.Query query, QueryExecFactoryQuery qef) Create a QueryExecstatic org.apache.jena.sparql.exec.QueryExecof(org.apache.jena.query.Query query, QueryExecFactoryQuery qef, boolean rawTuples) Create a QueryExecMethods inherited from class org.aksw.jenax.dataaccess.sparql.exec.query.QueryExecBaseSelect
abort, adjust, ask, closeActual, constructQuads, constructTriples, describeTriples, execJsonItems, getContext, getDataset, getQuery, getQueryString, internalSelect, isClosed, select, setActiveQueryExecMethods inherited from class org.aksw.commons.util.closeable.AutoCloseableBase
close, ensureOpen, throwClosedExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.exec.QueryExec
closeMethods inherited from interface org.aksw.jenax.dataaccess.sparql.exec.query.QueryExecBaseIterator
construct, construct, constructDataset, constructDataset, describe, describe, execJson
-
Field Details
-
delegate
-
-
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 oneqef- 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 oneqef- 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:QueryExecBaseSelectThe 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:
doSelectin classQueryExecBaseSelect
-