Start your Node server and go to: http://localhost:8080/phase3
Slack Channel: https://sea-expeditionhacks.slack.com/messages/C5F94RLC8/search/precis%20nouveaux/
DevPost Team Project Submission: https://devpost.com/software/precisnouveaux-aq61wb
Awards Announcements Filmed Live: https://www.pscp.tv/w/1ypJdrorWRgKW
(KNIME integrates various components for machine learning and data mining)
This Knime node is a variable that holds our sample keyword string of "North Koreo Missile" that we want to search news on.
This Knime node inserts that string to the template we need to query IBM Watson Discovery
(IBM Watson Discovery is a service makes it possible to rapidly build cognitive, cloud-based exploration applications that unlock actionable insights hidden in unstructured data)
This is the HTTP GET request to the IBM Watson Discovery API.
This link includes a "Collection ID", "Environment ID" (one instance of a particular web server that is responding to this API), "search string", etc
It queries against a specific "Collection ID" you have created in IBM Watson Discovery. (A "Collection ID" is a data set you have curated with specific RSS feeds or news sources you wish to search from.)
The response returns a json file.
This is where we specified what properties we wanted to keep from those JSON objects.
In our example, we wanted 'Relevance', 'Keywords', 'Text' (summary), etc...
This is where we convert that json file/objects into a table.
Where each object is put a row and each property is put in a column. (This is so we can move things around and work with it in Knime.)
Here we can specify which rows we want to discard/keep. For our example, we kept 3 rows since we had an HTML template with just 3 articles that we are printing out as a sheet of paper.
This again turns that data into a JSON file again.
This can write it to a file on your disk
Once that json file was generated and saved onto our disk, we needed to be able to parse that json file using nodeJS and inject it into our HTML template w/ EJS. (EJS is a templating language that lets you generate HTML markup with JavaScript.)
We wanted to showcase a source's image, title, and summary. Then next to each image and summary text, a QR code. This would help the curator be able to scan only the sources that were considered the most valuable and then help improve the briefing process over time.