Class PatternImplication

java.lang.Object
hydra.constraints.PatternImplication
All Implemented Interfaces:
Serializable, Comparable<PatternImplication>

public class PatternImplication extends Object implements Serializable, Comparable<PatternImplication>
A pattern which, if it matches in a given graph, implies that another pattern must also match. Query variables are shared between the two patterns.
See Also:
  • Field Details

    • TYPE_

      public static final Name TYPE_
    • ANTECEDENT

      public static final Name ANTECEDENT
    • CONSEQUENT

      public static final Name CONSEQUENT
    • antecedent

      public final Pattern antecedent
      The pattern which, if it matches, triggers the constraint
    • consequent

      public final Pattern consequent
      The pattern which must also match when the antecedent matches
  • Constructor Details

    • PatternImplication

      public PatternImplication(Pattern antecedent, Pattern consequent)
  • Method Details