Node CLI to validate RDF
npm install @tpluscode/shacl-cliValidate RDF using SHACL from the command line. Uses RDF/JS tooling
* [x] Loads shapes and data graph from any RDF format known to @rdfjs/formats-common.
* [x] Requires only node. No JVM, no Python, etc
* [x] Easily load shapes and data from multiple sources using globs
```
npm install @tpluscode/shacl-cli
`
Usage: shacl-cli validate [options]
Options:
--shapes
--data
--prefixes
-h, --help display help for command
`
Validates multiple data files using multiple shape sources
``
shacl-cli validate \
--shapes example/shape/*.ttl \
--data example/person/*.ttl
Both --shapes and --data allow multiple values and can be used multiple times
``
shacl-cli validate \
--shapes example/shape/Person.ttl example/shape/Occupation.ttl \
--data example/person/John.ttl \
--data example/person/Frank.ttl
The output is a nicely formatted turtle. Add --prefixes to shorten URIs.
``
shacl-cli validate \
--shapes example/shape/*.ttl \
--data example/person/*.ttl \
--prefixes schema person=http://example.org/person/
```
shacl-cli validate \
--shapes example/shape/*.ttl \
--data example/person/multiple.trig