Bridges-Java-2.3.3
2.3.3
Bridges(JavaAPI)
|
Static Public Member Functions | |
static String | getServerURL () |
static void | setServerURL (String server_url) |
static StringBuilder | trimComma (StringBuilder in) |
static List< Follower > | getAssociations (Follower identifier, int max) |
static List< Tweet > | getAssociations (TwitterAccount identifier, int max) |
static List< EarthquakeUSGS > | getAssociations (USGSaccount identifier, int max) |
static List< EarthquakeTweet > | convertTweet (List< Tweet > aList) |
static List< Actor > | getAssociations (Actor identifier, int max) |
static List< Movie > | getAssociations (Movie identifier, int max) |
static List< Tweet > | next (List< Tweet > aList, int max) |
static List< EarthquakeUSGS > | next (List< EarthquakeUSGS > aList, int max, USGSaccount acu) |
static int | validNumberOfTweets (int max) |
static double | getEdgeWeight (String source, String target) |
static ArrayList< EarthquakeUSGS > | getEarthquakeUSGSData (int maxElem) throws Exception |
static ArrayList< ActorMovieIMDB > | getActorMovieIMDBData (int maxElem) throws Exception, IllegalArgumentException |
static ArrayList< ActorMovieIMDB > | getActorMovieIMDBData2 () throws Exception |
static ArrayList< GutenbergBook > | getGutenbergBookMetaData () throws Exception |
static ArrayList< Game > | getGameData () throws Exception |
static ArrayList< Song > | getSongData () throws Exception |
static Song | getSong (String songTitle, String artistName) throws Exception |
static ArrayList< Shakespeare > | getShakespeareData (String works, Boolean textOnly) throws Exception |
static ArrayList< CancerIncidence > | getCancerIncidenceData () throws Exception |
Protected Member Functions | |
DataFormatter () | |
Connector | getBackend () |
void | setBackend (Connector backend) |
Connection to the DataFormatters server.
Initialize this class before using it, and call complete() afterward.
<E> | Mihai Mehedint |
|
protected |
Constructor
|
static |
This method change the tweet object into an earthquake tweet object with more data extracted from the tweet content, like magnitude
aList |
|
static |
Get ActorMovie IMDB Data retrieved, formatted into a list of ActorMovieIMDB objects
maxElements | the number of actor/movie pairs |
Exception | if the request fails |
|
static |
Get ActorMovie IMDB Data retrieved, formatted into a list of ActorMovieIMDB objects
Exception | if the request fails |
|
static |
Automatically choose whether to open a node identifier with: Twitter via followers(), TMDb with movies(), or RottenTomatoes with actors()
identifier | |
max |
QueryLimitException | This Method returns the list of followers |
identifier | holds the name of the |
max | holds the max number of followers |
|
static |
This Method returns the list of tweets
identifier | holds the name of the |
max | holds the max number of tweets |
MyExceptionClass |
|
static |
This Method returns the list of earthquakes
identifier | holds the name of the |
max | holds the max number of earthquakes |
MyExceptionClass |
|
static |
This Method returns the list of actors
identifier | holds the name of the movie |
max | holds the max number of actors |
|
static |
This Method returns the list of movies
identifier | holds the name of the movie |
max | holds the max number of movies |
|
protected |
|
static |
|
static |
Get USGS earthquake data USGS Tweet data (https://earthquake.usgs.gov/earthquakes/map/) retrieved, formatted into a list of EarthquakeUSGS objects
name | USGS account name - must be "earthquake" to create account |
maxElements | the number of earthquake records retrieved, limited to 5000 |
Exception | if the request fails |
|
static |
Generate a sample Edge weight for two nodes
source | |
target |
|
static |
Get meta data of the IGN games collection.
This function retrieves and formats the data into a list of Game objects
Exception | if the request fails |
|
static |
Get meta data of the Gutenberg book collection (1000 books) This function retrieves, and formats the data into a list of GutenbergBook objects
Exception | if the request fails |
|
static |
|
static |
Get data of Shakespeare works (plays, poems)
This function retrieves and formats the data into a a list of Shakespeare objects.
Exception | if the request fails |
works | can be either "plays" or "poems". If this is specified, then only these types of works are retrieved. |
textOnly | if this is set, then only the text is retrieved. |
|
static |
Get data of a particular songs (including lyrics) using the Genius API (https://docs.genius.com/), given the song title and artist name.
This function retrieves and formats the data into a Song object. The song if not cached in the local DB is queried and added to the DB
Exception | if the request fails |
|
static |
Get data of the songs (including lyrics) using the Genius API https://docs.genius.com/
This function retrieves and formats the data into a list of Song objects. This version of the API retrieves all the cached songs in the local DB.
Exception | if the request fails |
The next(List<Tweet>, int) method retrieves the next batch of tweets and adds deep copy of those tweets to the current list
aList | holds the reference to the current list of tweets |
max | the number of tweets in the new batch of tweets |
MyExceptionClass |
|
static |
The next(List<EarthquakeUSGS>, int) method retrieves the next batch of eq and adds deep copy of those eq to the current list
aList | holds the reference to the current list of eq |
max | the number of eq in the new batch of eq |
MyExceptionClass |
|
protected |
backend | the backend to set |
|
static |
|
static |
Internal method for JSON preparation
in | The original string |
|
static |
Check the validity of number of Tweets requested
max | the number of tweets |
MyExceptionClass | otherwise |