Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 2 KB

README.md

File metadata and controls

28 lines (24 loc) · 2 KB

shacl-validator

Node.js SHACL Valdiator

How to Use

  1. Clone into local directory
  2. Run npm install in project directory to install dependencies
  3. Run npm link to install runnable script
  4. Invoke validator, e.g. validate-shacl -d @test/data.ttl -s @test/shapes.ttl

Command Line Options

-e, --endpoint URL The URL for a SPARQL endpoint used to access named graphs or run queries.
Must be specified unless local files are used for both data and shapes.
-s, --shapes location The location of the SHACL shapes. If specified as @file, shapes will be read
from a local Turtle file. If specified as <graph>, the named graph will be
retrieved from the SPARQL endpoint. Otherwise, the actual argument is
interpreted as Turtle shapes.
-d, --data location The location of the data to be validated. If specified as @file, data will be
read from a local Turtle file. If specified as <graph>, the named graph
will be retrieved from the SPARQL endpoint. Otherwise, the actual argument is
interpreted as Turtle data. Cannot be specified if --query is provided.
-q, --query query Query to retrieve the data to be validated. If specified as @file, query will
be read from a local file. Otherwise, the actual argument is interpreted as
SPARQL query. Cannot be specified if --data is provided.
--help Print this usage guide.