Chapter

Database Programming Languages

Volume 2921 of the series Lecture Notes in Computer Science pp 233-256

Attribute Grammars for Scalable Query Processing on XML Streams

  • Christoph KochAffiliated withLFCS, University of Edinburgh
  • , Stefanie ScherzingerAffiliated withLehrstuhl für Dialogorientierte Systeme, FMI, Universität Passau

* Final gross prices may vary according to local VAT.

Get Access

Abstract

We introduce the new notion of XML Stream Attribute Grammars (XSAGs). XSAGs are the first scalable query language for XML streams (running strictly in linear time with bounded memory consumption independent of the size of the stream) that allows for actual data transformations rather than just document filtering. XSAGs are also relatively easy to use for humans. Moreover, the XSAG formalism provides a strong intuition for which queries can or cannot be processed scalably on streams. We introduce XSAGs together with the necessary language-theoretic machinery, study their theoretical properties such as their expressiveness and complexity, and discuss their implementation.