java.lang.Object
java.lang.Enum<Language>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.Language
All Implemented Interfaces:
Serializable, Comparable<Language>, java.lang.constant.Constable

public enum Language extends Enum<Language>
Universal language enum for all background knowledge data sets.
  • Enum Constant Details

    • ARABIC

      public static final Language ARABIC
    • CHINESE

      public static final Language CHINESE
    • CZECH

      public static final Language CZECH
    • DUTCH

      public static final Language DUTCH
    • ENGLISH

      public static final Language ENGLISH
    • FRENCH

      public static final Language FRENCH
    • GERMAN

      public static final Language GERMAN
    • ITALIAN

      public static final Language ITALIAN
    • PORTUGUESE

      public static final Language PORTUGUESE
    • RUSSIAN

      public static final Language RUSSIAN
    • SPANISH

      public static final Language SPANISH
    • UNKNOWN

      public static final Language UNKNOWN
  • Field Details

    • LOGGER

      private static org.slf4j.Logger LOGGER
  • Constructor Details

    • Language

      private Language()
  • Method Details

    • values

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

      public static Language valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toSparqlChar2

      public String toSparqlChar2()
      Assumed ISO 609-1 codes (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
      Returns:
      Character two representation of the language.
    • toWiktionaryChar3

      public String toWiktionaryChar3()
      Transform the language to the char3 format that dbnary is using.
      Returns:
      The char3 language.
    • toWiktionaryLanguageTag

      public String toWiktionaryLanguageTag()
      Transform the language to the char2 format that dbnary is using.
      Returns:
      The char2 language.
    • inferLanguageChar2

      public static Language inferLanguageChar2(String language)
      Infer the correct enum instance given a char 2 language String.
      Parameters:
      language - Language String.
      Returns:
      Enum instance.