Enum Class RDFTranslationMode

java.lang.Object
java.lang.Enum<RDFTranslationMode>
fr.inria.rules.integraal.io.rdf.RDFTranslationMode
All Implemented Interfaces:
Serializable, Comparable<RDFTranslationMode>, Constable

public enum RDFTranslationMode extends Enum<RDFTranslationMode>
Translation mode for interpretation of RDF documents A mode represent how an RDF triple (s, p, o) is translated into atoms
  • Enum Constant Details

    • Raw

      public static final RDFTranslationMode Raw
      The raw translation uses the predicate "triple" of arity 3 and the 3 terms corresponding to s, p and o.
    • Natural

      public static final RDFTranslationMode Natural
      The natural translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o.
    • NaturalFull

      public static final RDFTranslationMode NaturalFull
      The NaturalFull translation uses the predicate p of the triple as predicate of arity 2 and the 2 terms corresponding to s and o. In addition, if the predicate is rdf:type, then the object is used as the predicate of arity one instead with the 1 term corresponding to s.
  • Method Details

    • values

      public static RDFTranslationMode[] 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 RDFTranslationMode 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