I have implemented the new Rule class, which is a rather simple
Jenabean class. This from the Javadoc documentation for class
org.inqle.data.rdf.jena.rules.Rule:
/**
* This class represents a single rule.
* This rule can serialized as a SPARQL CONSTRUCT query,
* and thereby executed against a semantic data store.
* A rule may also be serialized as a SPARQL ASK query, and used to test
* whether it applies.
*
* To construct a rule, you must construct a Rule object, and then do
any of these
* optional steps:<ul>
* <li>add prefix mappings, using the addPrefixMapping() method</li>
* <li>add the antecedent of the rule (the IF portion) as a sparql clause</li>
* <li>add the consequedent of the rule (the THEN portion) as a sparql
clause</li>
* <li>add any SPARQL modifier like ORDER BY, LIMIT, OFFSET. Usually
this is not done.</li>
* </ul>
* @author David Donohue
* September 8, 2009
*/
Note that the act of authoring a rule now becomes one of authoring the
appropriate sections of the SPARQL query (the WHERE, the CONSTRUCT
clauses). However, we have infrastructure already existing to
generate such sections automatically given the products of sampling
(an IDataTable).