Search in sources :

Example 1 with LangMatches

use of org.eclipse.rdf4j.query.algebra.LangMatches in project rdf4j by eclipse.

the class QueryModelBuilder method visit.

@Override
public LangMatches visit(ASTLangMatches node, Object data) throws VisitorException {
    ValueExpr tag = (ValueExpr) node.getLanguageTag().jjtAccept(this, null);
    ValueExpr range = (ValueExpr) node.getLanguageRange().jjtAccept(this, null);
    return new LangMatches(tag, range);
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) ASTValueExpr(org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr) ASTLangMatches(org.eclipse.rdf4j.query.parser.serql.ast.ASTLangMatches) LangMatches(org.eclipse.rdf4j.query.algebra.LangMatches)

Example 2 with LangMatches

use of org.eclipse.rdf4j.query.algebra.LangMatches in project rdf4j by eclipse.

the class TupleExprBuilder method visit.

@Override
public Object visit(ASTLangMatches node, Object data) throws VisitorException {
    ValueExpr leftArg = (ValueExpr) node.jjtGetChild(0).jjtAccept(this, null);
    ValueExpr rightArg = (ValueExpr) node.jjtGetChild(1).jjtAccept(this, null);
    return new LangMatches(leftArg, rightArg);
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) LangMatches(org.eclipse.rdf4j.query.algebra.LangMatches)

Aggregations

LangMatches (org.eclipse.rdf4j.query.algebra.LangMatches)2 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)2 ASTLangMatches (org.eclipse.rdf4j.query.parser.serql.ast.ASTLangMatches)1 ASTValueExpr (org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr)1