-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from labra/issue83
Issue83
- Loading branch information
Showing
53 changed files
with
1,129 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Guide for contributors | ||
|
||
This project follows a standard [fork and pull][fork-and-pull] model for accepting contributions via | ||
GitHub pull requests: | ||
|
||
0. [Pick (or report) an issue](#pick-or-report-an-issue) | ||
1. [Write code](#write-code) | ||
2. [Write tests](#write-tests) | ||
3. [Submit a pull request](#submit-a-pull-request) | ||
|
||
## Pick or report an issue | ||
|
||
We always welcome bug reports and feature requests—please don't feel like you need to have time to | ||
contribute a fix or implementation for your issue to be appreciated. | ||
|
||
## Write code | ||
|
||
We prefer functional programming for the code. | ||
|
||
* Code and comments should be formatted to a width no greater than 100 columns. | ||
* Files should not contain trailing spaces. | ||
* Imports should be sorted alphabetically. | ||
|
||
When in doubt, please run `sbt scalastyle` and let us know if you have any questions. | ||
|
||
## Write tests | ||
|
||
Shaclex uses [ScalaTest][scalatest] for testing. | ||
|
||
## Submit a pull request | ||
|
||
* Pull requests should be submitted from a separate branch (e.g. using | ||
`git checkout -b "username/fix-123"`). | ||
* In general we discourage force pushing to an active pull-request branch that other people are | ||
commenting on or contributing to, and suggest using `git merge master` during development. | ||
Once development is complete, use `git rebase master` and force push to [clean up the history][squash]. | ||
* The first line of a commit message should be no more than 72 characters long (to accommodate | ||
formatting in various environments). | ||
* Commit messages should general use the present tense, normal sentence capitalization, and no final | ||
punctuation. | ||
* If a pull request decreases code coverage more than by 2%, please file an issue to make sure that | ||
tests get added. | ||
|
||
This guide for contributors is inspired by [circe's guide](https://github.com/circe/circe/blob/master/CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Converter module | ||
|
||
Converts between ShEx and SHACL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Dependency Graphs module | ||
|
||
Checks if there are cycles in dependency graphs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# RBE (Regular Bag Expressions) implementation | ||
|
||
This module implements Regular Bag Expressions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Schema | ||
|
||
This module defines a generic Schema interface which can be used to validate elements. | ||
We provide two implementations of this interface, for ShEx and for SHACL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Server module | ||
|
||
This module implements a simple server based on the [http4s](http://http4s.org/) library. | ||
|
||
The server contains a simple REST API defined [here](https://github.com/labra/shaclex/blob/master/modules/server/src/main/scala/es/weso/server/APIService.scala) and a web service that calls the REST API. | ||
The web service has been implemented using [Twirl templates](https://www.playframework.com/documentation/2.6.x/ScalaTemplates) | ||
which are defined [in this folder](https://github.com/labra/shaclex/tree/master/modules/server/src/main/twirl/es/weso). | ||
Some parts of the web service are implemennted in plain Javascript [here](https://github.com/labra/shaclex/tree/master/modules/server/src/main/resources/staticviews/js). | ||
In the future, it would be better to replace that Javascript code by ScalaJs. | ||
|
||
The server is deployed at [shaclex](http://shaclex.validatingrdf.com). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SHACL implementation | ||
|
||
This module implements [SHACL](https://www.w3.org/TR/shacl/) on top of the [SRDF] interface so it can be used by [Apache Jena](https://jena.apache.org/) or [RDF4j](http://rdf4j.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Shape maps implementation | ||
|
||
Implementation of [shape maps](http://shex.io/shape-map/) which can be used to trigger validation. Although shape maps were defined by the ShEx community group they can also be used in SHACL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ShEx library | ||
|
||
ShEx 2.0 implementation. | ||
|
||
The implementation is defined in terms of the [SRDF](https://github.com/labra/shaclex/tree/master/modules/srdf) interface so it can work with both [Apache Jena](https://jena.apache.org/) and [RDF4j](http://rdf4j.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.