I've multiple personal inference rules in Datalog Form.
I can extend Jena GenericRuleReasoner
in order to take them into account during the inference step. Here is an example of code to do that :
String rules = "[r1: (?e1 st:runningTask st:gic_eth0) -> (?e1 rdf:type st:dataFromEthernet2IP)]";
Reasoner reasoner = new GenericRuleReasoner(Rule.parseRules(rules));
reasoner.setDerivationLogging(true);
InfModel inf = ModelFactory.createInfModel(reasoner, rawData);
Actually, I'm want to use Pellet
reasoner since it is easy to plug to Jena. I wonder if Pellet
is extensible as GenericRuleReasoner
? and if it is, how to add my Datalog rules in it ?