Skip to content

Validation Suite

validation_suite.py is the orchestrator for all checks.

Run All Checks

python3 -m src.tools.validators.validation_suite --run all

Run a Single Check

python3 -m src.tools.validators.validation_suite --run check-data-conformance --domain hdmap

Data Paths Mode

Use --data-paths to validate arbitrary files. Fixtures are auto-discovered from referenced IRIs:

python3 -m src.tools.validators.validation_suite --data-paths path/to/data.jsonld

Multiple files or directories can be provided:

python3 -m src.tools.validators.validation_suite --data-paths file1.json file2.json ./directory/

External Artifacts

Use --artifacts to register external artifact directories (for schema resolution):

python3 -m src.tools.validators.validation_suite --data-paths ./data.json --artifacts ../other-repo/artifacts

Inference Mode

Control RDFS/OWL inference with --inference-mode:

python3 -m src.tools.validators.validation_suite --domain hdmap --inference-mode owlrl

Options: rdfs (default), owlrl, none, both

Check Types

  • check-syntax — JSON/Turtle well-formedness
  • check-artifact-coherence — SHACL targets exist in OWL (domain mode only)
  • check-data-conformance — SHACL validation of instance data
  • check-failing-tests — Invalid data fails as expected (domain mode only)
  • all — Run all applicable checks