Search in sources :

Example 1 with AbstractRewriter

use of org.apache.jena.arq.querybuilder.rewriters.AbstractRewriter in project jena by apache.

the class ConstructHandler method setVars.

@Override
public void setVars(Map<Var, Node> values) {
    if (values.isEmpty()) {
        return;
    }
    AbstractRewriter<Node> rw = new AbstractRewriter<Node>(values) {
    };
    query.setConstructTemplate(new Template(BasicPattern.wrap(rw.rewrite(constructs))));
}
Also used : Node(org.apache.jena.graph.Node) AbstractRewriter(org.apache.jena.arq.querybuilder.rewriters.AbstractRewriter) Template(org.apache.jena.sparql.syntax.Template)

Aggregations

AbstractRewriter (org.apache.jena.arq.querybuilder.rewriters.AbstractRewriter)1 Node (org.apache.jena.graph.Node)1 Template (org.apache.jena.sparql.syntax.Template)1