Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.04 KB

eye-shacl

A SHACL implementation using the EYE reasoner.

Installation

Install the eye reasoner, download the dist folder and use the bash scripts like in the following examples.

Usage

# validate data.ttl against shapes.ttl
./eye-shacl.sh shapes.ttl data.ttl

Since the shapes are first compiled into rules, you can compile them once:

./eye-shacl-compile.sh shapes.ttl > shapes.n3

and reuse multiple times:

./eye-shacl-validate.sh shapes.n3 data1.ttl
./eye-shacl-validate.sh shapes.n3 data2.ttl

Online resources are allowed as input, like in the following example from the official test suite:

./eye-shacl.sh \
https://raw.githubusercontent.com/w3c/data-shapes/gh-pages/data-shapes-test-suite/tests/core/complex/personexample.ttl \
https://raw.githubusercontent.com/w3c/data-shapes/gh-pages/data-shapes-test-suite/tests/core/complex/personexample.ttl