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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Afrati, F., Li, C., Prasenjit, M.: Answering queries using views with arithmetic comparisons. In: Proceedings of the PODS 2002, pp. 209–220 (2002)
Afrati, F.N., Li, C., Mitra, P.: On containment of conjunctive queries with arithmetic comparisons. In: Bertino, E., Christodoulakis, S., Plexousakis, D., Christophides, V., Koubarakis, M., Böhm, K., Ferrari, E. (eds.) EDBT 2004. LNCS, vol. 2992, pp. 459–476. Springer, Heidelberg (2004)
Chandra, A.K., Merlin, P.M.: Optimal implementation of conjunctive queries in relational databases. In: Proceeding of the 9th Annual ACM Symp. on the Theory of Computing, pp. 77–90 (1977)
Gupta, A., Sagiv, Y., Ullman, J.D., Widom, J.: Constraint checking with partial information. In: Proceedings of the PODS 1994, pp. 45–55 (1994)
Ibarra, O.H., Su, J.: A technique for proving decidability of containment and equivalence of linear constraint queries. Journal of Computer and System Sciences 59(1), 1–28 (1999)
Kiani, A., Shiri, N.: Containment of conjunctive queries with arithmetic expressions. In: Proceedings of the 13th Int’l Conf. on Cooperative Information Systems (CoopIS), Agia Napa, Cyprus, pp. 439–452. Springer, Heidelberg (2005)
Kiani, A., Shiri, N.: Using patterns for faster and scalable rewriting of conjunctive queries. In: Proceedings of the 3rd Alberto Mendelzon International Workshop on Foundations of Data Management (2009)
Kiani, A., Shiri, N.: Answering queries in heterogenuous information systems. In: Proceedings of the ACM Workshop on Interoperability of Heterogeneous Information Systems, Bremen, Germany, November 4 (2005)
Klug, A.: On conjunctive queries containing inequalities. Journal of the ACM 35(1), 146–160 (1988)
Levy, A.Y., Rajaraman, A., Ordille, J.J.: Querying heterogeneous information sources using source descriptions. In: Proceedings of the 22nd VLDB Conf., pp. 251–262 (1996)
Pottinger, R., Levy, A.Y.: A scalable algorithm for answering queries using views. The VLDB Journal, 484–495 (2000)
Ullman Jeffrey, D.: Information integration using logical views. In: Afrati, F.N., Kolaitis, P.G. (eds.) ICDT 1997. LNCS, vol. 1186. Springer, Heidelberg (1996)
van der Meyden, R.: The complexity of querying indefinite data about linearly ordered domains. In: Proceedings of the PODS 1992, San Diego, CA, pp. 331–345 (1992)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2010 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kiani, A., Shiri, N. (2010). Conjunctive Queries with Constraints: Homomorphism, Containment and Rewriting. In: Link, S., Prade, H. (eds) Foundations of Information and Knowledge Systems. FoIKS 2010. Lecture Notes in Computer Science, vol 5956. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-11829-6_6
Download citation
DOI: https://doi.org/10.1007/978-3-642-11829-6_6
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-11828-9
Online ISBN: 978-3-642-11829-6
eBook Packages: Computer ScienceComputer Science (R0)