Home  Online Resources  Table of Contents

Journal of Logic and Computation, Volume 9, Issue 5, pp. 737-758: Abstract.

Declarative PTIME queries for relational databases using quantifier elimination

P Doherty1, W Lukaszewicz2,3 and A Szalas2,4

1Department of Computer and Information Science, Linköping University, Linköping, Sweden, E-mail: patdo@ida.liu.se, 2Institute of Informatics, Warsaw University, ul. Banacha 2, 02-097 Warsaw, Poland, 3E-mail: witlu@mimuw.edu.pl, 4E-mail: szalas@mimuw.edu.pl

In this paper, we consider the problem of expressing and computing queries on relational deductive databases in a purely declarative query language, called SHQL (Semi-Horn Query Language). Assuming the relational databases in question are ordered, we show that all SHQL queries are computable in PTIME (polynomial time) and the whole class of PTIME queries is expressible in SHQL. Although similar results have been proven for fixpoint languages and extensions to datalog, the claim is that SHQL has the advantage of being purely declarative, where the negation operator is interpreted as classical negation, mixed quantifiers may be used and a query is simply a restricted first-order theory not limited by the rule-based syntactic restrictions associated with logic programs in general. We describe the PTIME algorithm used to compute queries in SHQL which is based in part on quantifier elimination techniques and also consider extending the method to incomplete relational databases using intuitions related to circumscription techniques.

Keywords: Deductive databases, relational databases, query languages, second-order quantifier elimination

  Full-Text PDF  (209 KB)

[ Oxford University Press]   [ Oxford Journals]   [ Comments & Feedback]   Copyright© Oxford University Press, 1999.