Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.09 KB

File metadata and controls

29 lines (21 loc) · 1.09 KB

KWG-SHACL

This is the repository of SHACL shapes development/research for KWG.

Example usage in pySHACL

You can try the shacl validation on your knowledge graph using for example pySHACL.

pip install pyshacl
pyshacl -s https://github.com/KnowWhereGraph/KWG-SHACL/raw/refs/heads/main/shacl_sosa.ttl -m -i rdfs -a -f human data.ttl

Read more about pySHACL in pypi, short about the options used above:

-s is the path to the shapes graph to use
-m enable the meta-shacl feature
-i is the pre-inferencing option
-a enable SHACL Advanced Features
-f is the ValidationReport output format (human = human-readable validation report)

pySHACL returns a report to stdout with the validation result.