Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-863

Custom builtin which does support firing a head-action on a remove

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Jena 2.12.1
    • Fix Version/s: Jena 2.13.0
    • Component/s: Jena, Reasoners
    • Labels:

      Description

      Allow the creation of custom Builtin which its notified on a remove.

      We have created an interface: ReversibleBuiltIn

      com.hp.hpl.jena.reasoner.rulesys.ReversibleBuiltIn
      package com.hp.hpl.jena.reasoner.rulesys;
      
      import com.hp.hpl.jena.graph.Node;
      
      public interface ReversibleBuiltIn extends Builtin {
          public void reverseHeadAction(Node[] args, int length, RuleContext context);
      }
      
      

      reverseHeadAction is invoked by the RETEConflictSe::execute

        Attachments

        1. JENA-863.patch
          9 kB
          Sébastien Boulet

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gontard Sébastien Boulet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: