Static Analysis of Recursive SHACL

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Oudshoorn, Anouk, Ortiz, Magdalena, Simkus, Mantas
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910189382270976
author Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
author_facet Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
contents SHACL (Shapes Constraint Language) expresses constraints on RDF data by means of so-called shapes. Its central service is validation: verifying whether a data graph complies with a SHACL document. But so far, there are no static analysis services to compare documents. In this paper, we study the following problem: decide whether all graphs that validate one SHACL document also validate another. Unlike previous works that have considered the implication of shape expressions only, we consider documents comprising (recursive) shape definitions and targets. We show that implication (a.k.a. containment) is undecidable under the supported and the stable model semantics, even for the fragment that uses the description logic ALCIO for shape expressions. Under the well-founded semantics, in surprising contrast, it is decidable in single exponential time. Our key technical contribution is a translation of SHACL under the well-founded semantics into the full hybrid mu-calculus, revealing a novel link between well-founded models and a fixed point modal logic, and a worst-case optimal automata-based decision procedure.
format Preprint
id arxiv_https___arxiv_org_abs_2605_02787
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Static Analysis of Recursive SHACL
Oudshoorn, Anouk
Ortiz, Magdalena
Simkus, Mantas
Logic in Computer Science
Artificial Intelligence
SHACL (Shapes Constraint Language) expresses constraints on RDF data by means of so-called shapes. Its central service is validation: verifying whether a data graph complies with a SHACL document. But so far, there are no static analysis services to compare documents. In this paper, we study the following problem: decide whether all graphs that validate one SHACL document also validate another. Unlike previous works that have considered the implication of shape expressions only, we consider documents comprising (recursive) shape definitions and targets. We show that implication (a.k.a. containment) is undecidable under the supported and the stable model semantics, even for the fragment that uses the description logic ALCIO for shape expressions. Under the well-founded semantics, in surprising contrast, it is decidable in single exponential time. Our key technical contribution is a translation of SHACL under the well-founded semantics into the full hybrid mu-calculus, revealing a novel link between well-founded models and a fixed point modal logic, and a worst-case optimal automata-based decision procedure.
title Static Analysis of Recursive SHACL
topic Logic in Computer Science
Artificial Intelligence
url https://arxiv.org/abs/2605.02787