- All Superinterfaces:
QueryExecMod
- All Known Implementing Classes:
QueryExecBuilderAdapter
,QueryExecDatasetBuilder
,QueryExecHTTPBuilder
The common elements of a
QueryExec
builder.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
ask()
Build and execute as an ASK query.build()
Build theQueryExec
.default org.apache.jena.graph.Graph
Build and execute as a CONSTRUCT query.Set the context.default org.apache.jena.graph.Graph
describe()
Build and execute as a CONSTRUCT query.parseCheck
(boolean parseCheck) Hint whether to immediately parse query strings passed toquery(String)
Set the query.Set the query.Set the query.default RowSet
select()
Build and execute as a SELECT query.Set a context entry.Set a context entry.default QueryExecBuilder
substitution
(String var, org.apache.jena.graph.Node value) Provide a (var name, Node) for substitution in the query when QueryExec is built.substitution
(Var var, org.apache.jena.graph.Node value) Provide a (Var, Node) for substitution in the query when QueryExec is built.substitution
(Binding binding) Provide a set of (Var, Node) for substitution in the query when QueryExec is built.default Table
table()
Build and execute as a SELECT query.Set the overall query execution timeout.Methods inherited from interface org.apache.jena.sparql.exec.QueryExecMod
getContext, initialTimeout, overallTimeout, timeout
-
Method Details
-
query
Set the query. -
query
Set the query. -
query
Set the query. -
parseCheck
Hint whether to immediately parse query strings passed toquery(String)
-
set
Set a context entry. -
set
Set a context entry. -
context
Set the context. If not set, defaults to the system context (ARQ.getContext()
). -
substitution
Provide a set of (Var, Node) for substitution in the query when QueryExec is built. -
substitution
Provide a (Var, Node) for substitution in the query when QueryExec is built. -
substitution
Provide a (var name, Node) for substitution in the query when QueryExec is built. -
timeout
Set the overall query execution timeout.- Specified by:
timeout
in interfaceQueryExecMod
-
build
QueryExec build()- Specified by:
build
in interfaceQueryExecMod
-
select
Build and execute as a SELECT query. The caller must eventually close the returned RowSet in order to free any associated resources. Usetable()
to obtain an independent in-memory copy of the row set. -
construct
default org.apache.jena.graph.Graph construct()Build and execute as a CONSTRUCT query. -
describe
default org.apache.jena.graph.Graph describe()Build and execute as a CONSTRUCT query. -
ask
default boolean ask()Build and execute as an ASK query. -
table
Build and execute as a SELECT query. Creates and returns an independent in-memory table by materializing the underlying row set. Subsequently,Table.toRowSet()
can be used to obtain a fresh row set view over the table.
-