Search in sources :

Example 1 with FBRuleReasoner

use of org.apache.jena.reasoner.rulesys.FBRuleReasoner in project jena by apache.

the class TestLPBRuleEngineLeak method createReasoner.

public FBRuleReasoner createReasoner(List<Rule> rules) {
    FBRuleReasoner reasoner = new FBRuleReasoner(rules);
    reasoner.tablePredicate(RDFS.Nodes.subClassOf);
    reasoner.tablePredicate(RDF.Nodes.type);
    reasoner.tablePredicate(p);
    return reasoner;
}
Also used : FBRuleReasoner(org.apache.jena.reasoner.rulesys.FBRuleReasoner)

Example 2 with FBRuleReasoner

use of org.apache.jena.reasoner.rulesys.FBRuleReasoner in project jena by apache.

the class TestLPDerivation method makeInfGraph.

/**
     * Return an inference graph working over the given rule set and raw data.
     * Can be overridden by subclasses of this test class.
     * @param rules the rule set to use
     * @param data the graph of triples to process
     * @param tabled an array of predicates that should be tabled
     */
public static InfGraph makeInfGraph(List<Rule> rules, Graph data, Node[] tabled) {
    FBRuleReasoner reasoner = new FBRuleReasoner(rules);
    FBRuleInfGraph infgraph = (FBRuleInfGraph) reasoner.bind(data);
    for (Node aTabled : tabled) {
        infgraph.setTabled(aTabled);
    }
    //        infgraph.setTraceOn(true);
    infgraph.setDerivationLogging(true);
    return infgraph;
}
Also used : FBRuleReasoner(org.apache.jena.reasoner.rulesys.FBRuleReasoner) FBRuleInfGraph(org.apache.jena.reasoner.rulesys.FBRuleInfGraph)

Example 3 with FBRuleReasoner

use of org.apache.jena.reasoner.rulesys.FBRuleReasoner in project jena by apache.

the class TestLPBRuleEngine method createReasoner.

public FBRuleReasoner createReasoner(List<Rule> rules) {
    FBRuleReasoner reasoner = new FBRuleReasoner(rules);
    reasoner.tablePredicate(RDFS.Nodes.subClassOf);
    reasoner.tablePredicate(RDF.Nodes.type);
    reasoner.tablePredicate(p);
    return reasoner;
}
Also used : FBRuleReasoner(org.apache.jena.reasoner.rulesys.FBRuleReasoner)

Aggregations

FBRuleReasoner (org.apache.jena.reasoner.rulesys.FBRuleReasoner)3 FBRuleInfGraph (org.apache.jena.reasoner.rulesys.FBRuleInfGraph)1