Project Documentation
The CADRE platform provides users with tools that facilitate the creation of datasets from user-generated queries as well as an interface (using Jupyter Notebooks) for displaying, processing, and even analyzing created datasets.
The two main tools in the CADRE Dashboard are Query Builder and Jupyter Notebook. This guide focuses on using Query Builder and displaying query results using Jupyter Notebook. We also provide a few external resources that can help you use Jupyter notebook for more sophisticated data processing and analysis.
Query Builder.
Proceed to Query Builder
.There are 4 sections to complete before submitting a query.
Filters
Author: smith, jj OR Author: smith, john j OR Author: smith, john james AND
Author: doe, rb OR Author: doe, robert b OR Author: doe, robert brian
Example:
Select if added field should be “AND” or “OR” using the pulldown option.
Output Fields
Network Queries
Job Name (recommended)
Submit Query and Check Job Status
Click Submit Query to put your query into a job queue that will be run and return results.
Click the button Check Job Statuses to be redirected to a Jobs page that lists all your submitted queries and their current status.
Once your query is “Completed”, your results are automatically saved to a personal workspace in a folder labeled “query-results”. There are two ways to display the query results using Jupyter Notebook.
This will start the Jupyter Notebook server. There might be a short delay while initiating the server, which will display “Notebook status: pending”
Once you see “Notebook status: running”, click the button Go To Notebook to display your personal Jupyter Notebook workspace in a new browser tab.
The linked csv file you clicked on will automatically be displayed as spreadsheet within the workspace.
If you want to display multiple query results, simply click on the csv file you want to see and the file will be displayed in the list of nested tabs.
Option 2) As an alternative way to display the query results, you can click the button **Go To Jupyter Notebook To View Results**
.
On next page, click the button Start Notebook Server
.
Similar to Option 1 (above), this will launch Jupyter Notebook. Once you see “Notebook status: running”, click the button Go To Notebook to display your personal Jupyter Notebook workspace in a new browser tab.
However, you need to navigate to the query result files to display the results as a spreadsheet in the workspace.
If you want to display multiple query results, simply click on the additional csv file you want to see and the file will be displayed in a nested tab.
To download a csv file containing query results, click File>Download in the top menu bar. This will enable to choose the File Name and directory where you would like to save the file on your local machine.
This is helpful if have previously used CADRE’s Query Builder feature and already have results stored in the “query-results” folder, or if you have another csv file you would like to upload to you Notebook server.