Skip to content

Exploration applying semantic web concepts to HEC-RAS model metadata.

License

Notifications You must be signed in to change notification settings

arc-pts/ffrd-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Exploration applying semantic web concepts to HEC-RAS model metadata.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published