Class Predicate


  • public class Predicate
    extends UniqueObject
    Specifies the type of a relation
    • Constructor Detail

      • Predicate

        public Predicate()
    • Method Detail

      • getDescription

        public LocalizedText getDescription()
        The multilingual, verbose description of the predicate
        Returns:
        the description
      • getLabel

        public LocalizedText getLabel()
        The multilingual label of the predicate
        Returns:
        multilingual label
      • getValue

        public String getValue()
        Value of the predicate, shall be filled in snake_case and lowercase
        Returns:
        value, e.g. is_author_of
      • setDescription

        public void setDescription​(LocalizedText description)
        Sets the verbose and multilingual description of the predicate
        Parameters:
        description - the description
      • setLabel

        public void setLabel​(LocalizedText label)
        Sets the multilingual label
        Parameters:
        label - the label as LocalizedText
      • setValue

        public void setValue​(String value)
        Sets the value of the predicate
        Parameters:
        value - the value, preferrably in snake_case and lowercase, e.g. is_author_of