Setup python environment and install packages from pyproject.toml.
Copy all files which shall be validated into folder files
.
Run python main.py
to validate files against validation description present in folder validations
.
You can use module "infer.py" in order to try to create validation file from a file.
If inferring metadata worked, you must adapt inferred validation file as follows (see nrb.json
as example reference):
- Move metadata into a new list under new key
resources
- Remove key
type
, instead add key-value-pair"profile": "tabular-data-resource"
- Test validation using
main.py