Search in sources :

Example 1 with VarFinder

use of org.apache.jena.sparql.engine.main.VarFinder in project jena by apache.

the class TestVarFinder method varfind.

private static void varfind(String string, String[] varsFixed, String[] varsOpt, String[] varsFilter, String[] varsFilterOnly) {
    Op op = SSE.parseOp(string);
    VarFinder vf = VarFinder.process(op);
    if (varsFixed != null)
        check(varsFixed, vf.getFixed());
    if (varsOpt != null)
        check(varsOpt, vf.getOpt());
    if (varsFilter != null)
        check(varsFilter, vf.getFilter());
    if (varsFilterOnly != null)
        check(varsFilterOnly, vf.getFilterOnly());
}
Also used : Op(org.apache.jena.sparql.algebra.Op) VarFinder(org.apache.jena.sparql.engine.main.VarFinder)

Aggregations

Op (org.apache.jena.sparql.algebra.Op)1 VarFinder (org.apache.jena.sparql.engine.main.VarFinder)1