Class Predicate

java.lang.Object
fr.lirmm.graphik.integraal.api.core.Predicate
All Implemented Interfaces:
Serializable, Comparable<Predicate>

public class Predicate extends Object implements Comparable<Predicate>, Serializable
Represents a Predicate of an Atom.
See Also:
  • Field Details

    • EQUALITY

      public static final Predicate EQUALITY
      Equality predicate.
    • BOTTOM

      public static final Predicate BOTTOM
      Bottom predicate.
    • TOP

      public static final Predicate TOP
      Top predicate.
  • Constructor Details

    • Predicate

      public Predicate(Object identifier, int arity)
      Construct a prefix with a specified prefix and a local name.
      Parameters:
      identifier - the predicate identifier
      arity - the predicate arity
  • Method Details

    • getIdentifier

      public Object getIdentifier()
      Get the URI representation of this predicate.
      Returns:
      a string representing predicate label.
    • getArity

      public int getArity()
      Get the arity of this predicate.
      Returns:
      the arity of this predicate.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Verifies if two predicates are the same or not.
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Predicate other)
      Specified by:
      compareTo in interface Comparable<Predicate>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendTo

      public void appendTo(StringBuilder sb)