We investigate the query evaluation problem for fixed queries over fully dynamic databases where tuples can be inserted or deleted. The task is to design a dynamic data structure that can immediately report the new result of a fixed query after every database update. We consider unions of conjunctive queries (UCQs) and focus on the query evaluation tasks testing (decide whether an input tuple belongs to the query result), enumeration (enumerate, without repetition, all tuples in the query result), and counting (output the number of tuples in the query result).
We identify three increasingly restrictive classes of UCQs which we call t-hierarchical, q-hierarchical, and exhaustively q-hierarchical UCQs. Our main results provide the following dichotomies: If the query's homomorphic core is t-hierarchical (q-hierarchical, exhaustively q-hierarchical), then the testing (enumeration, counting) problem can be solved with constant update time and constant testing time (delay, counting time). Otherwise, it cannot be solved with sublinear update time and sublinear testing time (delay, counting time), unless the OV-conjecture and/or the OMv-conjecture fails.
We also study the complexity of query evaluation in the dynamic setting in the presence of integrity constraints, and we obtain according dichotomy results for the special case of small domain constraints (i.e., constraints which state that all values in a particular column of a relation belong to a fixed domain of constant size).
Certain Answers to a SPARQL Query over a Knowledge Base (extended version)
Free University of Bozen-Bolzano(博尔扎诺自由大学)
本体中介查询(OMQA)是一个完善的框架,用于回答RDFS或OWL知识库(KB)上的查询。OMQA最初是为联合查询(UCQ)设计的,并且基于某些答案。最近,OMQA已经扩展到SPARQL查询,但据我们所知,在这个方向上所做的努力(无论是在文献中,或所谓的SPARQL蕴涵制度)是能够捕捉到某些答案UCQ和SPARQL的标准解释在一个普通的图。我们将这些形式化为任何语义都要满足的要求,旨在调和某些答案和SPARQL答案,并定义了三个额外的要求,概括为知识库的SPARQL答案的一些基本属性。然后,我们表明,可以定义一个语义,满足所有要求SPARQL查询与SELECT,UNION和OPTIONAL,和DL与规范模型属性。我们还调查了在这样的语义DL-Lite R KB的查询回答的组合复杂性。特别是,我们表明不同的SPARQL片段,已知的上界查询回答一个普通的图相匹配。