On 17/11/12 18:32, Marco Knietzsch wrote:
Hi, I want to have a custom reasoner that uses a local file to make inferences,
without having to set up a server. Is this possible?I thought something like this
would work:@prefix this: <file:///C:/myontologgy.rdf#>
But it doesnt. Can someone help?ThxMarco
Sorry but it is hard to understand your question. In particular I've no
idea *where* you are putting that @prefix declaration, and what you are
expecting it to do.
If by "customer reasoner" you mean the GenericRuleReasoner and by "uses
a local file" you mean a file containing Jena Rules then sure that's
possible.
If you are doing all this in Java then when you create the reasoner
instance you do something like:
List<Rule> rules = Rule.rulesFromURL("file:myrules.rules");
GenericRuleReasoner reasoner = new GenericRuleReasoner(rules);
If you are doing this in an assembler definition then that is possible
and should be described in the assembler documentation.
Dave