public interface IWritableWiktionaryEdition extends IWiktionaryEdition
Modifier and Type | Method and Description |
---|---|
void |
commit()
Force a database commit of the pages saved so far.
|
WiktionaryPage |
getPageForId(long id)
Returns the page with the given unique id.
|
WiktionaryPage |
getPageForWord(String word)
Returns the page with the given title.
|
void |
savePage(WiktionaryPage page)
Adds the given page to the Wiktionary edition (e.g., storing it
in a database).
|
void |
saveProperties(IDumpInfo dumpInfo)
Hotspot called after parsing has finished to save the metadata
of the dump file and the basic parsing statistics.
|
void |
setEntryIndexByTitle(boolean entryIndexByTitle)
Sorts the entries by word form before assigning an ID to them.
|
void |
setLanguage(ILanguage language)
Assigns the given language to the Wiktionary edition.
|
getDBPath, getEntryForId, getEntryForId, getEntryForWord, getLanguage, getSenseForId, getSenseForId, getSenseForKey, getSensesForWord, getSensesForWord
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
WiktionaryPage getPageForId(long id)
IWiktionaryEdition
getPageForId
in interface IWiktionaryEdition
WiktionaryPage getPageForWord(String word)
IWiktionaryEdition
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching.getPageForWord
in interface IWiktionaryEdition
void saveProperties(IDumpInfo dumpInfo) throws WiktionaryException
WiktionaryException
void savePage(WiktionaryPage page)
void commit()
void setLanguage(ILanguage language)
void setEntryIndexByTitle(boolean entryIndexByTitle)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.