Skip to main navigation Skip to search Skip to main content

Preference queries in deductive databases

  • Hewlett-Packard
  • Communications and Software Services Group

Research output: Contribution to journalArticlepeer-review

29 Scopus citations

Abstract

Traditional database query languages such as datalog and SQL allow the user to specify only mandatory requirements on the data to be retrieved from a database. In many applications, it may be natural to express not only mandatory requirements but also preferences on the data to be retrieved. Lacroix and Lavency10) extended SQL with a notion of preference and showed how the resulting query language could still be translated into the domain relational calculus. We explore the use of preference in databases in the setting of datalog. We introduce the formalism of preference datalog programs (PDPs) as preference logic programs without uninterpreted function symbols for this purpose. PDPs extend datalog not only with constructs to specify which predicate is to be optimized and the criterion for optimization but also with constructs to specify which predicate to be relaxed and the criterion to be used for relaxation. We can show that all of the soft requirements in Reference10) can be directly encoded in PDP. We first develop a naively-pruned bottom-up evaluation procedure that is sound and complete for computing answers to normal and relaxation queries when the PDPs are stratified, we then show how the evaluation scheme can be extended to the case when the programs are not necessarily stratified, and finally we develop an extension of the magic templates method for datalog14) that constructs an equivalent but more efficient program for bottom-up evaluation.

Original languageEnglish
Pages (from-to)57-86
Number of pages30
JournalNew Generation Computing
Volume19
Issue number1
DOIs
StatePublished - 2001

Keywords

  • Bottom-up evaluation
  • Database query language
  • Datalog
  • Preferences and constraints
  • Relaxation queries

Fingerprint

Dive into the research topics of 'Preference queries in deductive databases'. Together they form a unique fingerprint.

Cite this