Conjunctive queries with constraints: homomorphism, containment and rewriting

  • Authors:
  • Ali Kiani;Nematollaah Shiri

  • Affiliations:
  • Dept. of Computer Science and Software Engineering, Concordia University, Montreal, Quebec, Canada;Dept. of Computer Science and Software Engineering, Concordia University, Montreal, Quebec, Canada

  • Venue:
  • FoIKS'10 Proceedings of the 6th international conference on Foundations of Information and Knowledge Systems
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

While the complexity of containment of standard conjunctive queries is NP-complete, adding constraints changes the complexity to $\Pi^P_2$-complete. This is because in such cases, we need to consider a team of containment mappings to establish containment as opposed to considering a single containment mapping in the standard case. The situation is different when homomorphism property holds, where considering a single mapping is sufficient to establish containment. We identify new classes of conjunctive queries with constraints that satisfy homomorphism property. For each class, we introduce a set of polynomial membership tests. Based on this, we propose an algorithm for rewriting of conjunctive queries with linear arithmetic constraints for which homomorphism property holds.