Bridges-Java
3.4.4-dev2-4-g23cf54b
Bridges(Java API)
|
Stores the meta data of a book as stored by project Gutenberg. More...
Public Member Functions | |
GutenbergMeta () | |
GutenbergMeta (int id, String title, String lang, String date, String[] authors, String[] genres, String[] loc) | |
int | getId () |
GutenbergID of the book. More... | |
void | setId (int id) |
String | getTitle () |
Title of the book. More... | |
void | setTitle (String title) |
String | getLanguage () |
language of the book. More... | |
void | setLanguage (String lang) |
String | getDate () |
date at which the book was added to project Gutenberg. More... | |
void | setDate (String date) |
String[] | getAuthors () |
List of authors. More... | |
void | setAuthors (String[] authors) |
String[] | getGenres () |
List of genres. More... | |
void | setGenres (String[] genres) |
String[] | getLoc () |
List of libary of congress classifications. More... | |
void | setLoc (String[] loc) |
Stores the meta data of a book as stored by project Gutenberg.
This object stores the meta data of a book such as its title, author and genre. The meta data come from https://www.gutenberg.org/.
Objects of this type are typically not constructed by the user but returned by a call to our Gutenberg API such as bridges::connect::DataSource::getGutenbergBookMetaData() or bridges::connect::DataSource::getAGutenbergBookMetaData(int).
The object does not contain the text of the book itself. Though it can be obtained using bridges::connect::DataSource::getGutenbergBookText()
A tutorial of how to use the Gutenberg data in BRIDGES is available: https://bridgesuncc.github.io/tutorials/Data_Gutenberg.html
bridges.data_src_dependent.GutenbergMeta.GutenbergMeta | ( | ) |
bridges.data_src_dependent.GutenbergMeta.GutenbergMeta | ( | int | id, |
String | title, | ||
String | lang, | ||
String | date, | ||
String[] | authors, | ||
String[] | genres, | ||
String[] | loc | ||
) |
String [] bridges.data_src_dependent.GutenbergMeta.getAuthors | ( | ) |
List of authors.
String bridges.data_src_dependent.GutenbergMeta.getDate | ( | ) |
date at which the book was added to project Gutenberg.
This is not a publication date!
String [] bridges.data_src_dependent.GutenbergMeta.getGenres | ( | ) |
List of genres.
Note that the genres stored by project Gutenberg may more detailled than one could expect.
int bridges.data_src_dependent.GutenbergMeta.getId | ( | ) |
GutenbergID of the book.
String bridges.data_src_dependent.GutenbergMeta.getLanguage | ( | ) |
language of the book.
Note that translations of a text shows in the translated language and not in the original language.
String [] bridges.data_src_dependent.GutenbergMeta.getLoc | ( | ) |
List of libary of congress classifications.
String bridges.data_src_dependent.GutenbergMeta.getTitle | ( | ) |
Title of the book.
void bridges.data_src_dependent.GutenbergMeta.setAuthors | ( | String[] | authors | ) |
void bridges.data_src_dependent.GutenbergMeta.setDate | ( | String | date | ) |
void bridges.data_src_dependent.GutenbergMeta.setGenres | ( | String[] | genres | ) |
void bridges.data_src_dependent.GutenbergMeta.setId | ( | int | id | ) |
void bridges.data_src_dependent.GutenbergMeta.setLanguage | ( | String | lang | ) |
void bridges.data_src_dependent.GutenbergMeta.setLoc | ( | String[] | loc | ) |
void bridges.data_src_dependent.GutenbergMeta.setTitle | ( | String | title | ) |