arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1701.05699cs.DB
收藏

带否定项的图的起源图的有效计算

Efficiently Computing Provenance Graphs for Queries with Negation

Seokki Lee, Sven Koehler, Bertram Ludaescher, Boris Glavic

摘要:

解释为什么答案会出现在查询结果中,或者为什么结果中没有答案,对于许多应用程序都很重要,包括审计、调试数据和查询,以及回答关于数据的假设问题。这两类问题,即,为什么和为什么不起源,已经被广泛研究。在这项工作中,我们提出了第一个实用的方法来回答这些问题的查询否定(一阶查询)。我们的方法是基于重写的数据库规则(称为射击规则),捕获成功的规则推导的上下文内的数据库查询。我们扩展这种重写,以支持否定和捕获失败的推导,解释失踪的答案。给定一个(为什么或为什么不)出处问题,我们计算一个解释,即,与回答问题相关的出处部分。我们引入优化,如果我们可以确定它们不会成为给定问题的解释的一部分,则在早期修剪起源图的部分。我们提出了一个实现,运行在一个关系数据库使用SQL计算解释。我们的实验表明,我们的方法可扩展到大型实例,并显着优于早期的方法,该方法实例化的完整出处计算的解释。

英文摘要:

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 (first-order 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑