This repository contains the examples shown in the SHACL-X docs, available at https://shacl-x.github.io/docs/.
The repository is organized as follows
data/
contains the data and shapes definitionweb/
contains the JavaScript/Py functions used in the shapes
The content of the web
directory is packed into an nginx
that is released as docker image through the GitHub Packages registry.
- Create the docker network
docker network create shacl-x
- Run the
shacl-x/examples
(nginx) containerdocker run --network="shacl-x" \ --name shacl-x-web \ -p 8080:80 \ ghcr.io/shacl-x/examples:latest
- Run the
shacl-x/shacl-x
container with thevalidate
commanddocker run --rm --network="shacl-x" --name shacl-x-engine \ -v ${PWD}/data:/data \ ghcr.io/shacl-x/shacl-x:latest validate \ -datafile /data/data.ttl \ -shapesfile /data/shapes.ttl