de.tudarmstadt.ukp.jwktl.api
Enum RelationType

java.lang.Object
  extended by java.lang.Enum<RelationType>
      extended by de.tudarmstadt.ukp.jwktl.api.RelationType
All Implemented Interfaces:
Serializable, Comparable<RelationType>

public enum RelationType
extends Enum<RelationType>

Represents the relation types used for IWiktionaryRelations. In the examples below, $ARTICLE refers to the IWiktionarySense (the relation's source) and $LINK refers to the hyperlink text (i.e., the referenced word; the relation's target).

Author:
Christian M. Meyer, Christof Müller, Lizhen Qu

Enum Constant Summary
ANTONYM
          Antonymy - $LINK has the opposite meaning of $ARTICLE (e.g., "bright" and "dark").
CHARACTERISTIC_WORD_COMBINATION
          Collocation - $LINK represents a word or phrase that co-occurs frequently with $ARTICLE (e.g., "strong" co-occurs often with "tea" - "strong tea" is usually used although "powerful tea" would essentially denote the same meaning.
COORDINATE_TERM
          Cohyponymy - $LINK and $ARTICLE share the same hypernym, but are not synonyms or antonyms (e.g., "dog "and "cat", which are both animals).
DERIVED_TERM
          Morphological derivation - $LINK is derived from $ARTICLE (e.g., "driver" is derived from "drive" using the -er suffix).
DESCENDANT
          Etymological relation - $LINK is derived from $ARTICLE (e.g., "taxi" is a descendent of "taximeter") This type of relation usually targets at a foreign language word, i.e. the language of $LINK borrowed/inherited the lexical entry $ARTICLE (e.g., the German verb "zoomen" is a descendent of the English "(to) zoom").
ETYMOLOGICALLY_RELATED_TERM
          Etymological relation - $LINK and $ARTICLE share the same etymology, but are not morphological derivations (e.g., "datum" and "data" share the same origin, but are not morphologically related).
HOLONYM
          Holonymy - $LINK is the whole of $ARTICLE (e.g., "tree" and "leaf").
HYPERNYM
          Hypernymy - $LINK is more general than $ARTICLE (e.g., "building" and "factory").
HYPONYM
          Hyponymy - $LINK is more specialized than $ARTICLE (e.g., "factory" and "building").
MERONYM
          Meronymy - $LINK is a part of $ARTICLE (e.g., "leaf" and "tree").
SEE_ALSO
          Other semantic relation - $LINK is related to $ARTICLE in some (associative) way (e.g., "product" and "multiplication").
SYNONYM
          Synonymy - $LINK carries the same meaning as $ARTICLE (e.g., "plant" and "factory").
TROPONYM
          Troponymy - $LINK is a certain manner of $ARTICLE (e.g., "(to) slice" is "(to) cut" in a certain manner).
 
Method Summary
static RelationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RelationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYNONYM

public static final RelationType SYNONYM
Synonymy - $LINK carries the same meaning as $ARTICLE (e.g., "plant" and "factory").


ANTONYM

public static final RelationType ANTONYM
Antonymy - $LINK has the opposite meaning of $ARTICLE (e.g., "bright" and "dark").


HYPERNYM

public static final RelationType HYPERNYM
Hypernymy - $LINK is more general than $ARTICLE (e.g., "building" and "factory").


HYPONYM

public static final RelationType HYPONYM
Hyponymy - $LINK is more specialized than $ARTICLE (e.g., "factory" and "building").


HOLONYM

public static final RelationType HOLONYM
Holonymy - $LINK is the whole of $ARTICLE (e.g., "tree" and "leaf").


MERONYM

public static final RelationType MERONYM
Meronymy - $LINK is a part of $ARTICLE (e.g., "leaf" and "tree").


COORDINATE_TERM

public static final RelationType COORDINATE_TERM
Cohyponymy - $LINK and $ARTICLE share the same hypernym, but are not synonyms or antonyms (e.g., "dog "and "cat", which are both animals).


TROPONYM

public static final RelationType TROPONYM
Troponymy - $LINK is a certain manner of $ARTICLE (e.g., "(to) slice" is "(to) cut" in a certain manner). Note: Although the common definition of troponymy applies to verbs, this relation is also used between other parts of speech within Wiktionary.


SEE_ALSO

public static final RelationType SEE_ALSO
Other semantic relation - $LINK is related to $ARTICLE in some (associative) way (e.g., "product" and "multiplication").


DERIVED_TERM

public static final RelationType DERIVED_TERM
Morphological derivation - $LINK is derived from $ARTICLE (e.g., "driver" is derived from "drive" using the -er suffix).


ETYMOLOGICALLY_RELATED_TERM

public static final RelationType ETYMOLOGICALLY_RELATED_TERM
Etymological relation - $LINK and $ARTICLE share the same etymology, but are not morphological derivations (e.g., "datum" and "data" share the same origin, but are not morphologically related).


DESCENDANT

public static final RelationType DESCENDANT
Etymological relation - $LINK is derived from $ARTICLE (e.g., "taxi" is a descendent of "taximeter") This type of relation usually targets at a foreign language word, i.e. the language of $LINK borrowed/inherited the lexical entry $ARTICLE (e.g., the German verb "zoomen" is a descendent of the English "(to) zoom").


CHARACTERISTIC_WORD_COMBINATION

public static final RelationType CHARACTERISTIC_WORD_COMBINATION
Collocation - $LINK represents a word or phrase that co-occurs frequently with $ARTICLE (e.g., "strong" co-occurs often with "tea" - "strong tea" is usually used although "powerful tea" would essentially denote the same meaning. Note: $LINK can be a phrase including $ARTICLE (e.g., "strong tea") or just a single word without $ARTICLE (e.g., "strong") that co-occurs anywhere with the word $ARTICLE.

Method Detail

values

public static RelationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RelationType c : RelationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RelationType 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


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.