Modifier and Type | Field and Description |
---|---|
static String |
BABEL_CATEGORY_PREFIX
Category prefix
|
Constructor and Description |
---|
BabelCategory(String category,
it.uniroma1.lcl.jlt.util.Language language)
Creates a new instance of a
BabelCategory |
Modifier and Type | Method and Description |
---|---|
static BabelCategory |
fromString(String categoryString)
Creates a new instance of a
BabelCategory from a string with
format [language_id]:[category_label], e.g. |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Gets the language of this
BabelCategory . |
BabelLicense |
getLicense()
Returns the
BabelLicense for this Babel category |
String |
getValue()
Gets the label of this
BabelCategory . |
String |
getWikipediaURI()
Gets the URI of the Wikipedia page this
BabelCategory
corresponds to. |
String |
toString() |
public static final String BABEL_CATEGORY_PREFIX
public BabelCategory(String category, it.uniroma1.lcl.jlt.util.Language language)
BabelCategory
category
- the category stringlanguage
- the category languagepublic String getValue()
BabelCategory
.getValue
in interface Tag<String>
BabelCategory
.public it.uniroma1.lcl.jlt.util.Language getLanguage()
BabelCategory
.BabelCategory
.public String getWikipediaURI()
BabelCategory
corresponds to. For instance
"http://en.wikipedia.org/wiki/Category:Mathematicians_who_committed_suicide"
for the English category
"Mathematicians_who_committed_suicide"
and
"http://de.wikipedia.org/wiki/Kategorie:Mitglied_der_Royal_Society"
for the German category "Kategorie:Mitglied der Royal Society"BabelCategory
.public static BabelCategory fromString(String categoryString)
BabelCategory
from a string with
format [language_id]:[category_label], e.g. EN:Scientist_who_committed_suicidecategoryString
- the string of the category to be retrievedBabelCategory
from an input stringpublic BabelLicense getLicense()
BabelLicense
for this Babel categoryCopyright © 2016–2021. All rights reserved.