Rewrite Once, Validate Anywhere: Producing OWL-Aware SHACL Constraints (Extended Version)
- URL: http://arxiv.org/abs/2608.14104v1
- Date: Fri, 14 Aug 2026 09:06:10 GMT
- Title: Rewrite Once, Validate Anywhere: Producing OWL-Aware SHACL Constraints (Extended Version)
- Abstract summary: The Shapes Constraint Language (SHACL) is a W3C recommendation to express syntactic constraints on RDF graphs.<n>We internalise the OWL axioms in the SHACL constraints and construct a rewriting which takes as input both shapes and OWL EL$-$ constraints.<n>This output can then be evaluated by any validator supporting SHACL core regardless of its reasoning support.
- Score: 0.0
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- 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.
Related papers
- Logic-Regularized Verifier Elicits Reasoning from LLMs [63.65875399266337]
We propose LOVER, an unsupervised verifier regularized by logical rules.<n>Lover treats theverifier as a binary latent variable, utilizinginternal activations and enforcing three logical constraints.<n>Lover significantly outperforms unsupervised baselines.
arXiv Detail & Related papers (2026-05-07T09:03:49Z) - Static Analysis of Recursive SHACL [5.161531917413707]
SHACL (Shapes Constraint Language) expresses constraints on RDF data by means of so-called shapes.<n>Our key technical contribution is a translation of SHACL under the well-founded semantics into the full hybrid mu-calculus.
arXiv Detail & Related papers (2026-05-04T16:29:29Z) - ReasonCACHE: Teaching LLMs To Reason Without Weight Updates [75.2707292367514]
We show that large language models (LLMs) can learn to reason without overloading the context window and without any weight updates.<n>We introduce ReasonCACHE, an instantiation of this mechanism that distills demonstrations into a fixed key-value cache.<n> Empirically, ReasonCACHE outperforms standard ICL and matches or surpasses IWL approaches.
arXiv Detail & Related papers (2026-02-02T17:24:23Z) - Uncovering Hidden Correctness in LLM Causal Reasoning via Symbolic Verification [56.51953062869371]
DoVerifier is a symbolic verifier that checks whether causal expressions are derivable from a given causal graph using rules from do-calculus and probability theory.<n>Our evaluations on synthetic data and causal QA benchmarks show that DoVerifier more accurately captures semantic correctness of causal reasoning traces.
arXiv Detail & Related papers (2026-01-29T03:22:58Z) - KBQA-R1: Reinforcing Large Language Models for Knowledge Base Question Answering [64.62317305868264]
We present textbfKBQA-R1, a framework that shifts the paradigm from text imitation to interaction optimization via Reinforcement Learning.<n>Treating KBQA as a multi-turn decision process, our model learns to navigate the knowledge base using a list of actions.<n>Experiments on WebQSP, GrailQA, and GraphQuestions demonstrate that KBQA-R1 achieves state-of-the-art performance.
arXiv Detail & Related papers (2025-12-10T17:45:42Z) - SHACL Validation under Graph Updates (Extended Paper) [6.755812289103844]
We present a SHACL-based update language that can capture intuitive and realistic modifications on RDF graphs.<n>This problem asks to verify whether every graph that validates a SHACL specification will still do so after applying a given update sequence.<n>We show that static validation can be reduced to (un)satisfiability of constraints in (a minor extension) SHACL.
arXiv Detail & Related papers (2025-07-31T19:58:16Z) - SHACL Validation in the Presence of Ontologies: Semantics and Rewriting Techniques [6.882042556551609]
SHACL is a constraint language that treats the data as complete and must be validated under the closed-world assumption.<n>We advocate a semantics for SHACL validation in the presence of major core universal models.<n>We show that even very simple features make the problem EXPTIME-complete, and PTIME-complete in data complexity.
arXiv Detail & Related papers (2025-07-16T14:38:27Z) - xpSHACL: Explainable SHACL Validation using Retrieval-Augmented Generation and Large Language Models [0.0]
Shapes Constraint Language (SHACL) is a powerful language for validating RDF data.<n>This paper presents XPSHACL, an explainable SHACL validation system.<n>It combines rule-based justification trees with retrieval-augmented generation (RAG) and large language models (LLMs) to produce detailed, multilanguage explanations for constraint violations.
arXiv Detail & Related papers (2025-07-11T09:18:41Z) - Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling [90.86991492288487]
evaluating constraint on every token can be prohibitively expensive.<n> LCD can distort the global distribution over strings, sampling tokens based only on local information.<n>We show that our approach is superior to state-of-the-art baselines.
arXiv Detail & Related papers (2025-04-07T18:30:18Z) - SHACL2FOL: An FOL Toolkit for SHACL Decision Problems [0.4895118383237099]
We introduce SHACL2FOL, the first automatic tool that translates SHACL documents into FOL sentences.
The tool computes the answer to the two static analysis problems of satisfiability and containment.
It also allow to test the validity of a graph with respect to a set of constraints.
arXiv Detail & Related papers (2024-06-12T09:20:25Z) - ConstraintChecker: A Plugin for Large Language Models to Reason on
Commonsense Knowledge Bases [53.29427395419317]
Reasoning over Commonsense Knowledge Bases (CSKB) has been explored as a way to acquire new commonsense knowledge.
We propose **ConstraintChecker**, a plugin over prompting techniques to provide and check explicit constraints.
arXiv Detail & Related papers (2024-01-25T08:03:38Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.