Class PlanFactory
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.engine.PlanFactory
A factory that creates a
RootPlan from a query. Then the
RootPlan may be used to execute the query.
A SPARQLExtQuery may be created from a string as follows:
String query;
SPARQLExtQuery query;
Syntax syntax = SPARQLExt.SYNTAX;
query = (SPARQLExtQuery) QueryFactory.create(query, syntax);
- Author:
- Maxime Lefrançois
-
Method Summary
Modifier and TypeMethodDescriptionstatic final RootPlancreate(SPARQLExtQuery query) A factory that creates aRootPlanfrom a query.static final RootPlanA factory that creates aRootPlanfrom a SPARQL-Generate or SPARQL-Template query.static final RootPlanA factory that creates aRootPlanfrom a query.
-
Method Details
-
create
A factory that creates aRootPlanfrom a query.A
SPARQLExtQuerymay be created from a string as follows:String query; SPARQLExtQuery query; Syntax syntax = SPARQLExt.syntaxSPARQLGenerate; query = (SPARQLExtQuery) QueryFactory.create(query, syntax);- Parameters:
query- the Query.- Returns:
- the RootPlan that may be used to execute the query.
-
create
A factory that creates aRootPlanfrom a SPARQL-Generate or SPARQL-Template query.- Parameters:
queryStr- the string representation of the SPARQL-Generate or SPARQL-Template Query.- Returns:
- the RootPlan that may be used to execute the SPARQL-Generate or SPARQL-Template Query. query.
-
create
A factory that creates aRootPlanfrom a query.- Parameters:
queryStr- the string representation of the SPARQL-Generate or SPARQL-Template Query.base- the base URI, if not set explicitly in the query string- Returns:
- the RootPlan that may be used to execute the query.
-