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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Oudshoorn, Anouk, Ortiz, Magdalena, Simkus, Mantas
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911385641811968
author Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
author_facet Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12286
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SHACL Validation in the Presence of Ontologies: Semantics and Rewriting Techniques
Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
Logic in Computer Science
Artificial Intelligence
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.
title SHACL Validation in the Presence of Ontologies: Semantics and Rewriting Techniques
topic Logic in Computer Science
Artificial Intelligence
url https://arxiv.org/abs/2507.12286