Giter Club home page Giter Club logo

eye-shacl's Introduction

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

eye-shacl's People

Contributors

giacomociti avatar

Stargazers

Tomasz Pluskiewicz avatar Cristian Vasquez avatar

Watchers

Cristian Vasquez avatar  avatar

eye-shacl's Issues

Ignored sh:flags

The optional parameter sh:flags is ignored.
Apparently, there is no eye built-in capable of interpreting its values.
As a consequence, the following tests from the official suite fails:

  • core/node/pattern-002.ttl
  • core/property/pattern-002.ttl

Parsing error for ill-typed literals

An error is raised by the eye reasoner when trying to parse ill-typed literals like "aldi"^^xsd:integer.

As a consequence, the following tests from the official suite fails:

  • core/node/datatype-001.ttl
  • core/property/datatype-ill-formed.ttl
  • core/property/or-datatypes-001.ttl

Duplicate results

According to the spec:

each time a property shape is reached via sh:property, a validation engine MUST produce fresh validation result nodes. This includes cases where the same focus node is validated against the same property shape although it is reached via different paths in the shapes graph

The following tests likely fail for the above reason:

  • core/property/lessThan-002.ttl
  • core/property/property-001.ttl
  • core/validation-reports/shared.ttl

Date offset issue

The following test:

  • core/node/minInclusive-003.ttl

fails due to a strange date offset issue (to be further investigated).

Shared result paths

The following official tests fail:

  • core/path/path-alternative-001.ttl
  • core/path/path-complex-001.ttl
  • core/path/path-complex-002.ttl
  • core/path/path-inverse-001.ttl
  • core/path/path-oneOrMore-001.ttl

due to a minor issue with the validation report.
According to test requirements:

the blank node structures representing property paths via sh:resultPath must not be shared among multiple results, i.e. they may need to be cloned prior to comparison

The needed cloning is not performed, causing test failures.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.