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

πŸ“… 2026-08-14
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This study addresses the inefficiency and error-proneness arising from the separation of OWL reasoning and SHACL validation in RDF verification. We propose a rewriting mechanism that internalizes OWL EL⁻ axioms into SHACL constraints, thereby achieving ontology fusion through constraint transformation. This approach enables standard validators to verify implicit knowledge without additional reasoning, facilitating write-once, validator-agnostic OWL-aware validation. Benchmark evaluations demonstrate that our method significantly improves violation detection efficiency compared to traditional serial pipelines. By effectively resolving the integration challenges between reasoning and validation, this work offers a solution that is both universally applicable and superior in performance to existing approaches.
πŸ“ 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. 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.
Problem

Research questions and friction points this paper is trying to address.

SHACL
OWL
RDF validation
constraint checking
reasoning
Innovation

Methods, ideas, or system contributions that make the work stand out.

SHACL
OWL EL-
Constraint Rewriting
Reasoning Internalization
RDF Validation
πŸ”Ž Similar Papers
Anouk Oudshoorn
Anouk Oudshoorn
TU Wien
P
Piotr Gorczyca
Computational Logic Group, TU Dresden, Germany
D
DΓΆrthe Arndt
Computational Logic Group, TU Dresden, Germany; ScaDS.AI, Dresden/Leipzig, Germany