Back to Search
Start Over
A SQL-Middleware Unifying Why and Why-Not Provenance for First-Order Queries
- Source :
- ICDE
- Publication Year :
- 2017
- Publisher :
- IEEE, 2017.
-
Abstract
- Explaining why an answer is in the result of a query or why it is missing from the result is important for many applications including auditing, debugging data and queries, and answering hypothetical questions about data. Both types of questions, i.e., why and why-not provenance, have been studied extensively. In this work, we present the first practical approach for answering such questions for queries with negation (firstorder queries). Our approach is based on a rewriting of Datalog rules (called firing rules) that captures successful rule derivations within the context of a Datalog query. We extend this rewriting to support negation and to capture failed derivations that explain missing answers. Given a (why or why-not) provenance question, we compute an explanation, i.e., the part of the provenance that is relevant to answer the question. We introduce optimizations that prune parts of a provenance graph early on if we can determine that they will not be part of the explanation for a given question. We present an implementation that runs on top of a relational database using SQL to compute explanations. Our experiments demonstrate that our approach scales to large instances and significantly outperforms an earlier approach which instantiates the full provenance to compute explanations.
- Subjects :
- SQL
Theoretical computer science
Relational database
Computer science
media_common.quotation_subject
Context (language use)
0102 computer and information sciences
02 engineering and technology
01 natural sciences
Datalog
Debugging
Negation
010201 computation theory & mathematics
0202 electrical engineering, electronic engineering, information engineering
Graph (abstract data type)
020201 artificial intelligence & image processing
Rewriting
computer
media_common
computer.programming_language
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- 2017 IEEE 33rd International Conference on Data Engineering (ICDE)
- Accession number :
- edsair.doi...........6e000c38fd1c17f809ea815d9a9fb27a
- Full Text :
- https://doi.org/10.1109/icde.2017.105