Validate RDF data
using Shex in java
NewsVersion 1.1a has been released on june 25 2018. It is avaible on maven and github.
Java demonstratorA java demonstrator can be download using this link.
ShExJava now uses the Commons RDF API and so support RDF4J, Jena, JSON-LD-Java, OWL API and Apache Clerezza. It can parse ShEx schema in the ShEcC, ShEJ, ShExR formats and can serialize a schema in ShExJ.
To validate data against a ShExSchema using ShExJava, you have two different algorithms:
- the refine algorithm: compute once and for all the typing for the whole graph
- the recursive algorithm: compute only the typing required to answer a validate(node,ShapeLabel) call and forget the results.
Examples of using the library on small examples can be found on the GitHub page. To play with small example, it's also possible to use the demonstrator that comes with a set of example.