use of org.apache.jena.reasoner.rulesys.BasicForwardRuleReasoner in project jena by apache.
the class DebugRules method run.
/** Run a single test */
public void run() {
BasicForwardRuleReasoner reasoner = new BasicForwardRuleReasoner(ruleset);
InfGraph result = reasoner.bind(Factory.createGraphMem());
System.out.println("Final graph state");
for (Iterator<Triple> i = result.find(null, null, null); i.hasNext(); ) {
System.out.println(PrintUtil.print(i.next()));
}
}
Aggregations