一句话:为数据交换与信息集成建立 bag(多重集)语义基础,并揭示其导致计算复杂性的上升。
数据库理论长期在集合语义下研究信息集成与数据交换,但 SQL 实际采用 bag(多重集)语义,造成理论与实践脱节。本文为 GLAV 映射以及数据交换和数据集成中合取查询的 certain answers 给出严格的 bag 语义,并引入两种版本:分别对应 bag 的 maximum-based union 与 sum-based union。作者随后证明多项技术结果,包括 bag 语义下合取查询 certain answers 的计算复杂度,以及两种 bag 语义下 universal solutions 的存在性与可计算性。结果表明,采用更贴近实际的语义需要付出代价:一些在集合语义下可 tractable 的数据交换与信息集成算法问题,在 bag 语义下变为 intractable。
During the past several decades, the database theory community has successfully investigated several different facets of the principles of database systems, including the development of various data models, the systematic exploration of the expressive power of database query languages, and, more recently, the study of the foundations of information integration via schema mappings. For the most part, all these investigations have been carried out under set semantics, that is, both the database relations and the answers to database queries are sets. In contrast, SQL deploys bag (multiset) semantics and, as a result, theory and practice diverge at this crucial point. Our main goal in this paper is to embark on the development of the foundations of information integration under bag semantics, thus taking the first step towards bridging the gap between theory and practice in this area. Our first contribution is conceptual, namely, we give rigorous bag semantics to GLAV mappings and to the certain answers of conjunctive queries in the context of data exchange and data integration. In fact, we introduce and explore two different versions of bag semantics that, intuitively, correspond to the maximum-based union of bags and to the sum-based union of bags. After this, we establish a number of technical results, including results about the computational complexity of the certain answers of conjunctive queries under bag semantics and about the existence and computation of universal solutions under these two versions of bag semantics. Our results reveal that the adoption of more realistic semantics comes at a price, namely, algorithmic problems in data exchange and data integration that were tractable under set semantics become intractable under bag semantics.