|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.sparql.ast.eval.ASTEvalHelper
public class ASTEvalHelper
Helper class for evaluating SPARQL queries.
| Constructor Summary | |
|---|---|
ASTEvalHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
evaluateBooleanQuery(AbstractTripleStore store,
ASTContainer astContainer,
BindingSet bs)
Evaluate a boolean query. |
static GraphQueryResult |
evaluateGraphQuery(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs)
Evaluate a CONSTRUCT/DESCRIBE query. |
static TupleQueryResult |
evaluateTupleQuery(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs)
Evaluate a SELECT query. |
static ICloseableIterator<IBindingSet[]> |
evaluateTupleQuery2(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs,
boolean materialize)
Evaluate a SELECT query without converting the results into openrdf solutions. |
static long |
executeUpdate(BigdataSailRepositoryConnection conn,
ASTContainer astContainer,
Dataset dataset,
boolean includeInferred)
Evaluate a SPARQL UPDATE request (core method). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASTEvalHelper()
| Method Detail |
|---|
public static boolean evaluateBooleanQuery(AbstractTripleStore store,
ASTContainer astContainer,
BindingSet bs)
throws QueryEvaluationException
store - The AbstractTripleStore having the data.astContainer - The ASTContainer.bs - The initial solution to kick things off.
true if there are any solutions to the query.
QueryEvaluationException
public static TupleQueryResult evaluateTupleQuery(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs)
throws QueryEvaluationException
store - The AbstractTripleStore having the data.queryPlan - The ASTContainer.bs - The initial solution to kick things off.
QueryEvaluationException
public static ICloseableIterator<IBindingSet[]> evaluateTupleQuery2(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs,
boolean materialize)
throws QueryEvaluationException
store - The AbstractTripleStore having the data.queryPlan - The ASTContainer.bs - 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).
QueryEvaluationException
public static GraphQueryResult evaluateGraphQuery(AbstractTripleStore store,
ASTContainer astContainer,
QueryBindingSet bs)
throws QueryEvaluationException
store - The AbstractTripleStore having the data.astContainer - The ASTContainer.bs - The initial solution to kick things off.
QueryEvaluationException
public static long executeUpdate(BigdataSailRepositoryConnection conn,
ASTContainer astContainer,
Dataset dataset,
boolean includeInferred)
throws 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.
SailException - TODO timeout for update?
UpdateExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||