skip to main content
article

Reasoning on regular path queries

Published:01 December 2003Publication History
Skip Abstract Section

Abstract

Current information systems are required to deal with more complex data with respect to traditional relational data. The database community has already proposed abstractions for these kinds of data, in particular in terms of semistructured data models. A semistructured model conceives a database essentially as a finite directed labeled graph whose nodes represent objects, and whose edges represent relationships between objects. In the same way as conjunctive queries form the core of any query language for the relational model, regular path queries (RPQs) and their variants are considered the basic querying mechanisms for semistructured data.Besides the basic task of query answering, i.e., evaluating a query over a database, databases should support other reasoning services related to querying. One of the most important is query containment, i.e., verifying whether for all databases the answer to a query is a subset of the answer to a second query. Another important reasoning service that has received considerable attention in the recent years is view-based query processing, which amounts to processing queries based on a set of materialized views, rather than on the raw data in the database.The goal of this paper is to describe basic results and techniques concerning query containment and view based query processing for the class of two-way regular-path queries (which extend RPQs with the inverse operator). We will demonstrate that the basic services for reasoning about two way regular path queries are decidable, thus showing that the limited form of recursion expressible by these queries does not endanger the decidability of reasoning. Besides the specific results, our methods show the power of two-way automata in reasoning on complex queries.

References

  1. S. Abiteboul, P. Buneman, and D. Suciu. Data on the Web: from Relations to Semistructured Data and XML. Morgan Kaufmann, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. S. Abiteboul and O. Duschka. Complexity of answering queries using materialized views. In Proc. of PODS'98, pages 254--265, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Abiteboul and V. Vianu. Regular path queries with constraints. J. of Computer and System Sciences, 58(3):428--452, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Adali, K. S. Candan, Y. Papakonstantinou, and V. S. Subrahmanian. Query caching and optimization in distributed mediator systems. In Proc. of ACM SIGMOD, pages 137--148, 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. A. V. Aho, Y. Sagiv, and J. D. Ullman. Equivalence among relational expressions. SIAM J. on Computing, 8:218--246, 1979.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. S. Boag, D. Chamberlin, M. F. Fernandez, D. Florescu, J. Robie, and J. Simeon. XQuery 1.0: An XML query language w3c working draft. Technical report, World Wide Web Consortium, Aug. 2003. Available at http://www.w3.org/TR/xquery.]]Google ScholarGoogle Scholar
  7. P. Buneman. Semistructured data. In Proc. of PODS'97, pages 117--121, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. D. Calvanese, G. De Giacomo, M. Lenzerini, D. Nardi, and R. Rosati. Description logic framework for information integration. In. Proc. of KR'98, page 2--13, 1998.]]Google ScholarGoogle Scholar
  9. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Rewriting of regular expressions and regular path queries. In Proc. of PODS'99, pages 194--204, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Containment of conjunctive regular path queries with inverse. In Proc. of KR 2000, pages 176--185, 2000.]]Google ScholarGoogle Scholar
  11. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Query processing using views for regular path queries with inverse. In Proc. of PODS 2000, pages 58--66, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. View-based query processing and constraint satisfaction. In Proc. of LICS 2000, pages 361--371, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. What is query rewriting? In Proc. of KRDB 2000, pages 17--27. CEUR Electronic Workshop Proceedings, http://ceur-ws.org/Vol-29/, 2000.]]Google ScholarGoogle ScholarCross RefCross Ref
  14. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. View-based query answering and query containment over semistructured data. In Proc. of DBPL 2001, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Lossless regular views. In Proc. of PODS 2002, pages 58--66, 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Rewriting of regular expressions and regular path queries. J. of Computer and System Sciences, 64(3): 443--465, 2002. Extended and revised version of {9}.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. View-based query containment. In Proc. of PODS 2003, pages 56--67, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. A. K. Chandra and P. M. Merlin. Optimal implementation of conjunctive queries in relational data bases. In Proc. of STOC'77, pages 77--90, 1977.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. S. Chaudhuri, S. Krishnamurthy, S. Potarnianos, and K. Shim. Optimizing queries with materialized views. In Proc. of ICDE'95, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. J. Clark and S. DeRose. XML path Language (XPath) version 1.0- W3C recommendation 16 november 1999. Technical report, World Wide Web Consortium, 1999. Available at http://www.w3.org/TR/1999/REC-xpath-19991116.]]Google ScholarGoogle Scholar
  21. A. Deutsch and V. Tannen. Optimization properties for classes of conjunctive regular path queries. In Proc. of DBPL 2001, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. T. Feder and M. Y. Vardi. The computational structure of monotone monadic SNP and constraint satisfaction. SIAM J. on Computing, 28:57--104, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. M. Friedman, A. Levy, and T. Millstein. Navigational plans for data integration. In Proc. of AAAI'99, pages 67--73. AAAI Press/The MIT Press, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. M. R. Garey and D. S. Johnson. Computers and Intractability ---A guide to NP -completeness. W. H. Freeman and Company, San Francisco (CA, USA), 1979.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. G. Grahne and A. O. Mendelzon. Tableau techniques for querying information sources through global schemas. In Proc. of ICDT'99, volume 1540 of LNCS, pages 332--347. Springer, 1999.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. G. Grahne and A. Thomo. Query containment and rewriting using view for regular path queries under constraints. In Proc. of PODS 2003, pages 111--122, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. A. Gupta and J. D. Ullman. Generalizing conjunctive query containment for view maintenance and integrity constraint verifi cation (abstract). In Workshop on Deductive Databases (In conjunction with JICSLP), page 195, Washington D.C. (USA), 1992.]]Google ScholarGoogle Scholar
  28. A. Y. Halevy. Theory of answering queries using views. SIGMOD Record, 29(4):40--47, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. A. Y. Halevy. Answering queries using views: A survey. VLDB Journal, 10(4):270--294, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. J. E. Hopcroft and J. D. Ullman. Introduction to Automata Theory, Languages, and Computation. Addison Wesley Publ. Co. 1979.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. A. C. Klug. On conjunctive queries containing inequalities. J. of the ACM, 35(1): 146--160, 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. M. Lenzerini. Data integration: A theoretical perspective. In Proc. of PODS 2002, pages 233--246, 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. A. Y. Levy, A. O. Mendelzon, Y. Sagiv, and D. Srivastava. Answering queries using views. In Proc. of PODS'95, pages 95--104, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. A. Y. Levy and M.-C. Rousset. Verification of knowledge bases: a unifying logical view. In Proc. of the 4th European Symposium on the Validation and Verification of Knowledge Based Systems, Leuven, Belgium, 1997.]]Google ScholarGoogle Scholar
  35. A. Y. Levy and Y. Sagiv. Semantic query optimization in Datalog program. In Proc. of PODS'95, pages 163--173, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. A. R. Meyer and L. J. Stockmeyer. The equivalence problem for regular expressions with squaring requires exponential time. In Proc. of the 13th IEEE Symp. on Switching and Automata Theory, pages 125--129, 1972.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  37. T. D. Millstein, A. Y. Levy, and M. Friedman. Query containment for data integration systems. In Proc. of PODS 2000, pages 67--75, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  38. A. Motro. Panorama: A database system that annotates its answers to queries with their properties. J of Intelligent Information Systems, 7(1), 1996.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  39. Y. Sagiv and M. Yannakakis. Equivalences among relational expressions with the union and difference operators. J. of the ACM, 27(4):633--655, 1980.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  40. W. J. Savitch. Relationship between nondeterministic and deterministic tape complexities. J. of Computer and System Sciences, 4:177--192, 1970.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  41. O. Shmueli. Equivalence of Datalog queries is undecidable. J. of Logic Programming, 15(3):231--241, 1993.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  42. J. D. Ullman. Information integration using logical views. In Proc. of ICDT'97, volume 1186 of LNCS, pages 19--40. Springer, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  43. R. van der Meyden. The Complexity of Querying Indefinite Information. PhD thesis, Rutgers University, 1992.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  44. M. Y. Vardi. The complexity of relational query languages. In Proc. of STOC'82, pages 137--146, 1982.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  45. M. Y. Vardi. A temporal fi xpoint calculus. In Proc. of POPL'88, pages 250--259, San Diego (CA, USA), 1988.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in

Full Access

  • Published in

    cover image ACM SIGMOD Record
    ACM SIGMOD Record  Volume 32, Issue 4
    December 2003
    112 pages
    ISSN:0163-5808
    DOI:10.1145/959060
    Issue’s Table of Contents

    Copyright © 2003 Authors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 1 December 2003

    Check for updates

    Qualifiers

    • article

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader