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;
}
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;
}
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;
}
Aggregations