Coder Social home page Coder Social logo

huygensing / shaclex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weso/shaclex

0.0 9.0 0.0 4.6 MB

SHACL/ShEx implementation

Home Page: http://labra.github.io/shaclex

License: MIT License

Scala 12.71% JavaScript 63.46% CSS 3.36% Shell 0.01% HTML 20.26% ANTLR 0.20% Makefile 0.01%

shaclex's Introduction

shaclex

SHACL and SHEX Implementation.

This project contains an implementation of SHACL and ShEx

Codacy Badge Build Status

Introduction

This project contains an implementation of SHACL and ShEx.

Both are implemented using the same underlying mechanism which is based on a purely functional approach.

Installation and compilation

The projects uses sbt for compilation as well as Java 1.8.

  • sbt test compiles and runs the tests

Usage

Once compiled, the program can be run as a command line tool. It is possible to run the program inside sbt as:

Validating RDF data with SHACL

Example:

sbt "run -d examples/shacl/good1.ttl --engine ShaClex"

Validating RDF with ShEx

Example:

sbt "run -e ShEx -s examples/shex/good1.shex --schemaFormat ShExC -d examples/shex/good1.ttl"

Interactive mode with sbt

It is usually faster to run the sbt command, which opens the interactive sbt shell and inside that shell, execute the different commands.

$ sbt
... several information about loading libraries
sbt> run -d examples/shacl/good1.ttl --engine ShaClex  

Binary mode

The fastest way to run Shaclex is to compile the code and generate a binary. The following command:

$ sbt universal:packageBin  

generates the file:

target/universal/shaclex-N.N.N.zip

which contains the compressed binary code.

Server mode

The --server option activates server mode.

sbt "run --server"

Implementation details

  • The engine is based on Monads using the cats library
  • The ShEx compact syntax parser
    is implemented using the following Antlr grammar (previous versions used Scala Parser Combinators) which is based on this grammar
  • JSON encoding and decoding uses the Json structure defined here and is implemented using Circe

More information

This project is a continuation of ShExcala which was focused on Shape Expressions only. In this project the underlying validation computation is based on Monad transformers.

Author

Contribution

Contributions are greatly appreciated. Please fork this repository and open a pull request to add more features or submit issues

shaclex's People

Contributors

labra avatar

Watchers

Ronald Haentjens Dekker avatar James Cloos avatar  avatar Gertjan Filarski avatar Rutger van Koert avatar Martijn Maas avatar Bas Doppen avatar  avatar  avatar

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.