Contains the raw metadata files of FAIR hybrid models, as well as the source code of the library website for the ETH ORD Explore project FRAME.
The existing models' and components' metadata files are all stored in backend/api/metadata_files/
. To contribute with your own metadata, follow these steps.
- Python 3.10 or higher
- Poetry (
pip install poetry
) - Make
To add new hybrid model or component metadata to the FRAME library, follow these steps:
- Fork and clone the repository.
- Setup the development environment. This will enable automatic formatting and validation of metadata files.
make install
- Add or edit metadata files in the
backend/api/metadata_files/
directory. The files must follow the providedbackend/api/metadata_files/schema.json
. Be sure to add this header on top of your.yaml
for your text editor to provide you with error checks and hints:
# yaml-language-server: $schema=schema.json
- Check the validity of the metadata files.
make test
- Commit your changes. Metadata files will be re-formatted automatically (line breaks, white spaces...).
- Push your changes to your fork and create a pull request to the
main
branch of the original repository.
Follow these instructions to run the FRAME website locally and see your changes before deploying.
In one shell, run:
make install # Only once
make run-backend
In another shell, run:
make run-frontend
The website will be available at http://localhost:9000.