Closed GoogleCodeExporter closed 8 years ago
Well,
I already address the problem.
The problem is as mentioned before, List<Rule>.
I can only use String "rule" for reasoning,
for example, String s2 = "rule...";
then the following work successful.
GenericRuleReasoner reasoner = new GenericRuleReasoner(Rule.parseRules(s2));
However, I found two things.
1. I can't use prefix in rule syntax
for example,
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix relate: <http://www.owl-ontologies.com/Ontology1300690296.owl#>.
so I must use the full path in rule syntx.
2. I want use multi-rules, but the inference seems just only reason 1 rule.
for example,
String s2 = "[rule1:(?a rdf:type ?b)(?b rdf:type ?c)->(?a rdf:type ?c)]"; // it
shows result.
s2 += "[rule2:(?a rdf:type ?c)(?c rdf:type ?d)->(?a rdf:type ?d)]";//it don't
show any results.
Alouth
That seems little different with Jena support, does there has simple solution?
such as just read .rule file and reasoning.
Thank you very much.
Original comment by pkjr8...@gmail.com
on 3 Feb 2013 at 1:39
[deleted comment]
Oh... I am sorry for that...
I misunderstand.. it's my display problems,
Now I can reasoning by multi-rules.
Original comment by pkjr8...@gmail.com
on 3 Feb 2013 at 1:59
So you solved the issue by yourself? Can I close this?
Original comment by loreca...@gmail.com
on 3 Feb 2013 at 3:13
ok, no problem thanks.
Original comment by pkjr8...@gmail.com
on 3 Feb 2013 at 11:12
Original comment by loreca...@gmail.com
on 3 Feb 2013 at 11:20
Original issue reported on code.google.com by
pkjr8...@gmail.com
on 2 Feb 2013 at 2:38Attachments: