Search in sources :

Example 1 with ASTLoad

use of org.eclipse.rdf4j.query.parser.sparql.ast.ASTLoad in project rdf4j by eclipse.

the class UpdateExprBuilder method visit.

@Override
public Load visit(ASTLoad node, Object data) throws VisitorException {
    ValueConstant source = (ValueConstant) node.jjtGetChild(0).jjtAccept(this, data);
    Load load = new Load(source);
    load.setSilent(node.isSilent());
    if (node.jjtGetNumChildren() > 1) {
        ValueConstant graph = (ValueConstant) node.jjtGetChild(1).jjtAccept(this, data);
        load.setGraph(graph);
    }
    return load;
}
Also used : Load(org.eclipse.rdf4j.query.algebra.Load) ASTLoad(org.eclipse.rdf4j.query.parser.sparql.ast.ASTLoad) ValueConstant(org.eclipse.rdf4j.query.algebra.ValueConstant)

Aggregations

Load (org.eclipse.rdf4j.query.algebra.Load)1 ValueConstant (org.eclipse.rdf4j.query.algebra.ValueConstant)1 ASTLoad (org.eclipse.rdf4j.query.parser.sparql.ast.ASTLoad)1