Class SnapshotRewriter

java.lang.Object
com.semedy.reasoner.rewriter.SnapshotRewriter
All Implemented Interfaces:
Rewriter

public class SnapshotRewriter extends Object implements Rewriter
This rewriter changes rules and queries such that facts which should be deleted are excluded from reasoning
E.g. given the rule p(?X) :- q(?X),r(?X).
Facts which should be deleted from q are q(a), q(b).
The deleted facts are stored in the input edb in _delete_q:
_delete_q(a), _delete_q(b)
The rule is now rewritten into: p(?X) :- q(?X),!_delete_q(?X),r(?X).
This is used for snapshot transactions. The last edb is used for the delete predicates
Author:
angele