> For instance, I have multiple rules, say, 10 rules, can I write them in one
> String value. For example,
>
> String myrule= "[rule1.........] +
> "[rule2.......]+
> "[rule3........] + etc
>
> and at the end, just write
>
> Reasoner reasoner2 = new GenericRuleReasoner(Rule.parseRules(myrule));
Should work as long as rules are delimited properly.
>
> If have read somewhere that we can also write all the rules in a text file
> and import it to the project, but in that case how can we run SPARQL
> queries against that rules then?
InfModel has to be used with the GenericRuleReasoner. SPARQL queries are
then executed against the model as usual.
>
> Any suggestions and guidance would be highly appreciated.
>
--
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center