|
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
|
G. Mecca , P. Atzeni , A. Masci , G. Sindoni , P. Merialdo, The Araneus Web-based management system, Proceedings of the 1998 ACM SIGMOD international conference on Management of data, p.544-546, June 01-04, 1998, Seattle, Washington, United States
|
| |
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
|
Wolfgang Thomas, Languages, automata, and logic, Handbook of formal languages, vol. 3: beyond words, Springer-Verlag New York, Inc., New York, NY, 1997
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
Michael Benedikt , Chee-Yong Chan , Wenfei Fan , Juliana Freire , Rajeev Rastogi, Capturing both types and constraints in data integration, Proceedings of the 2003 ACM SIGMOD international conference on Management of data, June 09-12, 2003, San Diego, California
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Georg Gottlob , Christoph Koch , Robert Baumgartner , Marcus Herzog , Sergio Flesca, The Lixto data extraction project: back and forth between theory and practice, Proceedings of the twenty-third ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, June 14-16, 2004, Paris, France
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Michael Benedikt , Chee Yong Chan , Wenfei Fan , Rajeev Rastogi , Shihui Zheng , Aoying Zhou, DTD-directed publishing with attribute translation grammars, Proceedings of the 28th international conference on Very Large Data Bases, p.838-849, August 20-23, 2002, Hong Kong, China
|
|
|
|
|
|
|
|
|
|
|
|
|
INDEX TERMS
Primary Classification:
F.
Theory of Computation
F.1
COMPUTATION BY ABSTRACT DEVICES
F.1.1
Models of Computation
Subjects:
Automata (e.g., finite, push-down, resource-bounded)
Additional Classification:
F.
Theory of Computation
F.1
COMPUTATION BY ABSTRACT DEVICES
F.1.1
Models of Computation
Subjects:
Relations between models
F.4
MATHEMATICAL LOGIC AND FORMAL LANGUAGES
F.4.1
Mathematical Logic
Subjects:
Model theory
F.4.3
Formal Languages
Subjects:
Classes defined by grammars or automata (e.g., context-free languages, regular sets, recursive sets)
H.
Information Systems
H.2
DATABASE MANAGEMENT
H.2.3
Languages
Subjects:
Query languages;
Data manipulation languages (DML)
General Terms:
Languages,
Theory
Keywords:
Attribute grammars,
automata,
complexity,
logic,
structured documents
|