Hi,,I am not sure if I am using Jena reasoning and rules correctly. I could not
get any results after following some of examples in jena website. This one of
the codes which I do not know where is wrong in it:
OntModel schema =
ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_MICRO_RULE_INF);
.schema.add(kwakeb, employerOfNAry, rel01);
schema.add(rel01, hasRelationValue, hadi);
String ruleSrc ="[r1: (?org employerOfNAry ?nary) (?nary hasRelationValue ?per)
-> (?org employerOf ?per)] ";List rules = Rule.parseRules(ruleSrc);
Reasoner reasoner = new GenericRuleReasoner(rules);
InfModel infmodel = ModelFactory.createInfModel(reasoner, schema);
It supposed to add the triple => ( kwakeb employerOf hadi)Could some one please
tell me what I missed in Jena reasonong?Thank you in advanceAbdul