This is an extension of the DCAT Application Profile in LinkML. It is intended to be used by NFDI4Chem & NFDI 4Cat as a core that can further be extended in profiles to provide domain specific metadata for a dataset.
https://StroemPhi.github.io/dcat-4C-ap
- examples/ - example data
- project/ - project files (do not edit these)
- src/ - source files (edit these)
- tests/ - Python tests
Requirements:
- Poetry must be installed
pipx install poetry
make setup
to install Poetry env- If you want you could run
poetry run python src/dcat-ap_shacl_2_linkml.py
to recreate the dcat-ap.yaml from the dcat-ap-SHACL.jsonld - To build the docs locally run:
poetry run gen-doc -d docs "src/dcat_4C_ap/schema/dcat-ap.yaml" --template-directory "src/docgen/" && poetry run mkdocs serve
- Use another LinkML YAML in
src
if you want to build the docs of a profile.
- Use another LinkML YAML in
- To validate the test dataset against the model you can use:
poetry run linkml-convert -t ttl src/data/examples/Dataset-001_dcat-ap.yaml -s src/dcat_4C_ap/schema/dcat-ap.yaml -P "_base=https://search.nfdi4chem.de/dataset/" -C Dataset
Use the `make` command to generate project artefacts:
make all
: make everythingmake deploy
: deploys site
This project was made with linkml-project-cookiecutter.