public interface IWiktionary extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Disconnects from the database.
|
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries()
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries(boolean sortByTitle)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries(boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries(IWiktionaryEntryFilter filter)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries(IWiktionaryEntryFilter filter,
boolean sortByTitle)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryEntry> |
getAllEntries(IWiktionaryEntryFilter filter,
boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages()
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages(boolean sortByTitle)
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages(boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages(IWiktionaryPageFilter filter)
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages(IWiktionaryPageFilter filter,
boolean sortByTitle)
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionaryPage> |
getAllPages(IWiktionaryPageFilter filter,
boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryPages within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses()
Returns an iterator over all
IWiktionarySenses within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses(boolean sortByTitle)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses(boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses(IWiktionarySenseFilter filter)
Returns an iterator over all
IWiktionarySenses within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses(IWiktionarySenseFilter filter,
boolean sortByTitle)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
IWiktionaryIterator<IWiktionarySense> |
getAllSenses(IWiktionarySenseFilter filter,
boolean sortByTitle,
boolean normalize)
Returns an iterator over all
IWiktionaryEntrys within
the Wiktionary edition. |
List<IWiktionaryEntry> |
getEntriesForWord(String word)
Returns a list of
IWiktionaryEntrys encoded on a page with
the given title. |
List<IWiktionaryEntry> |
getEntriesForWord(String word,
boolean normalize)
Returns a list of
IWiktionaryEntrys encoded on a page with
the given title. |
List<IWiktionaryEntry> |
getEntriesForWord(String word,
IWiktionaryEntryFilter filter)
Returns a list of
IWiktionaryEntrys encoded on a page with
the given title. |
List<IWiktionaryEntry> |
getEntriesForWord(String word,
IWiktionaryEntryFilter filter,
boolean normalize)
Returns a list of
IWiktionaryEntrys encoded on a page with
the given title. |
List<IWiktionaryPage> |
getPagesForWord(String word,
boolean normalize)
Returns the page with the given title.
|
List<IWiktionaryPage> |
getPagesForWord(String word,
IWiktionaryPageFilter filter,
boolean normalize)
Returns the page with the given title.
|
List<IWiktionarySense> |
getSensesForWord(String word)
Returns a list of
IWiktionarySenses encoded on a page with
the given title. |
List<IWiktionarySense> |
getSensesForWord(String word,
boolean normalize)
Returns a list of
IWiktionarySenses encoded on a page with
the given title. |
List<IWiktionarySense> |
getSensesForWord(String word,
IWiktionarySenseFilter filter)
Returns a list of
IWiktionarySenses encoded on a page with
the given title. |
List<IWiktionarySense> |
getSensesForWord(String word,
IWiktionarySenseFilter filter,
boolean normalize)
Returns a list of
IWiktionarySenses encoded on a page with
the given title. |
boolean |
isClosed()
Returns
true if the database connection has already been
closed using the close() method. |
List<IWiktionaryPage> getPagesForWord(String word, boolean normalize)
false for exact matches.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionaryPage> getPagesForWord(String word, IWiktionaryPageFilter filter, boolean normalize)
IWiktionaryPageFilter, unwanted pages can be ignored.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.IWiktionaryIterator<IWiktionaryPage> getAllPages()
IWiktionaryPages within
the Wiktionary edition. The pages are sorted by their page id.IWiktionaryIterator<IWiktionaryPage> getAllPages(boolean sortByTitle)
IWiktionaryPages within
the Wiktionary edition.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionaryPage> getAllPages(boolean sortByTitle, boolean normalize)
IWiktionaryPages within
the Wiktionary edition.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).IWiktionaryIterator<IWiktionaryPage> getAllPages(IWiktionaryPageFilter filter)
IWiktionaryPages within
the Wiktionary edition. The pages are sorted by their page id.
Using the given IWiktionaryPageFilter, unwanted pages
can be ignored.IWiktionaryIterator<IWiktionaryPage> getAllPages(IWiktionaryPageFilter filter, boolean sortByTitle)
IWiktionaryPages within
the Wiktionary edition. Using the given IWiktionaryPageFilter,
unwanted pages can be ignored.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionaryPage> getAllPages(IWiktionaryPageFilter filter, boolean sortByTitle, boolean normalize)
IWiktionaryPages within
the Wiktionary edition. Using the given IWiktionaryPageFilter,
unwanted pages can be ignored.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).List<IWiktionaryEntry> getEntriesForWord(String word)
IWiktionaryEntrys encoded on a page with
the given title. The method only returns an entry if the page title
matches exactly. Use getEntriesForWord(String, boolean) for
case insensitive and string-normalized matching.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionaryEntry> getEntriesForWord(String word, boolean normalize)
IWiktionaryEntrys encoded on a page with
the given title.normalize - if true, match the page title in a
case insensitive manner.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionaryEntry> getEntriesForWord(String word, IWiktionaryEntryFilter filter)
IWiktionaryEntrys encoded on a page with
the given title. The method only returns an entry if the page title
matches exactly. Use getEntriesForWord(String, boolean) for
case insensitive and string-normalized matching. Using the given
IWiktionaryEntryFilter, unwanted entries can be ignored.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionaryEntry> getEntriesForWord(String word, IWiktionaryEntryFilter filter, boolean normalize)
IWiktionaryEntrys encoded on a page with
the given title. Using the given IWiktionaryEntryFilter,
unwanted entries can be ignored.normalize - if true, match the page title in a
case insensitive manner.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.IWiktionaryIterator<IWiktionaryEntry> getAllEntries()
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages() and then
over the page's entries using IWiktionaryPage.getEntries().
The pages are sorted by their page id; the entries by their
index.IWiktionaryIterator<IWiktionaryEntry> getAllEntries(boolean sortByTitle)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean) and then
over the page's entries using IWiktionaryPage.getEntries().
The pages are sorted according to the method's parameters; the
entries are sorted by their index.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionaryEntry> getAllEntries(boolean sortByTitle, boolean normalize)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean, boolean)
and then over the page's entries using
IWiktionaryPage.getEntries().
The pages are sorted according to the method's parameters; the
entries are sorted by their index.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).IWiktionaryIterator<IWiktionaryEntry> getAllEntries(IWiktionaryEntryFilter filter)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages() and then
over the page's entries using IWiktionaryPage.getEntries().
The pages are sorted by their page id; the entries by their
index. Using the given IWiktionaryEntryFilter, unwanted
entries can be ignored.IWiktionaryIterator<IWiktionaryEntry> getAllEntries(IWiktionaryEntryFilter filter, boolean sortByTitle)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean) and then
over the page's entries using IWiktionaryPage.getEntries().
The pages are sorted according to the method's parameters; the
entries are sorted by their index. Using the given
IWiktionaryEntryFilter, unwanted entries can be ignored.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionaryEntry> getAllEntries(IWiktionaryEntryFilter filter, boolean sortByTitle, boolean normalize)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean, boolean)
and then over the page's entries using
IWiktionaryPage.getEntries().
The pages are sorted according to the method's parameters; the
entries are sorted by their index. Using the given
IWiktionaryEntryFilter, unwanted entries can be ignored.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).List<IWiktionarySense> getSensesForWord(String word)
IWiktionarySenses encoded on a page with
the given title. The method only returns the senses if the page title
matches exactly. Use getSensesForWord(String, boolean) for
case insensitive and string-normalized matching.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionarySense> getSensesForWord(String word, boolean normalize)
IWiktionarySenses encoded on a page with
the given title.normalize - if true, match the page title in a
case insensitive manner.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionarySense> getSensesForWord(String word, IWiktionarySenseFilter filter)
IWiktionarySenses encoded on a page with
the given title. The method only returns the senses if the page title
matches exactly. Use getSensesForWord(String, boolean) for
case insensitive and string-normalized matching. Using the given
IWiktionarySenseFilter, unwanted word senses can be ignored.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.List<IWiktionarySense> getSensesForWord(String word, IWiktionarySenseFilter filter, boolean normalize)
IWiktionarySenses encoded on a page with
the given title. Using the given IWiktionarySenseFilter,
unwanted word senses can be ignored.normalize - if true, match the page title in a
case insensitive manner.IllegalStateException - if the connection has already been closed.WiktionaryException - upon database errors.IWiktionaryIterator<IWiktionarySense> getAllSenses()
IWiktionarySenses within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages() and then
over the page's entries using IWiktionaryPage.getEntries()
and then over the entry's senses using
IWiktionaryEntry.getSenses().
The pages are sorted by their page id; the entries and senses by
their index.IWiktionaryIterator<IWiktionarySense> getAllSenses(boolean sortByTitle)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean) and then
over the page's entries using IWiktionaryPage.getEntries()
and then over the entry's senses using
IWiktionaryEntry.getSenses().
The pages are sorted according to the method's parameters; the
entries and senses are sorted by their index.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionarySense> getAllSenses(boolean sortByTitle, boolean normalize)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean, boolean)
and then over the page's entries using
IWiktionaryPage.getEntries() and then over the entry's
senses using IWiktionaryEntry.getSenses().
The pages are sorted according to the method's parameters; the
entries and senses are sorted by their index.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).IWiktionaryIterator<IWiktionarySense> getAllSenses(IWiktionarySenseFilter filter)
IWiktionarySenses within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages() and then
over the page's entries using IWiktionaryPage.getEntries()
and then over the entry's senses using
IWiktionaryEntry.getSenses().
The pages are sorted by their page id; the entries and senses by
their index. Using the given IWiktionarySenseFilter, unwanted
word senses can be ignored.IWiktionaryIterator<IWiktionarySense> getAllSenses(IWiktionarySenseFilter filter, boolean sortByTitle)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean) and then
over the page's entries using IWiktionaryPage.getEntries()
and then over the entry's senses using
IWiktionaryEntry.getSenses().
The pages are sorted according to the method's parameters; the
entries and senses are sorted by their index. Using the given
IWiktionarySenseFilter, unwanted word senses can be ignored.sortByTitle - if true sort by page title
(case sensitive); otherwise by page id.IWiktionaryIterator<IWiktionarySense> getAllSenses(IWiktionarySenseFilter filter, boolean sortByTitle, boolean normalize)
IWiktionaryEntrys within
the Wiktionary edition. This is equivalent to iterating over all
pages using getAllPages(boolean, boolean)
and then over the page's entries using
IWiktionaryPage.getEntries() and then over the entry's
senses using IWiktionaryEntry.getSenses().
The pages are sorted according to the method's parameters; the
entries and senses are sorted by their index. Using the given
IWiktionarySenseFilter, unwanted word senses can be ignored.sortByTitle - if true sort by page title;
otherwise by page id.normalize - if true sort case insensitive;
otherwise case sensitive (only affects sorting by title).void close()
close in interface AutoCloseableclose in interface Closeableboolean isClosed()
true if the database connection has already been
closed using the close() method.Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.