Class RootPlan
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.engine.RootPlan
-
public class RootPlan extends Object
Entry point to a SPARQL-Generate query execution.- Author:
- Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description SelectPlanselectPlanThe plan for the SPARQL SELECT.
-
Constructor Summary
Constructors Constructor Description RootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan)ConstructorRootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan, GeneratePlan generatePlan)ConstructorRootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan, TemplatePlan templatePlan)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelexecGenerate(List<Binding> values, Context context)Executes a GENERATE query and returns the generated RDF Graph.ModelexecGenerate(Context context)Executes a GENERATE query and returns the generated RDF Graph.voidexecGenerateStream(List<Binding> values, Context context)Executes a GENERATE query and emits generated triples to the stream.voidexecGenerateStream(Context context)Executes a GENERATE query.ResultSetexecSelect(List<Binding> values, Context context)Executes a SELECT query and returns the results.ResultSetexecSelect(Context context)Executes a SELECT query and returns the results.voidexecSelectStream(List<Binding> values, Context context)Executes a SELECT query and emits generated results to the stream.voidexecSelectStream(Context context)StringexecTemplate(List<Binding> values, Context context)Executes a TEMPLATE query.StringexecTemplate(Context context)Executes a TEMPLATE query.voidexecTemplateStream(List<Binding> values, Context context)Executes a TEMPLATE query.voidexecTemplateStream(Context context)SPARQLExtQuerygetQuery()
-
-
-
Field Detail
-
selectPlan
public final SelectPlan selectPlan
The plan for the SPARQL SELECT.
-
-
Constructor Detail
-
RootPlan
public RootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan)
Constructor- Parameters:
query-iteratorAndSourcePlans-selectPlan-
-
RootPlan
public RootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan, GeneratePlan generatePlan)
Constructor- Parameters:
query-iteratorAndSourcePlans-selectPlan-generatePlan-
-
RootPlan
public RootPlan(SPARQLExtQuery query, DatasetDeclarationPlan datasetDeclarationPlan, List<BindingsClausePlan> iteratorAndSourcePlans, SelectPlan selectPlan, TemplatePlan templatePlan)
Constructor- Parameters:
query-iteratorAndSourcePlans-selectPlan-templatePlan-
-
-
Method Detail
-
getQuery
public SPARQLExtQuery getQuery()
-
execGenerate
public Model execGenerate(Context context)
Executes a GENERATE query and returns the generated RDF Graph.- Parameters:
context- the execution context, created usingContextUtils- Returns:
- the RDF Graph.
-
execGenerate
public Model execGenerate(List<Binding> values, Context context)
Executes a GENERATE query and returns the generated RDF Graph.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtils- Returns:
- the RDF Graph.
-
execGenerateStream
public void execGenerateStream(Context context)
Executes a GENERATE query.- Parameters:
context- the execution context, created usingContextUtils
-
execGenerateStream
public void execGenerateStream(List<Binding> values, Context context)
Executes a GENERATE query and emits generated triples to the stream.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtilsoutput- the RDF Stream object.
-
execSelect
public ResultSet execSelect(Context context)
Executes a SELECT query and returns the results.- Parameters:
context- the execution context, created usingContextUtils- Returns:
- the
ResultSet.
-
execSelect
public ResultSet execSelect(List<Binding> values, Context context)
Executes a SELECT query and returns the results.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtils- Returns:
- the
ResultSet.
-
execSelectStream
public void execSelectStream(Context context)
-
execSelectStream
public void execSelectStream(List<Binding> values, Context context)
Executes a SELECT query and emits generated results to the stream.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtilsoutput- where to emitResultSetobjects.
-
execTemplate
public String execTemplate(Context context)
Executes a TEMPLATE query.- Parameters:
context- the execution context, created usingContextUtils- Returns:
- the output string.
-
execTemplate
public String execTemplate(List<Binding> values, Context context)
Executes a TEMPLATE query.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtils- Returns:
- the output string.
-
execTemplateStream
public void execTemplateStream(Context context)
-
execTemplateStream
public void execTemplateStream(List<Binding> values, Context context)
Executes a TEMPLATE query.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtils
-
-