Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.26 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.26 KB

Lyo Validation library

The library validates RDF resources against constraints defined either as SHACL or OSLC Resource Shapes.

Getting started

Add a dependency for the library:

<dependency>
    <groupId>org.eclipse.lyo</groupId>
    <artifactId>lyo-validation</artifactId>
    <version>${version.lyo}</version>
</dependency>

Start by reading the library's main interface class Validator on Javadoc.

You can also review the library's unit test cases that shows how to use this interface.

Finally, you can review the sample application, which shows 3 validation examples, where:

  • an RDF resource (jena model) is validated against a SHACL shape (another jena model).
  • An java object (representing an RDF resource) is validated against SHACL annotations defined on its Java class.
  • An java object (representing an RDF resource) is validated against OSLC annotations defined on its Java class.