No description
- Makefile 79.1%
- Shell 20.9%
This stops the checkvalidation (checkvalid / checkinvalid) target in the makefile, which globs for `*(in)valid.cfg.yaml` files, from calling `linkml validate` when no files match the pattern. Previously, if there were no *.invalid.cfg.yaml files, we still made it into the `@for ex in $</*invalid.cfg.yaml` loop (same for `*valid`) -- but with the glob expression verbatim, producing errors like this: "Invalid value for '--config': File 'src/flat-data/unreleased/validation/*.invalid.cfg.yaml' does not exist." It seems that make's wildcard function avoids the pitfall, while correctly expanding the globs when files are present. This is an alternative to a solution presented in #90, which excluded checkinvalid from checkvalidation. https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html |
||
|---|---|---|
| .forgejo/workflows | ||
| extra-docs | ||
| patches | ||
| src | ||
| tools | ||
| .codespellrc | ||
| .gitignore | ||
| .linkmllint.yaml | ||
| LICENSE | ||
| Makefile | ||
| mkdocs.yml | ||
| pyproject.toml | ||
| README.md | ||
INM-7 metadata model
WORK IN PROGRESS
How to...
Install (in a virtualenv)
pip install -r requirements.txt
Build docs:
make
Serve docs locally
mkdocs serve
Presently, this work require a patched linkml installation. The patch(es) are
listed in patches/. The script tools/patch_linkml documents how they need
to be applied. This script can be used to patch a local installation, and is
also executed in the actions that validate the included data models.
Acknowledgements
This work was funded by
- MKW-NRW: Ministerium für Kultur und Wissenschaft des Landes Nordrhein-Westfalen under the Kooperationsplattformen 2022 program, grant number: KP22-106A