Search in sources :

Example 1 with BasicForwardRuleReasoner

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()));
    }
}
Also used : BasicForwardRuleReasoner(org.apache.jena.reasoner.rulesys.BasicForwardRuleReasoner) Triple(org.apache.jena.graph.Triple) InfGraph(org.apache.jena.reasoner.InfGraph)

Aggregations

Triple (org.apache.jena.graph.Triple)1 InfGraph (org.apache.jena.reasoner.InfGraph)1 BasicForwardRuleReasoner (org.apache.jena.reasoner.rulesys.BasicForwardRuleReasoner)1