public class ASTEvalHelper extends Object
| Constructor and Description |
|---|
ASTEvalHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
evaluateBooleanQuery(AbstractTripleStore store,
ASTContainer astContainer,
org.openrdf.query.BindingSet globallyScopedBS,
org.openrdf.query.Dataset dataset)
Evaluate a boolean query.
|
static org.openrdf.query.GraphQueryResult |
evaluateGraphQuery(AbstractTripleStore store,
ASTContainer astContainer,
org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS,
org.openrdf.query.Dataset dataset)
Evaluate a CONSTRUCT/DESCRIBE query.
|
static org.openrdf.query.TupleQueryResult |
evaluateTupleQuery(AbstractTripleStore store,
ASTContainer astContainer,
org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS,
org.openrdf.query.Dataset dataset)
Evaluate a SELECT query.
|
static ICloseableIterator<IBindingSet[]> |
evaluateTupleQuery2(AbstractTripleStore store,
ASTContainer astContainer,
org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS,
boolean materialize)
Evaluate a SELECT query without converting the results into openrdf
solutions.
|
static long |
executeUpdate(BigdataSailRepositoryConnection conn,
ASTContainer astContainer,
org.openrdf.query.Dataset dataset,
boolean includeInferred,
org.openrdf.query.algebra.evaluation.QueryBindingSet bs)
Evaluate a SPARQL UPDATE request (core method).
|
static QueryRoot |
optimizeQuery(ASTContainer astContainer,
AST2BOpContext context,
org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS,
org.openrdf.query.Dataset dataset)
Optimize a SELECT query.
|
public static boolean evaluateBooleanQuery(AbstractTripleStore store, ASTContainer astContainer, org.openrdf.query.BindingSet globallyScopedBS, org.openrdf.query.Dataset dataset) throws org.openrdf.query.QueryEvaluationException
store - The AbstractTripleStore having the data.astContainer - The ASTContainer.globallyScopedBS - The initial solution to kick things off.true if there are any solutions to the query.org.openrdf.query.QueryEvaluationExceptionpublic static org.openrdf.query.TupleQueryResult evaluateTupleQuery(AbstractTripleStore store, ASTContainer astContainer, org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS, org.openrdf.query.Dataset dataset) throws org.openrdf.query.QueryEvaluationException
store - The AbstractTripleStore having the data.queryPlan - The ASTContainer.globallyScopedBS - The initial solution to kick things off.org.openrdf.query.QueryEvaluationExceptionpublic static ICloseableIterator<IBindingSet[]> evaluateTupleQuery2(AbstractTripleStore store, ASTContainer astContainer, org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS, boolean materialize) throws org.openrdf.query.QueryEvaluationException
store - The AbstractTripleStore having the data.queryPlan - The ASTContainer.globallyScopedBS - The initial solution to kick things off.materialize - When true, IVs will be materialized
(their IVCache association will be set to the
corresponding RDF Value). When false,
this materialization step will be skipped. However, it is
possible that IVs in the query plan will be
materialized anyway (for example, materialization might be
required to support FILTERs in the query).org.openrdf.query.QueryEvaluationExceptionpublic static QueryRoot optimizeQuery(ASTContainer astContainer, AST2BOpContext context, org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS, org.openrdf.query.Dataset dataset) throws org.openrdf.query.QueryEvaluationException
store - The AbstractTripleStore having the data.queryPlan - The ASTContainer.globallyScopedBS - The initial solution to kick things off.org.openrdf.query.QueryEvaluationExceptionpublic static org.openrdf.query.GraphQueryResult evaluateGraphQuery(AbstractTripleStore store, ASTContainer astContainer, org.openrdf.query.algebra.evaluation.QueryBindingSet globallyScopedBS, org.openrdf.query.Dataset dataset) throws org.openrdf.query.QueryEvaluationException
Note: For a DESCRIBE query, this also updates the DESCRIBE cache.
store - The AbstractTripleStore having the data.astContainer - The ASTContainer.globallyScopedBS - The initial solution to kick things off.org.openrdf.query.QueryEvaluationExceptionpublic static long executeUpdate(BigdataSailRepositoryConnection conn, ASTContainer astContainer, org.openrdf.query.Dataset dataset, boolean includeInferred, org.openrdf.query.algebra.evaluation.QueryBindingSet bs) throws org.openrdf.query.UpdateExecutionException
astContainer - The query model.ctx - The evaluation context.dataset - A dataset which will override the data set declaration for
each DeleteInsertGraph operation in the update
sequence (optional).includeInferred - if inferences should be included in various operations.org.openrdf.sail.SailException - TODO timeout for update?org.openrdf.query.UpdateExecutionExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.