Skip to content
lyo validation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
model
src
.gitignore
.travis.yml
LICENSE
LICENSE.EDL
README.md
pom.xml
representations.aird

README.md

Lyo Validation library

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

Getting started

Add the following repository to your POM file:

<repositories>
    <repository>
        <id>lyo-releases</id>
        <name>Eclipse Lyo Releases</name>
        <url>https://repo.eclipse.org/content/repositories/lyo-releases/</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

Now add a dependency for the library:

<dependency>
    <groupId>org.eclipse.lyo</groupId>
    <artifactId>lyo-validation</artifactId>
    <version>2.3.0</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.
You can’t perform that action at this time.