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

保护否定(Guarded Negation)(完整版)

Queries with Guarded Negation (full version)

Vince Barany, Balder ten Cate, Martin Otto

摘要:

数据库理论中一个公认的基本观点是否定(也称为互补)往往会使查询难以处理和推理。许多基本问题是可判定的,并承认在联合查询的情况下,实用的算法,但变得困难,甚至不可判定的查询时,允许包含否定。受有限模型理论中最近结果的启发,我们考虑了否定的一种限制形式,即保护否定。我们介绍了一个片段的SQL,称为GN-SQL,以及一个片段的Datasheet与分层否定,称为GN-Datasheet,只允许守卫否定,我们表明,这些查询语言计算良好的行为,在测试查询包容,查询评估,开放世界的查询回答,和有界性。GN-SQL和GN-Datasheet继承了许多众所周知的查询语言和约束语言,例如合取查询的联合、一元数据库和边界保护的tgds。此外,对标准基准测试工作负载的分析表明,在实践中,SQL中否定的大多数用法都是保护性否定。

英文摘要:

A well-established and fundamental insight in database theory is that negation (also known as complementation) tends to make queries difficult to process and difficult to reason about. Many basic problems are decidable and admit practical algorithms in the case of unions of conjunctive queries, but become difficult or even undecidable when queries are allowed to contain negation. Inspired by recent results in finite model theory, we consider a restricted form of negation, guarded negation. We introduce a fragment of SQL, called GN-SQL, as well as a fragment of Datalog with stratified negation, called GN-Datalog, that allow only guarded negation, and we show that these query languages are computationally well behaved, in terms of testing query containment, query evaluation, open-world query answering, and boundedness. GN-SQL and GN-Datalog subsume a number of well known query languages and constraint languages, such as unions of conjunctive queries, monadic Datalog, and frontier-guarded tgds. In addition, an analysis of standard benchmark workloads shows that most usage of negation in SQL in practice is guarded negation.

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

↑