Declarative PTIME queries for relational databases using quantifier elimination
Doherty, Patrick Lukaszewicz, Witold Szalas, Andrzej 1999 (English)In: Journal of logic and computation (Print), ISSN 0955-792X, E-ISSN 1465-363X, Vol. 9, no 5, 737-758Article in journal (Refereed) Published
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.
National CategoryComputer Science
IdentifiersURN: urn:nbn:se:liu:diva-41616DOI: 10.1093/logcom/9.5.737Local ID: 58394OAI: oai:DiVA.org:liu-41616DiVA: diva2:262470