"Constant(1@T2_table1.id)))",
r.condition().toString());
}
public void testTwoTriplePatternsWithJoinMatch() {
NodeRelation nodeRel = translate1(
"?x rdf:type ex:Class1 . ?x ex:foo ?foo",
"engine/simple.n3");
assertEquals(2, nodeRel.variables().size());
assertEquals("Literal(Column(T2_table1.foo))",
nodeRel.nodeMaker(foo).toString());
assertEquals("URI(Pattern(http://example.org/res@@T1_table1.id@@))",
nodeRel.nodeMaker(x).toString());
Relation r = nodeRel.baseRelation();
assertEquals(Equality.createAttributeEquality(t1table1id, t2table1id),
r.condition());
}