Containment of Conjunctive Queries with Safe Negation

  • Authors:
  • Fang Wei;Georg Lausen

  • Affiliations:
  • -;-

  • Venue:
  • ICDT '03 Proceedings of the 9th International Conference on Database Theory
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

We consider the problem of query containment for conjunctive queries with safe negated subgoals (CQ卢s). We propose a new method for the containment test of CQ卢s. Comparing to the previous known approach, which always requires an exponential number of canonical databases to be verified to prove that Q1 驴 Q2, the algorithm proposed in this paper exploits the containment mappings of their positive counterparts, and terminates once the specified test succeeds. We show that in the worst case, the algorithm has the same performance as the one proposed in previous work. We also extend our algorithm to unions of CQ卢s in a natural way. Due to the close relation between query containment and answering queries using views, we give some notes on considering answering queries using views when both queries and views have safe negated subgoals.