use of org.apache.jena.reasoner.transitiveReasoner.TransitiveGraphCache in project jena by apache.
the class TestTransitiveGraphCache method testEquivalences.
/**
* Test equivalences case
*/
public void testEquivalences() {
TransitiveGraphCache cache = new TransitiveGraphCache(directP, closedP);
cache.addRelation(new Triple(a, closedP, b));
cache.addRelation(new Triple(b, closedP, a));
cache.addRelation(new Triple(c, closedP, d));
cache.addRelation(new Triple(d, closedP, c));
cache.addRelation(new Triple(b, closedP, d));
cache.addRelation(new Triple(d, closedP, b));
assertTrue("Test eq", cache.contains(new TriplePattern(a, closedP, d)));
}
Aggregations