A collection of notebooks for storing and querying OC4IDS data in a database.
Use the buttons below to open notebooks from the default branch:
Notebook | Colab link | Description |
---|---|---|
Download, Check and Import | Use this notebook to, download data from OC4IDS publishers, check data using the OC4IDS Data Review Tool and import data and check results into the OC4IDS database. | |
Delete Collections | Use this notebook to delete collections from the database. | |
Data Feedback | Use this notebook to provide feedback on OC4IDS data. | |
Indicator Coverage | Use this notebook to calculate the coverage of the OC4IDS Indicators. | |
CoST IDS Coverage | Use this notebook to calculate the coverage of the CoST Infrastructure Data Standard (IDS), according to the CoST IDS to OC4IDS mapping. |
To open a notebook from a different branch, use Colab's Github browser to choose the notebook and branch you want to open.
Alternatively, you can use the Open in Colab browser extension (Chrome, Firefox) to add a button that, when clicked when viewing a Jupyter notebook on github, will open that notebook in Colab.
-
Open the notebook in Colab.
-
Make your changes in Colab, following the style guide for SQL statements.
-
Format any SQL code you add or edit using pgFormatter.
In Colab:
-
Click Edit -> Clear all outputs.
-
Remove any database credentials you entered into the notebook.
-
Click File -> Save a copy in Github.
-
Uncheck 'Include a link to Colaboratory'
-
Select your branch, enter a commit message and click OK.
-
Request a review from a helpdesk analyst.
-
If the reviewer requests changes, make the changes then repeat this step.
Once approved, you can merge your changes yourself.
For small changes, you can review the raw diff in the Github review interface.
For larger changes, you can review and comment on a visual diff by clicking the button. You need to authorize the app the first time you open it.