Interface Rule

  • All Known Implementing Classes:
    AbstractRule, SPARQLRule

    public interface Rule
    Represents a single rule in executable "pre-compiled" form.
    Author:
    Holger Knublauch
    • Method Detail

      • execute

        void execute​(RuleEngine ruleEngine,
                     List<org.apache.jena.rdf.model.RDFNode> focusNodes,
                     Shape shape)
        Executes this rule, calling ruleEngine.infer() to add triples.
        Parameters:
        ruleEngine - the RuleEngine to operate on
        focusNodes - the list of focus nodes for this execution
        shape - the context shape
      • getContextNode

        org.apache.jena.graph.Node getContextNode()