See<p><a href="http:&#x2F;&#x2F;www.eclipse.org&#x2F;articles&#x2F;Article-JavaCodeManipulation_AST&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.eclipse.org&#x2F;articles&#x2F;Article-JavaCodeManipulation...</a><p>as for SPARQL derived rule format see<p><a href="http:&#x2F;&#x2F;spinrdf.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;spinrdf.org&#x2F;</a><p>although we&#x27;ve done a bit to humanize the syntax and try to add back some of the features that were common in production rules engines back to the 1970s.