🤖 AI Summary
This paper addresses the problem of static SHACL validation under dynamic RDF graph updates: given an initially SHACL-compliant RDF graph and a sequence of updates, determine whether the updated graph remains compliant. We formalize graph update operations within the SHACL validation framework for the first time and propose a regression-based static verification method—propagating the effect of updates backward to the initial state and reducing the problem to constraint satisfiability. Our approach supports both predictive validation and complexity analysis, covering multiple core SHACL fragments. Theoretical analysis establishes tight computational complexity bounds across these fragments; experimental evaluation on a prototype implementation confirms the method’s effectiveness and scalability. Our main contribution is the first update-aware static SHACL validation model, providing a formal foundation and practical tool for ensuring shape consistency in dynamic RDF data.
📝 Abstract
SHACL (SHApe Constraint Language) is a W3C standardized constraint language for RDF graphs. In this paper, we study SHACL validation in RDF graphs under updates. We present a SHACL-based update language that can capture intuitive and realistic modifications on RDF graphs and study the problem of static validation under such updates. This problem asks to verify whether every graph that validates a SHACL specification will still do so after applying a given update sequence. More importantly, it provides a basis for further services for reasoning about evolving RDF graphs. Using a regression technique that embeds the update actions into SHACL constraints, we show that static validation under updates can be reduced to (un)satisfiability of constraints in (a minor extension of) SHACL. We analyze the computational complexity of the static validation problem for SHACL and some key fragments. Finally, we present a prototype implementation that performs static validation and other static analysis tasks on SHACL constraints and demonstrate its behavior through preliminary experiments.