We consider answering queries on data available through access methods, that provide lookup access to the tuples matching a given binding. Such interfaces are common on the Web; further, they often have bounds on how many results they can return, e.g., because of pagination or rate limits. We thus study result-bounded methods, which may return only a limited number of tuples. We study how to decide if a query is answerable using result-bounded methods, i.e., how to compute a plan that returns all answers to the query using the methods, assuming that the underlying data satisfies some integrity constraints. We first show how to reduce answerability to a query containment problem with constraints. Second, we show "schema simplification" theorems describing when and how result-bounded services can be used. Finally, we use these theorems to give decidability and complexity results about answerability for common constraint classes.
翻译:我们考虑通过访问方法回答关于可用数据的问题,通过访问方法提供对与给定约束匹配的图例的访问访问。这种界面在网上是常见的;此外,这些界面往往有关于他们可以返回多少结果的界限,例如由于页数或费率的限制。因此我们研究受结果限制的方法,这些方法可能只返回有限的图例。我们研究如何使用受结果限制的方法来决定查询是否可以回答,即如何计算一个计划,在假设基本数据符合某些完整性限制的情况下,将所有答案都返回到使用方法的查询中。我们首先展示如何减少对受限制的查询限制问题的可回答性。第二,我们展示“系统简化”的标语,说明何时以及如何使用受结果限制的服务。最后,我们用这些标语来给共同约束类的可回答性提供可决定性和复杂的结果。