skip to main content
article

Typechecking XML views of relational databases

Published:01 July 2003Publication History
Skip Abstract Section

Abstract

Motivated by the need to export relational databases as XML data in the context of the Web, we investigate the typechecking problem for transformations of relational data into tree data (XML). The problem consists of statically verifying that the output of every transformation belongs to a given output tree language (specified for XML by a DTD), for input databases satisfying given integrity constraints. The typechecking problem is parameterized by the class of formulas defining the transformation, the class of output tree languages, and the class of integrity constraints. While undecidable in its most general formulation, the typechecking problem has many special cases of practical interest that turn out to be decidable. The main contribution of this article is to trace a fairly tight boundary of decidability for typechecking in this framework. In the decidable cases we examine the complexity, and show lower and upper bounds. We also exhibit a practically appealing restriction for which typechecking is in PTIME.

References

  1. Abiteboul, S., Buneman, P., and Suciu, D. 1999. Data on the Web: From Relations to Semistructured Data and XML. Morgan Kaufmann, San Mateo, Calif.]] Google ScholarGoogle Scholar
  2. Abiteboul, S., Hull, R., and Vianu, V. 1995. Foundations of Data. Addison-Wesley, Reading Mass.]]Google ScholarGoogle Scholar
  3. Alon, N., Milo, T., Neven, F., Suciu, D., and Vianu, V. 2001. XML with data values: Typechecking revisited. In Proceedings of the 20th Symposium on Principles of Database Systems (PODS 2001). ACM, New York, 560--572.]] Google ScholarGoogle Scholar
  4. Beech, D., Lawrence, S., Maloney, M., Mendelsohn, N., and Thompson, H. 1999. XML schema, Part 1: Structures, May 1999. http://www.w3.org/TR/xmlschema-1/.]]Google ScholarGoogle Scholar
  5. Beeri, C. and Milo, T. 1999. Schemas for integration and translation of structured and semi-structured data. In Database Theory---ICDT99, P. B. C. Beeri, Ed. Lecture Notes in Computer Science, vol. 1540. Springer-Verlag, New York, 296--313.]] Google ScholarGoogle Scholar
  6. Biron, P. and Malhotra, A. 1999. XML schema, Part 2: Datatypes, May 1999. http://www.w3.org/TR/xmlschema-2/.]]Google ScholarGoogle Scholar
  7. Börger, E., Grädel, E., and Gurevich, Y. 1997. The Classical Decision Problem. Springer-Verleg, New York.]]Google ScholarGoogle Scholar
  8. Brüggemann-Klein, A., Murata, M., and Wood, D. 2001. Regular tree and regular hedge languages over unranked alphabets: Version 1, April 3, 2001. Tech. Rep. HKUST-TCSC-2001-0, The Hong Kong University of Science and Technology.]]Google ScholarGoogle Scholar
  9. Büchi, J. R. 1960. Weak second-order arithmetic and finite automata. Z. Math. Logik Grundl. Math. 6, 66--92.]]Google ScholarGoogle Scholar
  10. Carey, M., Florescu, D., Ives, Z., Lu, Y., Shanmugasundaram, J., Shekita, E., and Subramanian, S. 2000. XPERANTO: Publishing object-relational data as XML. WebDB 2000 (Informal Proceedings).]] Google ScholarGoogle Scholar
  11. Chamberlin, D., Clark, J., Florescu, D., Robie, J., Simeon, J., and Stefanascu, M. 2002. XQuery 1.0: An XML query language. http://www.w3.org/TR/xquery/.]]Google ScholarGoogle Scholar
  12. Cluet, S., Delobel, C., Siméon, J., and Smaga, K. 1998. Your mediators need data conversion! In SIGMOD 1998, Proceedings ACM SIGMOD International Conference on Management of Data, L. M. Haas and A. Tiwary, Eds. ACM, New York, 177--188.]] Google ScholarGoogle Scholar
  13. Codd, E. 1970. A relational model for large shared databanks. Commun. ACM 13, 6, 377--387.]] Google ScholarGoogle Scholar
  14. Deutsch, A., Fernandez, M., Florescu, D., Levy, A., Maier, D., and Suciu, D. 1999. Querying XML data. Data Eng. Bull. 22, 3, 10--18.]]Google ScholarGoogle Scholar
  15. Ebbinghaus, H.-D. and Flum, J. 1995. Finite Model Theory. Springer-Verlag, New York.]]Google ScholarGoogle Scholar
  16. Fernandez, M., Kadiyska, Y., Morishima, A., Suciu, D., and Tan, W. 2002. SilkRoute: A framework for publishing relational data in XML. Available from www.cs.washington.edu/homes/suciu.]]Google ScholarGoogle Scholar
  17. Fernandez, M., Suciu, D., and Tan, W. 2000. SilkRoute: Trading between relations and XML. In Proceedings of the WWW9 Conference. 723--746.]] Google ScholarGoogle Scholar
  18. Graham, R., Rothschild, B., and Spencer, J. H. 1990. Ramsey Theory, 2nd ed. Wiley, New York.]] Google ScholarGoogle Scholar
  19. Immerman, N. 1982. Upper and lower bounds for first-order expressibility. J. Comput. Syst. Sci. 25, 1, 76--98.]]Google ScholarGoogle Scholar
  20. Matiyasevich, Y. V. 1993. Hilbert's tenth problem. Foundations of Computing Series. MIT Press, Cambridge, Mass.]] Google ScholarGoogle Scholar
  21. McNaughton, R. and Papert, S. 1971. Counter-Free Automata. MIT Press, Cambridge, Mass.]] Google ScholarGoogle Scholar
  22. Milo, T., Suciu, D., and Vianu, V. 2000. Type checking for XML transformers. In Proceedings of the 19th ACM Symposium on Principles of Database Systems. ACM, New York, 11--22.]] Google ScholarGoogle Scholar
  23. Milo, T. and Zohar, S. 1998. Using schema matching to simplify heterogeneous data translation. In Proceedings of VLDB. 122--133.]] Google ScholarGoogle Scholar
  24. Mitchell, J. 1996. Foundations for Programmng Languages. MIT Press, Cambridge, Mass.]] Google ScholarGoogle Scholar
  25. Neven, F. and Schwentick, T. 1999. XML schemas without order. Unpublished manuscript.]]Google ScholarGoogle Scholar
  26. Papadimitriou, C. 1985. A note on the expressive power of PROLOG. Bulletin of the EATCS 26, 21--23.]]Google ScholarGoogle Scholar
  27. Papakonstantinou, Y. and Vianu, V. 2001. DTD inference for views of XML data. In Proceedings of the 20th Symposium on Principles of Database Systems (PODS 2001). ACM, New York, 35--46.]] Google ScholarGoogle Scholar
  28. Ramsey, F. P. 1929. On a problem of formal logic. Proc. London Math. Soc. 30, 2, 264--286.]]Google ScholarGoogle Scholar
  29. Shanmugasundaram, J., Shekita, E., Barr, R., Carey, M., Lindsay, B., Pirahesh, H., and Reinwald, B. 2000. Efficiently publishing relational data as XML documents. In Proceedings of VLDB. 65--76.]] Google ScholarGoogle Scholar
  30. Shanmugasundaram, J., Kiernana, J., Shekita, E., Fan, C., and Funderburk, J. 2001. Querying XML views of relational data. In Proceedings of VLDB. 261--270.]] Google ScholarGoogle Scholar
  31. Thomas, W. 1997. Languages, automata, and logic. In Handbook of Formal Languages. G. Rozenberg and A. Salomaa, Eds. Vol. 3. Springer-Verlag, New York, Chap. 7, 389--456.]] Google ScholarGoogle Scholar
  32. van der Meyden, R. 1997. The complexity of querying infinite data about linearly ordered domains. J. Comput. Syst. Sci. 54, 1, 113--135.]] Google ScholarGoogle Scholar
  33. Vardi, M. 1995. On the complexity of bounded-variable queries. In Proceedings of the ACM Symposium on Principles of Database Systems. ACM, New York, 266--276.]] Google ScholarGoogle Scholar

Index Terms

  1. Typechecking XML views of relational databases

            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 Transactions on Computational Logic
              ACM Transactions on Computational Logic  Volume 4, Issue 3
              July 2003
              121 pages
              ISSN:1529-3785
              EISSN:1557-945X
              DOI:10.1145/772062
              Issue’s Table of Contents

              Copyright © 2003 ACM

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 1 July 2003
              Published in tocl Volume 4, Issue 3

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • article

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader