ACM Home Page
Please provide us with feedback. Feedback
Expressiveness of structured document query languages based on attribute grammars
Full text PdfPdf (405 KB)
Source Journal of the ACM (JACM) archive
Volume 49 ,  Issue 1  (January 2002) table of contents
Pages: 56 - 100  
Year of Publication: 2002
ISSN:0004-5411
Authors
Frank Neven  Limburgs Universitair Centrum, Diepenbeek, Belgium
Jan Van Den Bussche  Limburgs Universitair Centrum, Diepenbeek, Belgium
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 6,   Downloads (12 Months): 42,   Citation Count: 18
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/505241.505245
What is a DOI?

ABSTRACT

Structured document databases can be naturally viewed as derivation trees of a context-free grammar. Under this view, the classical formalism of attribute grammars becomes a formalism for structured document query languages. From this perspective, we study the expressive power of BAGs: Boolean-valued attribute grammars with propositional logic formulas as semantic rules, and RAGs: relation-valued attribute grammars with first-order logic formulas as semantic rules. BAGs can express only unary queries; RAGs can express queries of any arity. We first show that the (unary) queries expressible by BAGs are precisely those definable in monadic second-order logic. We then show that the queries expressible by RAGs are precisely those definable by first-order inductions of linear depth, or, equivalently, those computable in linear time on a parallel machine with polynomially many processors. Further, we show that RAGs that only use synthesized attributes are strictly weaker than RAGs that use both synthesized and inherited attributes. We show that RAGs are more expressive than monadic second-order logic for queries of any arity. Finally, we discuss relational attribute grammars in the context of BAGs and RAGs. We show that in the case of BAGs this does not increase the expressive power, while different semantics for relational RAGs capture the complexity classes NP, coNP and UP ∩ coUP.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
 
3
 
4
 
5
 
6
DONER, J. 1970. Tree acceptors and some of their applications. J. Comput. Syst. Sci. 4, 406-451.
 
7
EBBINGHAUS, H.-D., AND FLUM, J. 1995. Finite Model Theory. Springer-Verlag, New York.
 
8
EBBINGHAUS, H.-D., FLUM, J., AND THOMAS, W. 1994. Mathematical Logic (second ed.). In Undergraduate Texts in Mathematics. Springer-Verlag, New York.
 
9
ENDERTON, H. 1972. A Mathematical Introduction to Logic. Academic Press, Orlando, Fla.
 
10
FAGIN, R. 1974. Generalized first-order spectra and polynomial-time recognizable sets. In Complexity of Computation, Volume 7 of SIAM-AMS Proceedings, R. Karp, Ed. pp. 43-73.
 
11
GECSEG, M., AND STEINBY, M. 1984. Tree Automata. Akademia Kiad~, Budapest, Hungary.
 
12
 
13
 
14
 
15
 
16
 
17
KNUTH, D. 1968. Semantics of context-free languages. Math. Syst. Theory 2, 2, 127-145. See also Math. Syst. Theory 5, 2, 95-96, 1971.
 
18
 
19
KOLAITIS, P. 1990. Implicit definability on finite structures and unambiguous computations. In Proceedings of the 5th IEEE Symposium on Logic in Computer Science. IEEE Computer Society Press, Los Alamitos, Calif., pp. 168-180.
 
20
21
 
22
 
23
 
24
PAPADIMITRIOU, C. 1994. Computational Complexity. Addison-Wesley, Reading, Mass.
 
25
 
26
THATCHER, J., AND WRIGHT, J. 1968. Generalized finite automata theory with an application to a decision problem of second-order logic. Math. Syst. Theory 2, 1, 57-81.
 
27
 
28
VALIANT, L. G. 1976. Relative complexity of checking and evaluating. Inf. Proc. Lett. 5, 1 (May), 20-23.
29
 
30
WOOD, D. 1995. Standard generalized markup language: Mathematical and philosophical issues. In Computer Science Today. Recent Trends and Developments, J. van Leeuwen, Ed. Lecture Notes in Computer Science, vol. 1000. Springer-Verlag, New York, pp. 344-365.

CITED BY  18

Collaborative Colleagues:
Frank Neven: colleagues
Jan Van Den Bussche: colleagues