On deciding well-definedness for query languages on trees
Author:
Open Access
- 1 July 2007
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 54 (4) , 19
Abstract
The well-definedness problem for a database query language consists of checking, given an expression and an input type, that the expression never yields a runtime error on any input adhering to the input type. In this article, we study the well-definedness problem for query languages on trees that are built from a finite set of partially defined base operations by adding variables, constants, conditionals, let bindings, and iteration. We identify properties of base operations that can make the problem undecidable and give restrictions that are sufficient to ensure decidability. As a direct result, we obtain a large fragment of XQuery for which well-definedness is decidable.Keywords
This publication has 21 references indexed in Scilit:
- Regular expression types for XMLACM Transactions on Programming Languages and Systems, 2005
- Containment of Nested XML Queries2004
- On Testing Satisfiability of Tree Pattern Queries2004
- Typechecking XML views of relational databasesACM Transactions on Computational Logic, 2003
- XML with data values: typechecking revisitedJournal of Computer and System Sciences, 2003
- XDuceACM Transactions on Internet Technology, 2003
- Typechecking Top-Down Uniform Unranked Tree Transducers2002
- UnQL: a query language and algebra for semistructured data based on structural recursionThe VLDB Journal, 2000
- Principles of programming with complex objects and collection typesTheoretical Computer Science, 1995
- Containment of conjunctive queriesACM Transactions on Database Systems, 1995