Computing How-Provenance for SPARQL Queries via Query Rewriting
Daniel Hernández, Luis Galárraga, Katja Hose
Abstract
Over the past few years, we have witnessed the emergence of large knowledge graphs built by extracting and combining information from multiple sources. This has propelled many advances in query processing over knowledge graphs, however the aspect of providing provenance explanations for query results has so far been mostly neglected. We therefore propose a novel method, SPARQLprov, based on query rewriting, to compute how-provenance polynomials for SPARQL queries over knowledge graphs. Contrary to existing works, SPARQLprov is system-agnostic and can be applied to standard and already deployed SPARQL engines without the need of customized extensions. We rely on spm-semirings to compute polynomial annotations that respect the property of commutation with homomorphisms on monotonic and non-monotonic SPARQL queries without aggregate functions. Our evaluation on real and synthetic data shows that SPARQLprov over standard engines incurs an acceptable runtime overhead w.r.t. the original query, competing with state-of-the-art solutions for how-provenance computation.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers4
- FaDE: More Than a Million What-ifs Per SecondHaneen Mohammed, Eugene Wu, Alexander Yao, Charlie Summers et al.VLDB 2025 · 6 citations
- NPCS: Native Provenance Computation for SPARQLZubaria Asma, Daniel Hernández, Luis Galárraga, Giorgos Flouris et al.WWW 2024 · 4 citations
- Computing Why-Provenance for Property Graph QueriesKoumudi Ganepola, Maxime Jakubowski, Katja HoseVLDB 2026
- Bolt-on, Verifiable Provenance for LLM-Powered Data ProcessingYiming Lin, Sepanta Zeighami, Aditya G. ParameswaranVLDB 2026
Related papers
- SPOT: Zero-Shot Semantic Parsing Over Property GraphsFrancesco Cazzaro, Justin Kleindienst, Sofia Márquez Gomez, Ariadna QuattoniACL Findings 2025 · 1 citation
- FedUP: Querying Large-Scale Federations of SPARQL EndpointsJulien Aimonier-Davat, Brice Nédelec, Minh Hoang Dang, Pascal Molli et al.WWW 2024 · 5 citations
- Equivalence-Invariant Algebraic Provenance for Hyperplane Update QueriesPierre Bourhis, Daniel Deutch, Yuval MoskovitchSIGMOD 2020 · 6 citations
- Aggregate Queries on Knowledge Graphs: Fast Approximation with Semantic-aware SamplingYuxiang Wang, Arijit Khan, Xiaoliang Xu, Jiahui Jin et al.ICDE 2022 · 20 citations
- Transforming RDF Graphs to Property Graphs using Standardized SchemasKashif Rabbani, Matteo Lissandrini, Angela Bonifati, Katja HoseSIGMOD 2025 · 13 citations
