Enum Class CommonPredicate

java.lang.Object
java.lang.Enum<CommonPredicate>
org.incenp.obofoundry.sssom.model.CommonPredicate
All Implemented Interfaces:
Serializable, Comparable<CommonPredicate>, Constable

public enum CommonPredicate extends Enum<CommonPredicate>
Represents some "well-known" mapping predicates for which we have built-in knowledge on how to invert them.
  • Enum Constant Details

    • SKOS_EXACT_MATCH

      public static final CommonPredicate SKOS_EXACT_MATCH
    • SKOS_NARROW_MATCH

      public static final CommonPredicate SKOS_NARROW_MATCH
    • SKOS_BROAD_MATCH

      public static final CommonPredicate SKOS_BROAD_MATCH
    • SKOS_CLOSE_MATCH

      public static final CommonPredicate SKOS_CLOSE_MATCH
    • OWL_SAME_AS

      public static final CommonPredicate OWL_SAME_AS
    • OWL_EQUIVALENT_CLASS

      public static final CommonPredicate OWL_EQUIVALENT_CLASS
    • OWL_EQUIVALENT_PROPERTY

      public static final CommonPredicate OWL_EQUIVALENT_PROPERTY
    • RDFS_SUBCLASS_OF

      public static final CommonPredicate RDFS_SUBCLASS_OF
    • RDFS_SUBPROPERTY_OF

      public static final CommonPredicate RDFS_SUBPROPERTY_OF
    • RDFS_SEE_ALSO

      public static final CommonPredicate RDFS_SEE_ALSO
    • OIO_HAS_DB_XREF

      public static final CommonPredicate OIO_HAS_DB_XREF
    • SEMAPV_CROSS_SPECIES_EXACT_MATCH

      public static final CommonPredicate SEMAPV_CROSS_SPECIES_EXACT_MATCH
    • SEMAPV_CROSS_SPECIES_NARROW_MATCH

      public static final CommonPredicate SEMAPV_CROSS_SPECIES_NARROW_MATCH
    • SEMAPV_CROSS_SPECIES_BROAD_MATCH

      public static final CommonPredicate SEMAPV_CROSS_SPECIES_BROAD_MATCH
    • SEMAPV_CROSS_SPECIES_CLOSE_MATCH

      public static final CommonPredicate SEMAPV_CROSS_SPECIES_CLOSE_MATCH
  • Method Details

    • values

      public static CommonPredicate[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommonPredicate valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isExact

      public boolean isExact()
      Indicates whether the predicate is “exact”. A mapping with an exact predicate can be inverted without changing the predicate.
      Returns:
      true if the predicate is exact, false otherwise.
    • getInverse

      public String getInverse()
      Gets the inverse predicate for this predicate. When a predicate has a known inverse predicate, the inverse predicate should be used when inverting a mapping.
      Returns:
      The inverse predicate, if known; otherwise null.
    • isInvertible

      public boolean isInvertible()
      Indicates whether a predicate can be inverted. A predicate can be inverted if it is an exact predicate or if it has a known inverse predicate.
      Returns:
      true if the predicate can be inverted, otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CommonPredicate>
    • fromString

      public static CommonPredicate fromString(String v)
      Parses a string into a common predicate.
      Parameters:
      v - The string to parse.
      Returns:
      The corresponding predicate, or null if the provided string does not match any of the common predicates.
    • invert

      @Deprecated public static Mapping invert(Mapping mapping)
      Deprecated.
      Use Mapping.invert() instead.
      Try inverting a mapping according to standard inversion rules.
      Parameters:
      mapping - The mapping to invert.
      Returns:
      A new mapping that is an inversion of the provided one, or null if the mapping could not be inverted.