Skip to main content

On Answering Queries in the Presence of Limited Access Patterns

  • Conference paper
  • First Online:
Database Theory — ICDT 2001 (ICDT 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1973))

Included in the following conference series:

Abstract

In information-integration systems, source relations often have limitations on access patterns to their data; i.e., when one must provide values for certain attributes of a relation in order to retrieve its tuples. In this paper we consider the following fundamental problem: can we compute the complete answer to a query by accessing the relations with legal patterns? The complete answer to a query is the answer that we could compute if we could retrieve all the tuples from the relations. We give algorithms for solving the problem for various classes of queries, including conjunctive queries, unions of conjunctive queries, and conjunctive queries with arithmetic comparisons. We prove the problem is undecidable for datalog queries. If the complete answer to a query cannot be computed, we often need to compute its maximal answer. The second problem we study is, given two conjunctive queries on relations with limited access patterns, how to test whether the maximal answer to the first query is contained in the maximal answer to the second one? We show this problem is decidable using the results of monadic programs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. F. N. Afrati, M. Gergatsoulis, and T. G. Kavalieros. Answering queries using materialized views with disjunctions. In ICDT, pages 435–452, 1999.

    Google Scholar 

  2. C. Beeri and R. Ramakrishnan. On the power of magic. In PODS, pages 269–283, 1987.

    Google Scholar 

  3. D. Calvanese, G. D. Giacomo, M. Lenzerini, and M. Y. Vardi. Query answering using views for data integration over the Web. WebDB, pages 73–78, 1999.

    Google Scholar 

  4. A. K. Chandra and P. M. Merlin. Optimal implementation of conjunctive queries in relational data bases. STOC, pages 77–90, 1977.

    Google Scholar 

  5. S. Chaudhuri and M. Y. Vardi. On the equivalence of recursive and nonrecursive datalog programs. In PODS, pages 55–66, 1992.

    Google Scholar 

  6. S. S. Cosmadakis, H. Gaifman, P. C. Kanellakis, and M. Y. Vardi. Decidable optimization problems for database logic programs. STOC, pages 477–490, 1988.

    Google Scholar 

  7. O. M. Duschka. Query planning and optimization in information integration. Ph.D. Thesis, Computer Science Dept., Stanford Univ., 1997.

    Google Scholar 

  8. O. M. Duschka and A. Y. Levy. Recursive plans for information gathering. In IJCAI, 1997.

    Google Scholar 

  9. D. Florescu, A. Levy, I. Manolescu, and D. Suciu. Query optimization in the presence of limited access patterns. In SIGMOD, pages 311–322, 1999

    Google Scholar 

  10. H. Gaifman, H. G. Mairson, Y. Sagiv, and M. Y. Vardi. Undecidable optimization problems for database logic programs. Journal of the ACM, pages 6837 13, 1993

    Google Scholar 

  11. A. Gupta, Y. Sagiv, J. D. Ullman, and J. Widom. Constraint checking with partial information. In PODS, pages 45–55, 1994

    Google Scholar 

  12. A. Klug. On conjunctive queries containing inequalities. Journal of the ACM, 35(1):146–160, January 1988.

    Article  MATH  MathSciNet  Google Scholar 

  13. A. Y. Levy. Obtaining complete answers from incomplete databases. In Proc. of VLDB, pages 402–412, 1996

    Google Scholar 

  14. A. Y. Levy, A. O. Mendelzon, Y. Sagiv, and D. Srivastava. Answering queries using views. In PODS, pages 95–104, 1995.

    Google Scholar 

  15. C. Li. Computing complete answers to queries in the presence of limited access patterns (extended version). Technical report, Computer Science Dept., Stanford Univ.http://dbpubs.stanford.edu:8090/pub/1999-11, 1999.

  16. C. Li and E. Chang. Testing query containment in the presence of limi-ted access patterns. Technical report, Computer Science Dept., Stanford Univ., http://dbpubs.stanford.edu:8090/pub/1999-12, 1999.

  17. C. Li and E. Chang. Query planning with limited source capabilities. In ICDE, pages 401–412, 2000

    Google Scholar 

  18. C. Li, R. Yerneni, V. Vassalos, H. Garcia-Molina, Y. Papakonstantinou, J. D. Ullman, and M. Valiveti. Capability based mediation in TSIMMIS. In SIGMOD, pages 564–566, 1998.

    Google Scholar 

  19. T. Millstein, A. Levy, and M. Friedman. Query containment for data integration systems. In PODS, 2000.

    Google Scholar 

  20. T. Milo and S. Zohar. Using schema matching to simplify heterogeneous data translation. In Proc. of VLDB, pages 122–133, 1998.

    Google Scholar 

  21. A. Rajaraman, Y. Sagiv, and J. D. Ullman. Answering queries using templates with binding patterns. In PODS, pages 105–112, 1995.

    Google Scholar 

  22. Y. Sagiv and M. Yannakakis. Equivalences among relational expressions with the union and difference operators. Journal of the ACM, 27(4):633–655, 1980.

    Article  MATH  MathSciNet  Google Scholar 

  23. O. Shmueli. Equivalence of datalog queries is undecidable. Journal of Logic Pro-gramming, 15(3):231–241, 1993.

    Article  MATH  MathSciNet  Google Scholar 

  24. J. D. Ullman. Principles of Database and Knowledge-base Systems, Volumes II: The New Technologies. Computer Science Press, New York, 1989.

    Google Scholar 

  25. J. D. Ullman. Information integration using logical views. In ICDT, pages 19–40, 1997.

    Google Scholar 

  26. G. Wiederhold. Mediators in the architecture of future information systems. IEEE Computer, 25(3):38–49, 1992.

    Google Scholar 

  27. R. Yerneni, C. Li, H. Garcia-Molina, and J. D. Ullman. Computing capabilities of mediators. In SIGMOD, pages 443–454, 1999.

    Google Scholar 

  28. R. Yerneni, C. Li, J. D. Ullman, and H. Garcia-Molina. Optimizing large join queries in mediation systems. In ICDT, pages 348–364, 1999.

    Google Scholar 

  29. X. Zhang and M. Ozsoyoglu. On efficient reasoning with implication constraints. In DOOD, pages 236–252, 1993

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Li, C., Chang, E. (2001). On Answering Queries in the Presence of Limited Access Patterns. In: Van den Bussche, J., Vianu, V. (eds) Database Theory — ICDT 2001. ICDT 2001. Lecture Notes in Computer Science, vol 1973. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44503-X_15

Download citation

  • DOI: https://doi.org/10.1007/3-540-44503-X_15

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41456-8

  • Online ISBN: 978-3-540-44503-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics