On 25/05/14 14:51, Miguel Bento Alves wrote:
Dear All,

I'm working on JENA-650 - Define SPARQL commands in Jena rules under GSoC
project. I'm starting to study and analyse the relevant libraries and the
coding relevants to my work.

Can anyone locate for me the libraries/classes where:
a) a rule is parsed;

com.hp.hpl.jena.reasoner.rulesys.Rule.Parser

As Joshua says, this is something you could find out using an IDE.

b) a rule is executed;

There is no one place. Ignoring the legacy brute force forward engine [1] then there are two rule engines - the RETE-ish forward engine and the SLG-ish backward engine. Both are in com.hp.hpl.jena.reasoner.rulesys.impl, look for RETE* and LP* respectively.

As I said when this was first suggested it is not easy to see how to hook SPARQL in to either of them, though the backward engine is probably the better suited.

Dave

[1] com.hp.hpl.jena.reasoner.rulesys.impl.FRuleEngine

Reply via email to