de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant
Class Relation

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant.Relation

public class Relation
extends Object

Strictly defined names of semantic relations used in all wiktionaries.

See Also:
http://en.wiktionary.org/wiki/Wiktionary:Semantic_relations

Field Summary
static Relation antonymy
           
static Relation coordinate_term
           
static Relation holonymy
           
static Relation hypernymy
           
static Relation hyponymy
           
static Relation meronymy
           
static Relation otherwise_related
           
static Relation synonymy
           
static Relation troponymy
           
 
Method Summary
static Relation get(String name)
          Gets semantic relation by its name
static Set<String> getAllRelationNames()
          Gets all names of semantic relations.
static Collection<Relation> getAllRelations()
          Gets all relations.
static Relation[] getAllRelationsOrderedArray()
          Gets all relations (as Array[]).
 String getShortName(LanguageType l)
          Gets short name of Relation in the language l.
static boolean has(String name)
          Checks weather exists a semantic relation by its name.
static int size()
          Counts number of relations.
 String toString()
           
 String toString(LanguageType l)
          Gets name of Relation in the language l.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

synonymy

public static final Relation synonymy

antonymy

public static final Relation antonymy

hypernymy

public static final Relation hypernymy

hyponymy

public static final Relation hyponymy

holonymy

public static final Relation holonymy

meronymy

public static final Relation meronymy

troponymy

public static final Relation troponymy

coordinate_term

public static final Relation coordinate_term

otherwise_related

public static final Relation otherwise_related
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(LanguageType l)
Gets name of Relation in the language l. If there is no translation then returns Relation name in English


getShortName

public String getShortName(LanguageType l)
Gets short name of Relation in the language l.


has

public static boolean has(String name)
Checks weather exists a semantic relation by its name.


get

public static Relation get(String name)
Gets semantic relation by its name


size

public static int size()
Counts number of relations.


getAllRelations

public static Collection<Relation> getAllRelations()
Gets all relations.


getAllRelationsOrderedArray

public static Relation[] getAllRelationsOrderedArray()
Gets all relations (as Array[]). Rem: We are waiting a marvellous day when JavaFX will support Collection<>. Then this function will be deleted.


getAllRelationNames

public static Set<String> getAllRelationNames()
Gets all names of semantic relations.



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