Class PlanFactory
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.engine.PlanFactory
-
public class PlanFactory extends Object
A factory that creates aRootPlanfrom a query. Then theRootPlanmay be used to execute the query.A
SPARQLExtQuerymay 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RootPlancreate(SPARQLExtQuery query)A factory that creates aRootPlanfrom a query.static RootPlancreate(String queryStr)A factory that creates aRootPlanfrom a SPARQL-Generate or SPARQL-Template query.static RootPlancreate(String queryStr, String base)A factory that creates aRootPlanfrom a query.
-
-
-
Method Detail
-
create
public static final RootPlan create(SPARQLExtQuery query)
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
public static final RootPlan create(String queryStr)
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
public static final RootPlan create(String queryStr, String base)
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.
-
-