public interface IWiktionaryEdition extends IWiktionary
Modifier and Type | Method and Description |
---|---|
File |
getDBPath()
Returns the file path of the parsed database.
|
IWiktionaryEntry |
getEntryForId(long entryId)
Returns the
IWiktionaryEntry with the given entry id. |
IWiktionaryEntry |
getEntryForId(long pageId,
int entryIdx)
Returns the
IWiktionaryEntry with the given page id and
entry index. |
IWiktionaryEntry |
getEntryForWord(String word,
int entryIdx)
Returns the
IWiktionaryEntry encoded on a page with
the given title and being part of an entry with the specified entry
index. |
ILanguage |
getLanguage()
Returns the language of the Wiktionary edition, which is equivalent
to the entry language of the contained entries.
|
IWiktionaryPage |
getPageForId(long id)
Returns the page with the given unique id.
|
IWiktionaryPage |
getPageForWord(String word)
Returns the page with the given title.
|
IWiktionarySense |
getSenseForId(long entryId,
int senseIdx)
Returns the word sense with the given entry id and sense index.
|
IWiktionarySense |
getSenseForId(long pageId,
int entryIdx,
int senseIdx)
Returns the word sense with the given page id, entry index, and sense
index.
|
IWiktionarySense |
getSenseForKey(String id)
Returns the word sense with the given unique id.
|
List<IWiktionarySense> |
getSensesForWord(String word,
int entryIdx)
Returns a list of
IWiktionarySense s encoded on a page with
the given title and being part of an entry with the specified entry
index. |
IWiktionarySense |
getSensesForWord(String word,
int entryIdx,
int senseIdx)
Returns the
IWiktionarySense encoded on the page with
the given title and being part of the entry with the specified entry
index at the specified sense index. |
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
ILanguage getLanguage()
File getDBPath()
IWiktionaryPage getPageForId(long id)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionaryPage getPageForWord(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.IWiktionaryEntry getEntryForId(long entryId)
IWiktionaryEntry
with the given entry id. Note
that this id is only stable over the same XML dump and JWKTL version.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionaryEntry getEntryForId(long pageId, int entryIdx)
IWiktionaryEntry
with the given page id and
entry index. Note that this id combination is only stable over the
same XML dump and JWKTL version.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionaryEntry getEntryForWord(String word, int entryIdx)
IWiktionaryEntry
encoded on a page with
the given title and being part of an entry with the specified entry
index. The method only returns the entries if the page title
matches exactly.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionarySense getSenseForKey(String id)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionarySense getSenseForId(long entryId, int senseIdx)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionarySense getSenseForId(long pageId, int entryIdx, int senseIdx)
IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.List<IWiktionarySense> getSensesForWord(String word, int entryIdx)
IWiktionarySense
s encoded on a page with
the given title and being part of an entry with the specified entry
index. The method only returns the senses if the page title
matches exactly.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.IWiktionarySense getSensesForWord(String word, int entryIdx, int senseIdx)
IWiktionarySense
encoded on the page with
the given title and being part of the entry with the specified entry
index at the specified sense index. The method only returns the
sense if the page title matches exactly.IllegalStateException
- if the connection has already been closed.WiktionaryException
- upon database errors.Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.