public interface IWiktionaryCollection extends IWiktionary
Modifier and Type | Method and Description |
---|---|
void |
addEdition(IWiktionaryEdition edition)
Add the specified Wiktionary language edition to the current
collection.
|
Iterable<IWiktionaryEdition> |
getEditions()
Returns a list of all Wiktionary langauge editions in
this collection.
|
IWiktionaryPage |
getPageForId(long id,
ILanguage entryLanguage)
Returns the page of the specified Wiktionary language edition with
the given unique id.
|
List<IWiktionaryPage> |
getPagesForId(long id)
Returns the pages with the given (edition-specific) unique id.
|
List<IWiktionaryPage> |
getPagesForWord(String word)
Returns all pages with the given title.
|
List<IWiktionaryPage> |
getPagesForWord(String word,
IWiktionaryPageFilter filter)
Returns all pages with the given title.
|
IWiktionarySense |
getSenseForKey(String key,
ILanguage language)
Returns the word sense with the given (edition-specific) unique id.
|
void |
removeEdition(IWiktionaryEdition edition)
Removes the specified edition from the collection.
|
close, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getEntriesForWord, getEntriesForWord, getEntriesForWord, getEntriesForWord, getPagesForWord, getPagesForWord, getSensesForWord, getSensesForWord, getSensesForWord, getSensesForWord, isClosed
void addEdition(IWiktionaryEdition edition)
Iterable<IWiktionaryEdition> getEditions()
void removeEdition(IWiktionaryEdition edition)
IWiktionary.close()
method.List<IWiktionaryPage> getPagesForId(long id)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionaryPage getPageForId(long id, ILanguage entryLanguage)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.List<IWiktionaryPage> getPagesForWord(String word)
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.List<IWiktionaryPage> getPagesForWord(String word, IWiktionaryPageFilter filter)
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching. Using the given
IWiktionaryPageFilter
, unwanted pages can be ignored.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionarySense getSenseForKey(String key, ILanguage language)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.