Class RootPlan
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.engine.RootPlan
Entry point to a SPARQL-Generate query execution.
- Author:
- Maxime Lefrançois
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRootPlan(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
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.ModelexecGenerate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a GENERATE query and returns the generated RDF Graph.org.apache.jena.rdf.model.ModelexecGenerate(org.apache.jena.sparql.util.Context context) Executes a GENERATE query and returns the generated RDF Graph.voidexecGenerateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a GENERATE query and emits generated triples to the stream.voidexecGenerateStream(org.apache.jena.sparql.util.Context context) Executes a GENERATE query.org.apache.jena.query.ResultSetexecSelect(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a SELECT query and returns the results.org.apache.jena.query.ResultSetexecSelect(org.apache.jena.sparql.util.Context context) Executes a SELECT query and returns the results.voidexecSelectStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a SELECT query and emits generated results to the stream.voidexecSelectStream(org.apache.jena.sparql.util.Context context) execTemplate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a TEMPLATE query.execTemplate(org.apache.jena.sparql.util.Context context) Executes a TEMPLATE query.voidexecTemplateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a TEMPLATE query.voidexecTemplateStream(org.apache.jena.sparql.util.Context context) getQuery()
-
Field Details
-
selectPlan
The plan for the SPARQL SELECT.
-
-
Constructor Details
-
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 Details
-
getQuery
-
execGenerate
public org.apache.jena.rdf.model.Model execGenerate(org.apache.jena.sparql.util.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 org.apache.jena.rdf.model.Model execGenerate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context) Executes a GENERATE query.- Parameters:
context- the execution context, created usingContextUtils
-
execGenerateStream
public void execGenerateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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 org.apache.jena.query.ResultSet execSelect(org.apache.jena.sparql.util.Context context) Executes a SELECT query and returns the results.- Parameters:
context- the execution context, created usingContextUtils- Returns:
- the
ResultSet.
-
execSelect
public org.apache.jena.query.ResultSet execSelect(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context) -
execSelectStream
public void execSelectStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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
Executes a TEMPLATE query.- Parameters:
context- the execution context, created usingContextUtils- Returns:
- the output string.
-
execTemplate
public String execTemplate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context) -
execTemplateStream
public void execTemplateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context) Executes a TEMPLATE query.- Parameters:
values- the values for the query signature, or null.context- the execution context, created usingContextUtils
-