Definable relations and first-order query languages over strings

Author:

Benedikt Michael1,Libkin Leonid2,Schwentick Thomas3,Segoufin Luc4

Affiliation:

1. Bell Labs, Naperville, Illinois

2. University of Toronto, Toronto, Ontario, Canada

3. University of Marburg, Marburg, Germany

4. INRIA-Rocquencourt, Le Chesnay Cedex, France

Abstract

We study analogs of classical relational calculus in the context of strings. We start by studying string logics. Taking a classical model-theoretic approach, we fix a set of string operations and look at the resulting collection of definable relations. These form an algebra---a class of n -ary relations for every n , closed under projection and Boolean operations. We show that by choosing the string vocabulary carefully, we get string logics that have desirable properties: computable evaluation and normal forms. We identify five distinct models and study the differences in their model-theory and complexity of evaluation. We identify a subset of these models that have additional attractive properties, such as finite VC dimension and quantifier elimination.Once you have a logic, the addition of free predicate symbols gives you a string query language. The resulting languages have attractive closure properties from a database point of view: while SQL does not allow the full composition of string pattern-matching expressions with relational operators, these logics yield compositional query languages that can capture common string-matching queries while remaining tractable. For each of the logics studied in the first part of the article, we study properties of the corresponding query languages. We give bounds on the data complexity of queries, extend the normal form results from logics to queries, and show that the languages have corresponding algebras expressing safe queries.

Publisher

Association for Computing Machinery (ACM)

Subject

Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software

Reference64 articles.

1. Abiteboul. S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley Reading Mass.]] Abiteboul. S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley Reading Mass.]]

2. Σ11 formulas on finite structures;Ajtai M.;Ann. Pure Appl. Logic,1983

3. The Closure of Monadic NP

4. Regular prefix relations;Angluin D.;Math. Syst. Theory,1984

5. Anthony M. and Biggs N. 1992. Computational Learning Theory. Cambridge Univ. Press Cambridge Mass.]] Anthony M. and Biggs N. 1992. Computational Learning Theory. Cambridge Univ. Press Cambridge Mass.]]

Cited by 39 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Regular Abstractions for Array Systems;Proceedings of the ACM on Programming Languages;2024-01-05

2. Ramsey Quantifiers in Linear Arithmetics;Proceedings of the ACM on Programming Languages;2024-01-05

3. On the Expressive Power of String Constraints;Proceedings of the ACM on Programming Languages;2023-01-09

4. Data Path Queries over Embedded Graph Databases;Proceedings of the 41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2022-06-12

5. The Past and Future of Embedded Finite Model Theory;Lecture Notes in Computer Science;2022

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3