implementation of core SHACL (using proposed syntax)

I put together an implementation of core SHACL with my syntax proposal.  It is
available at https://github.com/pfps/shacl

There is a single python 2.7 file that can be called as
  python shacl.py data shapes
to validate the data graph against the shapes graph and print the validation
reports.

This implements my proposed syntax but there is also code that will handle
most of the differences between the two syntaxes.

This implementation is a pure transformation to SPARQL.  A SHACL shape is
transformed into a SPARQL query and the solutions in the result set are the
violations of the shape.

There are a few differences between this implementation and the current spec
besides the syntax differences.  There is no translation from the result set
to a graph.  The subject, predicate, and object come from where the violation
was detected.  Severities may be handled slightly differently.


peter

Received on Tuesday, 22 March 2016 17:23:25 UTC