Search in sources :

Example 11 with Template

use of org.apache.jena.sparql.syntax.Template in project jena by apache.

the class ConstructHandler method addAll.

/**
	 * Add all the construct handlers from the handler argument to this construct.
	 * @param handler The construct handler to copy from.
	 */
public void addAll(ConstructHandler handler) {
    constructs.addAll(handler.constructs);
    query.setConstructTemplate(new Template(BasicPattern.wrap(constructs)));
}
Also used : Template(org.apache.jena.sparql.syntax.Template)

Aggregations

Template (org.apache.jena.sparql.syntax.Template)11 Query (org.apache.jena.query.Query)4 Triple (org.apache.jena.graph.Triple)3 Test (org.junit.Test)3 Node (org.apache.jena.graph.Node)2 HashMap (java.util.HashMap)1 AbstractRewriter (org.apache.jena.arq.querybuilder.rewriters.AbstractRewriter)1 Var (org.apache.jena.sparql.core.Var)1 ARQParser (org.apache.jena.sparql.lang.arq.ARQParser)1 SPARQLParser10 (org.apache.jena.sparql.lang.sparql_10.SPARQLParser10)1 SPARQLParser11 (org.apache.jena.sparql.lang.sparql_11.SPARQLParser11)1