Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.27 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.27 KB

ffrd-metadata

Exploratory project applying semantic web concepts to HEC-RAS model metadata. This project helps advance FEMA's Future of Flood Risk Data (FFRD) initiative by providing a proof of concept for a metadata standard that can be used to describe HEC-RAS models.

Setup

Requires Python 3.10+.

pyenv users can leverage the included .python-version file to install the correct version of Python:

$ pyenv install

Create a virtual environment and install dependencies:

$ python -m venv venv-ffrd-metadata
$ source venv-ffrd-metadata/bin/activate
(venv-ffrd-metadata) $ pip install -r requirements.txt

Generate RDF data for the example Kanawha watershed

The script referenced below will generate the file ./kanawha/kanawha.ttl:

(venv-ffrd-metadata) $ python ./scripts/create_kanawha_metadata.py

Jupyter Notebook

A Jupyter notebook is included to demonstrate how to use the RDF data generated by the script above. The notebook can be run using the following command:

(venv-ffrd-metadata) $ jupyter lab ./notebooks/ffrd-metadata-demo.ipynb

A script is also included to convert the notebook to a static HTML file (./mill/ffrd-metadata-demo.html):

(venv-ffrd-metadata) $ cd ./notebooks
(venv-ffrd-metadata) $ python ./nb-to-html.py