mlsanityData to 14 Oct 2026

xpSHACL: Explainable SHACL Validation using Retrieval-Augmented Generation and Large Language Models

arXiv 2507.08432 ↗First posted 11 Jul 2025cs.DB cs.CLcited by 2

On the map: Retrieval-augmented generation → Knowledge-graph and structured-knowledge RAG

Abstract (arXiv)

Shapes Constraint Language (SHACL) is a powerful language for validating RDF data. Given the recent industry attention to Knowledge Graphs (KGs), more users need to validate linked data properly. However, traditional SHACL validation engines often provide terse reports in English that are difficult for non-technical users to interpret and act upon. This paper presents xpSHACL, an explainable SHACL validation system that addresses this issue by combining rule-based justification trees with retrieval-augmented generation (RAG) and large language models (LLMs) to produce detailed, multilanguage, human-readable explanations for constraint violations. A key feature of xpSHACL is its usage of a Violation KG to cache and reuse explanations, improving efficiency and consistency.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Knowledge-graph and structured-knowledge RAG, one of 15 directions in Retrieval-augmented generation. Builds on 10 of its 39 references that are in the map. First posted on arXiv 11 Jul 2025.

Builds on

10 of 39 references.

References · 10

  1. 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoningcited by 328
  2. 2024The Good, The Bad, and The Greedy: Evaluation of LLMs Should Not Ignore Non-Determinismcited by 116
  3. 2024Knowledge Graph Enhanced Large Language Model Editingcited by 40
  4. 2020Knowledge Graph Embeddings and Explainable AIcited by 15
  5. 2021A Review of SHACL: From Data Validation to Schema Reasoning for RDF Graphscited by 7
  6. 2024On the Use of Large Language Models to Generate Capability Ontologiescited by 5
  7. 2018Reasoning over RDF Knowledge Bases using Deep Learningcited by 4
  8. 2024Generating Context-Aware Contrastive Explanations in Rule-based Systemscited by 3
  9. 2025Step-by-Step Data Cleaning Recommendations to Improve ML Prediction Accuracycited by 2
  10. 2023The Shape of Explanations: A Topological Account of Rule-Based Explanations in Machine Learningcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Benchmarking Large Language Models for Knowledge Graph Validation
  2. 2026Exploring Knowledge Conflicts for Faithful LLM Reasoning: Benchmark and Method
  3. 2024Traceable LLM-based validation of statements in knowledge graphs
  4. 2025PuzzleClone: A DSL-Powered Framework for Synthesizing Verifiable Data
  5. 2024StrucText-Eval: Evaluating Large Language Model's Reasoning Ability in Structure-Rich Text
  6. 2026Performance Evaluation of LLMs in Automated RDF Knowledge Graph Generation
  7. 2026π2: Structure-Originated Reasoning Data Improves Long-Context Reasoning Ability of Large Language Models
  8. 2026PIPE-RDF: An LLM-Assisted Pipeline for Enterprise RDF Benchmarking