weso / shaclex

SHACL/ShEx implementation
http://weso.github.io/shaclex
MIT License
76 stars 17 forks source link

Support to examples definitions #51

Open labra opened 6 years ago

labra commented 6 years ago

Shex.js implementation parses example definitions defined as JSON files which can dynamically be loaded and tried. An example is this.

The structure is this:

{ "name": "bibframe book",
  "schemaURL": "book.shex",
  "passes": [  ],
  "fails": [  ] 
}

where passes[] and fails[] are arrays of data/shapemap:

{"name": "simple",
 "dataURL": "book.ttl",
 "queryMap": "<samples9298996>@<Work>" 
}

One missing property is the schemaEngine so it could be either ShEx, SHACL, or whatever.

labra commented 6 years ago

A first attempt has been done but there was a change in the format of the JSON file.

Eric suggested a dynamic menu whose contents are generated from the JSON file.