Class BottomUpEngineFrameWithProvenance

java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.bottomup.BottomUpEngineFrame<EvalManagerWithProvenance>
edu.harvard.seas.pl.abcdatalog.engine.bottomup.BottomUpEngineFrameWithProvenance
All Implemented Interfaces:
DatalogEngine, DatalogEngineWithProvenance
Direct Known Subclasses:
SemiNaiveEngine

public class BottomUpEngineFrameWithProvenance extends BottomUpEngineFrame<EvalManagerWithProvenance> implements DatalogEngineWithProvenance
  • Constructor Details

  • Method Details

    • getJustification

      public Clause getJustification(PositiveAtom fact)
      Description copied from interface: DatalogEngineWithProvenance
      Return the last rule used in the justification of the given atom. The returned rule should be ground (variable-free). Return null if the given atom is not a fact or was not derived.

      A client can recursively invoke this method on the premises of the returned clause to build a provenance tree.
      Specified by:
      getJustification in interface DatalogEngineWithProvenance
      Parameters:
      fact - the fact
      Returns:
      the last rule used to justify that fact