This project provides SHACL to validate metadata against the eCH-0200 Standard.
This project is work in progress. The functionality described in this README might not yet be implemented or not yet work as described.
ech-0200.shacl.ttl
: This file models the constraints defined in eCH-200 with the SHACL vocabularyexamples/
: This directory contains RDF Turtle files that can be used to testech-0200.shacl.ttl
. The conventions is that files ending with.valid.ttl
will validate and files einding with.fail.ttl
do not validate.
To use the Shapes to validate data you need a SHACL validator such as TopBraid SHACL API. With this validator you can validate RDF Turtle files as follows:
shaclvalidate -shapesfile ech-0200.shacl.ttl -datafile data.ttl
For example (from this directory):
shaclvalidate -shapesfile ech-0200.shacl.ttl -datafile .\examples\minimal.valid.ttl
This project is similar an partially based on the EU DCAT-AP SHACL constraint definitions.
While the eCH-0200 Specification is available in German and French the SHACL Shapes are documented in English to better allign with other Shape files and tools that are likely used together.
As prospective part of an eCH standard the code and documentations in this repository can be used, distributed and further developed without any restriction by patents or licenses.