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 SelectPlan
selectPlan
The 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 Model
execGenerate(List<Binding> values, Context context)
Executes a GENERATE query and returns the generated RDF Graph.Model
execGenerate(Context context)
Executes a GENERATE query and returns the generated RDF Graph.void
execGenerateStream(List<Binding> values, Context context)
Executes a GENERATE query and emits generated triples to the stream.void
execGenerateStream(Context context)
Executes a GENERATE query.ResultSet
execSelect(List<Binding> values, Context context)
Executes a SELECT query and returns the results.ResultSet
execSelect(Context context)
Executes a SELECT query and returns the results.void
execSelectStream(List<Binding> values, Context context)
Executes a SELECT query and emits generated results to the stream.void
execSelectStream(Context context)
String
execTemplate(List<Binding> values, Context context)
Executes a TEMPLATE query.String
execTemplate(Context context)
Executes a TEMPLATE query.void
execTemplateStream(List<Binding> values, Context context)
Executes a TEMPLATE query.void
execTemplateStream(Context context)
SPARQLExtQuery
getQuery()
-
-
-
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 usingContextUtils
output
- 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 usingContextUtils
output
- where to emitResultSet
objects.
-
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
-
-