Search in sources :

Example 1 with TransformPattern2Join

use of org.apache.jena.sparql.algebra.optimize.TransformPattern2Join in project jena by apache.

the class TestPattern2Join method test.

private static void test(Op input, String... joinForm) {
    Op op2 = Transformer.transform(new TransformPattern2Join(), input);
    String x = StrUtils.strjoinNL(joinForm);
    Op opExpected = SSE.parseOp("(prefix ((: <http://example/>)) " + x + ")");
    assertEquals(opExpected, op2);
}
Also used : Op(org.apache.jena.sparql.algebra.Op) TransformPattern2Join(org.apache.jena.sparql.algebra.optimize.TransformPattern2Join)

Aggregations

Op (org.apache.jena.sparql.algebra.Op)1 TransformPattern2Join (org.apache.jena.sparql.algebra.optimize.TransformPattern2Join)1