Class ConstructBuilder

All Implemented Interfaces:
Cloneable, ConstructClause<ConstructBuilder>, DatasetClause<ConstructBuilder>, PrologClause<ConstructBuilder>, SolutionModifierClause<ConstructBuilder>, ValuesClause<ConstructBuilder>, WhereClause<ConstructBuilder>

Builder for SPARQL Construct Queries.

The ConstructBuilder provides chainable methods to programmatically generate SPARQL Construct Queries. The application order of the methods is not relevant for the resulting query. An ExprFactory is intended for use along with the ConstructBuilder to generate needed Expr parameter values. An ExprFactory that works with the same prefixes can be obtained with AbstractQueryBuilder.getExprFactory().

The ConstructBuilder can be used asprepared query. Values for variables in the created query can be set with AbstractQueryBuilder.setVar(Object, Object) and AbstractQueryBuilder.setVar(Var, Node). The method clearWhereValues() allows to clear the set values.

See Also: