cache.addRelation(new Triple(d, closedP, c));
cache.addRelation(new Triple(d, closedP, e));
cache.addRelation(new Triple(c, closedP, e));
cache.addRelation(new Triple(c, closedP, b));
TestUtil.assertIteratorValues(this,
cache.find(new TriplePattern(c, directP, null)),
new Object[] {
new Triple(c, closedP, e),
new Triple(c, closedP, g),
new Triple(c, closedP, b),
new Triple(c, closedP, d),
new Triple(c, closedP, c),
});
TestUtil.assertIteratorValues(this,
cache.find(new TriplePattern(null, directP, c)),
new Object[] {
new Triple(a, closedP, c),
new Triple(b, closedP, c),
new Triple(d, closedP, c),
new Triple(f, closedP, c),
new Triple(c, closedP, c),
});
TestUtil.assertIteratorValues(this,
cache.find(new TriplePattern(f, closedP, null)),
new Object[] {
new Triple(f, closedP, f),
new Triple(f, closedP, b),
new Triple(f, closedP, c),
new Triple(f, closedP, d),