Giter Site home page Giter Site logo

shexkell's Introduction

shexkell

ShEx implementation in Haskell

Environment

Clone the repo and cd to it. In order to build the development environment:

$ stack setup
$ stack build

This will download all the necessary dependencies for the project

Running Shexkell

Shexkell comes with a Command Line Interface to validate nodes of a given graph agains a given schema, with a given Shape Map. To run it, pass the folowing arguments to the executable:

$ shexkell -map <Shape Map path> -rdf <graph path> -shex <ShEx schema path>

The following flags can be added to specify the format of the files:

  • --compact Parse the ShEx schema as ShExC
  • --json Parse the ShEx schema as JSONLD (ShExJ)

Test suite

Unit tests

To run the unit tests:

$ stack test

Compatibility tests

To run the compatibility tests you must download the test suite and reference it in a configuration file with the format:

{
  "basePath": "/home/sergio/foo/shexTest",
  "manifestPath": "manifest.jsonld",
  "casesToRun": [
    "#1dot_fail-missing"
  ]
}
  • The field "basePath" specifies the base path of the test suite
  • The field "manifestPath" specifies the name of the manifest file to load
  • The field "casesToRun" specifies the IDs of the test cases to run as referenced in the manifest. If the field is not present, all cases are run

After saving the configuration file, run:

$ stack test --test-arguments='--compat testsConfig.json'

shexkell's People

Contributors

labra avatar sergioifg94 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

tonicebrian

shexkell's Issues

Command line options

Implement command line arguments parser to allow at least the following options:

  • ShEx format
  • RDF format

Top level error handling

User an Either monad in the top level validation to yield information about possible validation errors

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.