SHACL validator updates

New SHACL validator features are now available

04/09/2019

The Test Bed's RDF validation service based on SHACL shapes has been extended with additional features.

RDF

As of April 2019 the Test Bed offers a reusable SHACL validation service, allowing validation of RDF content by means of SHACL shapes. The validator can be used in a standalone manner by means of a configurable web user interface, a REST API or a SOAP web service API; or as part of broader conformance tests through the Test Bed.

Based on user feedback the validator has now been extended with additional features, specifically:

  • Support for validation through a command-line utility that can be used offline.
  • Support for a minimal user interface that can be used when embedding the validator within other web pages.

Command-line validation tool

All validators configured on the ISA² Test Bed now benefit automatically from a pre-configured command line utility that can be downloaded and used for offline validation. This offline tool offers an interesting alternative to the existing APIs allowing the validator to be used:

  • When networking restrictions prevent access to the validator's REST and SOAP web service APIs.
  • To simplify batch validation (e.g. for unit testing), where use of a command line tool supports easier scripting.

The tool for each supported validation "DOMAIN" is made available at "https://www.itb.ec.europa.eu/shacl-offline/DOMAIN/validator.jar" (click for the DCAT-AP, CPSV-AP and generic validator instances). The tool itself is a Java application bundled in an executable JAR file. To use it:

  1. Download the command line tool.
  2. Open a command prompt to the tool's folder.
  3. Launch java -jar validator.jar for usage instructions.
Validator command line tool

Additional information on how to use and access the SHACL command line validation tools is available in the relevant section of the RDF validation guide.

Minimal web user interface

Validators that expose a web user interface can now also be configured to support an alternate minimal version. The purpose of this minimal interface is to facilitate the validator being embedded in other web pages by providing a more compact presentation with limited styling.

Validator minimal UI

In terms of features, this minimal user interface offers the same capabilities as its richer counterpart, thus enhancing its reuse potential without compromising its usefulness. Information on how such a minimal interface can be enabled and used is available in the RDF validation guide.

 

The new features available for the Test Bed's SHACL validator continue to increase its capabilities and offer new ways of leveraging SHACL-based RDF validation. In addition, these updates show that feedback matters and is continuously taken on board to improve the Test Bed's available services. Visit our Joinup site and become a member to be part of the discussion and remain informed of further news.

Referenced solution

Login or create an account to comment.