NOTES

NOTES#

Todo

Remove this file after moving all info to the appropriate places.

Notes from the research and development process.

Resources#

Specifications:

Todo

Link these in the policies spec

Implementations:

Todo

These could be provided as extra information in an appendix.

Other:

Todo

Some of these might be good to put into the SHACL guide for policy writers.

pySHACL Usage#

pySHACL can be installed from PyPI:

pip install 'pyshacl[js]'
# or
pipx install 'pyshacl[js]'

It can be used to validate a data graph data.ttl against a SHACL shapes graph shapes.ttl like so:

pyshacl --metashacl --imports --js -s shapes.ttl data.ttl

The --metashacl flag validates the shapes graph, first. The --imports flag is required in order for pySHACL to resolve owl:imports properties. The --js flag enables JavaScript functionality.

pySHACL can also be used as a library.