SHACL Validation in the Presence of Ontologies: Semantics and Rewriting Techniques

Anouk Oudshoorn, Magdalena Ortiz, Mantas Simkus
7/16/2025
cs.LOcs.AI

No confident code implementation found for this paper.

Abstract

SHACL and OWL are two prominent W3C standards for managing RDF data. These languages share many features, but they have one fundamental difference: OWL, designed for inferring facts from incomplete data, makes the open-world assumption, whereas SHACL is a constraint language that treats the data as complete and must be validated under the closed-world assumption. The combination of both formalisms is very appealing and has been called for, but their semantic gap is a major challenge, semantically and computationally. In this paper, we advocate a semantics for SHACL validation in the presence of ontologies based on core universal models. We provide a technique for constructing these models for ontologies in the rich data-tractable description logic Horn-ALCHIQ. Furthermore, we use a finite representation of this model to develop a rewriting technique that reduces SHACL validation in the presence of ontologies to standard validation. Finally, we study the complexity of SHACL validation in the presence of ontologies, and show that even very simple ontologies make the problem EXPTIME-complete, and PTIME-complete in data complexity.

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{oudshoorn2025shacl,
  title  = {SHACL Validation in the Presence of Ontologies: Semantics and Rewriting Techniques},
  author = {Anouk Oudshoorn and Magdalena Ortiz and Mantas Simkus},
  year   = {2025},
  eprint = {2507.12286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.12286v2}
}

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/2507.12286.svg)](https://codeofpaper.com/paper/2507.12286)

Discussion