Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/375551.375570acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article

XML with data values: typechecking revisited

Published: 01 May 2001 Publication History
  • Get Citation Alerts
  • Abstract

    We investigate the type checking problem for XML queries: statically verifying that every answer to a query conforms to a given output DTD, for inputs satisfying a given input DTD. This problem had been studied by a subset of the authors in a simplified framework that captured the structure of XML documents but ignored data values. We revisit here the type checking problem in the more realistic case when data values are present in documents and tested by queries. In this extended framework, type checking quickly becomes undecidable. However, it remains decidable for large classes of queries and DTDs of practical interest. The main contribution of the present paper is to trace a fairly tight boundary of decidability for type checking with data values. The complexity of type checking in the decidable cases is also considered.

    References

    [1]
    D. Beech, S. Lawrence, M. Maloney, N. Mendelsohn, and H. Thompson. XML schema part 1: Structures. May 1999. http://www.w3.org/TR/xmlschema-1/.
    [2]
    P. Biron and A. Malhotra. XML schema part 2: Datatypes. May 1999. http://www.w3.org/TR/xmlschema-2/.
    [3]
    A. Bruggemann-Klein, M. Murata, and D. Wood. Regular tree languages over non-ranked alphabets. Unpublished Manuscript, 1998.
    [4]
    J. R. B. uchi. Weak second-order arithmetic and finite automata. Z. Math. Logik Grundl. Math., vol. 6, pp. 66-92, 1960.
    [5]
    A. K. Chandra and M. Y. Vardi. The implication problem for functional and inclusion dependencies is undecidable. SIAM J. on Computing, 14(3):671-677, 1985.
    [6]
    D. Chamberlin, J. Robie, and D. Florescu Quilt: An XML Query Language for Heterogeneous Data Sources. WebDB 2000, (Informal Proceedings).
    [7]
    V. Christophides, S. Cluet and J. Simeon. On Wrapping Query Languages and Efficient XML Integration. In Proc. ACM SIGMOD, pp. 141-152, 2000
    [8]
    J. Clark. XML path language (XPath), 1999. http://www.w3.org/TR/xpath.
    [9]
    J. Clark. XSL transformations (XSLT) specification, 1999. http://www.w3.org/TR/WD-xslt.
    [10]
    S. Cluet, C. Delobel, J. Simeon and K. Smaga. Your mediators need data conversion! In Proc. ACM SIGMOD, pp. 177-188, 1998.
    [11]
    A. Deutsch, M. Fernandez, D. Florescu, A. Levy, and D. Suciu. A query language for XML. In Proc. WWW8, Toronto, 1999.
    [12]
    H.-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer, Second Edition, 1999.
    [13]
    M.R.Garey and D.S.Johnson. Computers and Intractibilitiy: A Guide to the Theory of NP-Completeness. Freeman, San Francisco, 1979.
    [14]
    R.L. Graham, B.L. Rothschild and J. H. Spencer, Ramsey Theory (Second Edition). Wiley, New York, 1990.
    [15]
    H. Hosoya and B. C. Pierce. XDuce: An XML Processing Language. WebDB'2000 (Informal Proceedings).
    [16]
    H. Hosoya and B. C. Pierce. Regular Expression Pattern Matching for XML. In Proc. ACM POPL, 2001.
    [17]
    R. Milner, M. Tofte and R. Harper. The Definition of Standard ML. MIT Press, 1990.
    [18]
    T. Milo and D. Suciu. Type Inference for Queries on Semistructured Data. In Proc. ACM PODS, pp. 215-226, 1999.
    [19]
    T.Milo, D. Suciu, and V. Vianu. Typechecking for XML Transformers. In Proc. ACM PODS, pp. 11-22, 2000.
    [20]
    J. C. Mitchell. The implication problem for functional and inclusion dependencies. Information and Control, 56(3):154-173, 1983.
    [21]
    F. Neven and T. Schwentick. XML Schemas without Order. Unpublished manuscript, 1999.
    [22]
    Y. Papakonstantinou and V. Vianu. DTD inference for views of XML data. In Proc. ACM PODS, pp. 35-46, 2000.
    [23]
    F. P. Ramsey, On a problem of formal logic. Proceedings of the London Mathematical Society, 30(2):264-286, 1929.
    [24]
    J. Robie. The design of XQL, 1999. http://www.texcel.no/whitepapers/xql-design.html.
    [25]
    R. van der Meyden. The complexity of querying infinite data about linearly ordered domains. JCSS, 54(1):113-135, 1997.
    [26]
    W. Thomas. Languages, automata, and logic. In Handbook of Formal Languages, eds. G. Rozenberg and A. Salomaa, vol.3, ch.7, Springer, 1997.

    Cited By

    View all
    • (2015)A Core Calculus for XQuery 3.0Programming Languages and Systems10.1007/978-3-662-46669-8_10(232-256)Online publication date: 2015
    • (2013)Static and dynamic semantics of NoSQL languagesACM SIGPLAN Notices10.1145/2480359.242908348:1(101-114)Online publication date: 23-Jan-2013
    • (2013)Static and dynamic semantics of NoSQL languagesProceedings of the 40th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages10.1145/2429069.2429083(101-114)Online publication date: 23-Jan-2013
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    PODS '01: Proceedings of the twentieth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
    May 2001
    301 pages
    ISBN:1581133618
    DOI:10.1145/375551
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 May 2001

    Permissions

    Request permissions for this article.

    Check for updates

    Qualifiers

    • Article

    Conference

    SIGMOD/PODS01
    Sponsor:

    Acceptance Rates

    PODS '01 Paper Acceptance Rate 26 of 99 submissions, 26%;
    Overall Acceptance Rate 642 of 2,707 submissions, 24%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)1
    • Downloads (Last 6 weeks)0

    Other Metrics

    Citations

    Cited By

    View all
    • (2015)A Core Calculus for XQuery 3.0Programming Languages and Systems10.1007/978-3-662-46669-8_10(232-256)Online publication date: 2015
    • (2013)Static and dynamic semantics of NoSQL languagesACM SIGPLAN Notices10.1145/2480359.242908348:1(101-114)Online publication date: 23-Jan-2013
    • (2013)Static and dynamic semantics of NoSQL languagesProceedings of the 40th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages10.1145/2429069.2429083(101-114)Online publication date: 23-Jan-2013
    • (2009)Parametric polymorphism for XMLACM Transactions on Programming Languages and Systems10.1145/1596527.159652932:1(1-56)Online publication date: 4-Nov-2009
    • (2008)Static analysis of active XML systemsProceedings of the twenty-seventh ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems10.1145/1376916.1376948(221-230)Online publication date: 9-Jun-2008
    • (2007)Towards practical typechecking for macro tree transducersProceedings of the 11th international conference on Database programming languages10.5555/1783534.1783558(246-260)Online publication date: 23-Sep-2007
    • (2007)Propagating XML constraints to relationsJournal of Computer and System Sciences10.1016/j.jcss.2006.10.02273:3(316-361)Online publication date: May-2007
    • (2007)Towards Practical Typechecking for Macro Tree TransducersDatabase Programming Languages10.1007/978-3-540-75987-4_17(246-260)Online publication date: 2007
    • (2005)Information preserving XML schema embeddingProceedings of the 31st international conference on Very large data bases10.5555/1083592.1083606(85-96)Online publication date: 30-Aug-2005
    • (2005)Validating key constraints over XML document using XPath and structure checkingFuture Generation Computer Systems10.1016/j.future.2004.12.00121:4(583-595)Online publication date: 1-Apr-2005
    • Show More Cited By

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media