de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.language
Class WikimediaSisterProject

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikipedia.language.WikimediaSisterProject

public class WikimediaSisterProject
extends Object

Wikimedia sister projects: code and short codes, e.g. 'wikipedia' and 'w', 'wikt'. See w:Wikipedia:Interwikimedia_links and w:Wikipedia:Wikimedia_sister_projects


Field Summary
static WikimediaSisterProject MediaWiki
           
static WikimediaSisterProject MediaZilla
           
static WikimediaSisterProject Wikibooks
           
static WikimediaSisterProject Wikimedia_Commons
           
static WikimediaSisterProject Wikimedia_Foundation
           
static WikimediaSisterProject Wikimedia_Incubator
           
static WikimediaSisterProject Wikimedia_Meta_Wiki
           
static WikimediaSisterProject Wikinews
           
static WikimediaSisterProject Wikipedia
           
static WikimediaSisterProject Wikiquote
           
static WikimediaSisterProject Wikisource
           
static WikimediaSisterProject Wikispecies
           
static WikimediaSisterProject Wikiversity
           
static WikimediaSisterProject Wiktionary
           
 
Method Summary
 boolean equals(String long_form)
          Returns true if the language has this 'long_form'.
static boolean existsCode(String code)
          Checks weather exists the project with long form or shortcut 'code'.
static WikimediaSisterProject get(String code)
          Gets WM sister project by name of long form
static String getLinkText(String text_inside_link)
          Gets texts of interwikimedia link.
static String getLinkText(String before, String after)
          Gets texts of interwikimedia link.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Wikipedia

public static final WikimediaSisterProject Wikipedia

Wiktionary

public static final WikimediaSisterProject Wiktionary

Wikinews

public static final WikimediaSisterProject Wikinews

Wikibooks

public static final WikimediaSisterProject Wikibooks

Wikiquote

public static final WikimediaSisterProject Wikiquote

Wikisource

public static final WikimediaSisterProject Wikisource

Wikispecies

public static final WikimediaSisterProject Wikispecies

Wikiversity

public static final WikimediaSisterProject Wikiversity

Wikimedia_Foundation

public static final WikimediaSisterProject Wikimedia_Foundation

Wikimedia_Commons

public static final WikimediaSisterProject Wikimedia_Commons

Wikimedia_Meta_Wiki

public static final WikimediaSisterProject Wikimedia_Meta_Wiki

Wikimedia_Incubator

public static final WikimediaSisterProject Wikimedia_Incubator

MediaWiki

public static final WikimediaSisterProject MediaWiki

MediaZilla

public static final WikimediaSisterProject MediaZilla
Method Detail

existsCode

public static boolean existsCode(String code)
Checks weather exists the project with long form or shortcut 'code'.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(String long_form)
Returns true if the language has this 'long_form'.


get

public static WikimediaSisterProject get(String code)
                                  throws NullPointerException
Gets WM sister project by name of long form

Throws:
NullPointerException

getLinkText

public static String getLinkText(String text_inside_link)
Gets texts of interwikimedia link. E.g. [[wikt:Wiktionary:Statistics#Detail|statistics]] -> "statistics"

Parameters:
text_inside_link - e.g. "wikipedia:" in [[wikipedia:]]

getLinkText

public static String getLinkText(String before,
                                 String after)
Gets texts of interwikimedia link. E.g. [[wikt:Wiktionary:Statistics#Detail|statistics]] -> "statistics"

Parameters:
before - the text before the first column, e.g. "wikipedia" in [[wikipedia:]]
after - e.g. "Wikipedia:Wikimedia_sister_projects" in [[w:Wikipedia:Wikimedia_sister_projects]]


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