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);
}
Aggregations