• Media type: E-Article
  • Title: On deciding well-definedness for query languages on trees
  • Contributor: Vansummeren, Stijn
  • Published: Association for Computing Machinery (ACM), 2007
  • Published in: Journal of the ACM, 54 (2007) 4, Seite 19
  • Language: English
  • DOI: 10.1145/1255443.1255447
  • ISSN: 0004-5411; 1557-735X
  • Keywords: Artificial Intelligence ; Hardware and Architecture ; Information Systems ; Control and Systems Engineering ; Software
  • Origination:
  • Footnote:
  • Description: 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.