mobilityDCAT-AP

mobilityDCAT-AP SHACL

MobilityDCAT uses the SHACL Shapes Constraint Language to encode the constraints to which datasets must adhere in order to be MobilityDCAT-compliant. This folder contains the SHACL shapes file as well as some *_examples.ttl-files that illustrate what both valid and invalid data look like.

Running an automated validation (Docker)

The .docker folder contains the necessary resources to build an image containing a basic validation setup using pySHACL.

Building the validation image:

docker build -f ./.docker/shacl-validation.Dockerfile -t mobilitydcat-shacl-validator .

Running a validation. This example validates the Belgian NAP catalog dataset.

docker run mobilitydcat-shacl-validator "https://transportdata.be/catalog.ttl" > shacl_validation_report.ttl