Affiliation:
1. State Univ. of New York at Stony Brook, Stony Brook
Abstract
A database query is
finite
if its result consists of a finite sets tuples. For queries formulated as sets of pure Horn rules, the problem of determining finiteness is, in general, undecidable.
In this paper, we consider
superfiniteness
—a stronger kind of finiteness, which applies to Horn queries whose function symbols are replaced by the abstraction of
infinite relations
with
finiteness constraints
(abbr., FC's). We show that superfiniteness is not only decidable but also
axiomatizable
, and the axiomatization yields an effective decision procedure. Although there are finite queries that are not superfinite, we demonstrate that superfinite queries represent an interesting and nontrivial subclass within the class of all finite queries.
The we turn to the issue of inference of finiteness constraints—an important practical problem that is instrumental in deciding if a query is evaluable by a bottom-up algorithm. Although it is not known whether FC-entailment is decidable for sets of function-free Horn rules, we show that
super-entailment
, a stronger form of entailment, is decidable. We also show how a decision procedure for super-entailment can be used to enhance tests for query finiteness.
Publisher
Association for Computing Machinery (ACM)
Subject
Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Modern Datalog Engines;Foundations and Trends® in Databases;2022
2. Datalog and Recursive Query Processing;Foundations and Trends® in Databases;2012
3. Datalog Programs over Infinite Databases, Revisited;Database Programming Languages