Rewrite Once, Validate Anywhere: Producing OWL-Aware SHACL Constraints (Extended Version)

Anouk Oudshoorn, Piotr Gorczyca, Dörthe Arndt
8/14/2026
cs.LOcs.AI

No confident code implementation found for this paper.

Abstract

The Shapes Constraint Language (SHACL) is a W3C recommendation to express syntactic constraints, called shapes, on RDF graphs. SHACL validators are used to test whether a given graph adheres to such a shape.

Show full abstract

However, RDF graphs often come with OWL ontologies, whose implicit knowledge needs to be taken into account. This is classically handled by first applying reasoning and then performing the constraint checking on the results, often using different technologies which makes the process inefficient and vulnerable for mistakes. To overcome this, we propose to internalise the OWL axioms in the SHACL constraints; we construct a rewriting which takes as input both shapes and an OWL EL$^-$ ontology -- a fragment of OWL EL restricting the usage of existential restrictions -- and produces SHACL constraints. This output can then be evaluated by any validator supporting SHACL core regardless of its reasoning support, while yielding the same results as the traditional approach. The implementation of our translation is evaluated both against applying state-of-the-art reasoners and validators consecutively, as against validators with built-in reasoning support. For our benchmark, we show that our approach is in general more efficient in finding violations compared to the sequential approach, thus providing a powerful tool which simplifies combining reasoning with validation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{oudshoorn2026rewrite,
  title  = {Rewrite Once, Validate Anywhere: Producing OWL-Aware SHACL Constraints (Extended Version)},
  author = {Anouk Oudshoorn and Piotr Gorczyca and Dörthe Arndt},
  year   = {2026},
  eprint = {2608.14104},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.14104v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.14104.svg)](https://codeofpaper.com/paper/2608.14104)

Discussion