}
Graph schema = Factory.createGraphMem();
schema.add(new Triple(c, p, c));
// Case of schema and data but no rule axioms
Reasoner reasoner = createReasoner(new ArrayList<Rule>());
InfGraph infgraph = reasoner.bindSchema(schema).bind(data);
TestUtil.assertIteratorValues(this,
infgraph.find(null, null, null),
new Object[] {
new Triple(p, sP, q),
new Triple(q, sP, r),
new Triple(a, p, b),
new Triple(c, p, c)});
// Case of data and rule axioms but no schema
List<Rule> rules = Rule.parseRules("-> (d p d).");
reasoner = createReasoner(rules);
infgraph = reasoner.bind(data);
TestUtil.assertIteratorValues(this,
infgraph.find(null, null, null),
new Object[] {
new Triple(p, sP, q),
new Triple(q, sP, r),
new Triple(a, p, b),
new Triple(d, p, d)});
// Case of data and rule axioms and schema
infgraph = reasoner.bindSchema(schema).bind(data);
TestUtil.assertIteratorValues(this,
infgraph.find(null, null, null),
new Object[] {
new Triple(p, sP, q),
new Triple(q, sP, r),