Abstract
We study highly expressive query languages for unordered data trees, using as formal vehicles Active XML and extensions of languages in the while family. All languages may be seen as adding some form of control on top of a set of basic pattern queries. The results highlight the impact and interplay of different factors: the expressive power of basic queries, the embedding of computation into data (as in Active XML), and the use of deterministic vs. nondeterministic control. All languages are Turing complete, but not necessarily query complete in the sense of Chandra and Harel. Indeed, we show that some combinations of features yield serious limitations, analogous to FOk definability in the relational context. On the other hand, the limitations come with benefits such as the existence of powerful normal forms providing opportunities for optimization. Other languages are “almost” complete, but fall short because of subtle limitations reminiscent of the copy elimination problem in object databases.
Similar content being viewed by others
Notes
Alternatively, we could use automata on unordered trees.
References
Abiteboul, S., Benjelloun, O., Milo, T.: The active XML project: an overview. VLDB J. 17(5) (2008)
Abiteboul, S., Bourhis, P., Vianu, V.: Comparing workflow specification languages: a matter of views. ACM Trans. Database Syst. 37(2) (2012). Also ICDT 2011
Abiteboul, S., Compton, K.J., Vianu, V.: Queries are easier than you thought (probably). In PODS (1992)
Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison Wesley, Reading, MA (1995)
Abiteboul, S., Kanellakis, P.: Object identity as a query language primitive. J. Assoc. Comput. Mach. (JACM) 45(5) (1998)
Abiteboul, S., Segoufin, L., Vianu, V.: Static analysis of active XML systems. ACM Trans. Database Syst. 34(4) (2009). Also PODS 2008
Abiteboul, S., Vianu, V.: Generic computation and its complexity. In STOC, pp. 209–219 (1991)
Abiteboul, S., Vianu, V.: Computing with first-order logic. J. Comput. Syst. Sci. 50(2) (1995)
Benedikt, M., Koch, C.: From XQuery to relational logics. ACM Trans. Database Syst. 34(4) (2009)
Bojanczyk, M.: Automata for data words and data trees. In RTA, pp. 1–4 (2010)
Calvanese, D., Giacomo, G.D., Hull, R., Su, J.: Artifact-centric workflow dominance. In ICSOC/ServiceWave (2009)
Hidders, J., Marrara, S., Paredaens, J., Vercammen, R.: On the expressive power of XQuery fragments. In DBPL (2005)
Hidders, J., Paredaens, J., Vercammen, R., Demeyer, S.: A light but formal introduction to XQuery. In XSym (2004)
Janssen, W., Korlyukov, A., den Bussche, J.V.: On the tree-transformation power of XSLT. Acta Inf. 43(6) (2007)
Koch, C.: On the complexity of nonrecursive XQuery and functional query languages on complex values. ACM Trans. Database Syst. 31(4) (2006)
Libkin, L.: Elements of Finite Model Theory. Springer, Berlin (2004)
Neven, F.: Automata, logic, and XML. In Computer Science Logic (2002)
Schwentick, T.: Automata for XML - a survey. J. Comput. Syst. Sci. 73(3) (2007)
Segoufin, L.: Automata and logics for words and trees over an infinite alphabet. In Computer Science Logic, pp. 41–57 (2006)
Segoufin, L.: Static analysis of XML processing with data values. SIGMOD Record 36(1), 31–38 (2007)
Acknowledgments
This work has been partially funded by the European Re-search Council under the European Community’s Seventh Framework Programme (FP7/2007-2013) / ERC grant Webdam, agreement 226513. http://webdam.inria.fr
V. Vianu was supported in part by the NSF under award IIS-1422375. Work done in part while visiting INRIA and ENS-Cachan.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Abiteboul, S., Bourhis, P. & Vianu, V. Highly Expressive Query Languages for Unordered Data Trees. Theory Comput Syst 57, 927–966 (2015). https://doi.org/10.1007/s00224-015-9617-5
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-015-9617-5