FC-Datalog as a Framework for Efficient String Querying

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bell, Owen M., Day, Joel D., Freydenberger, Dominik D.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917895549747200
author Bell, Owen M.
Day, Joel D.
Freydenberger, Dominik D.
author_facet Bell, Owen M.
Day, Joel D.
Freydenberger, Dominik D.
contents Core spanners are a class of document spanners that capture the core functionality of IBM's AQL. FC is a logic on strings built around word equations that when extended with constraints for regular languages can be seen as a logic for core spanners. The recently introduced FC-Datalog extends FC with recursion, which allows us to define recursive relations for core spanners. Additionally, as FC-Datalog captures P, it is also a tractable version of Datalog on strings. This presents an opportunity for optimization. We propose a series of FC-Datalog fragments with desirable properties in terms of complexity of model checking, expressive power, and efficiency of checking membership in the fragment. This leads to a range of fragments that all capture LOGSPACE, which we further restrict to obtain linear combined complexity. This gives us a framework to tailor fragments for particular applications. To showcase this, we simulate deterministic regex in a tailored fragment of FC-Datalog.
format Preprint
id arxiv_https___arxiv_org_abs_2501_10344
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FC-Datalog as a Framework for Efficient String Querying
Bell, Owen M.
Day, Joel D.
Freydenberger, Dominik D.
Logic in Computer Science
Databases
Formal Languages and Automata Theory
Core spanners are a class of document spanners that capture the core functionality of IBM's AQL. FC is a logic on strings built around word equations that when extended with constraints for regular languages can be seen as a logic for core spanners. The recently introduced FC-Datalog extends FC with recursion, which allows us to define recursive relations for core spanners. Additionally, as FC-Datalog captures P, it is also a tractable version of Datalog on strings. This presents an opportunity for optimization. We propose a series of FC-Datalog fragments with desirable properties in terms of complexity of model checking, expressive power, and efficiency of checking membership in the fragment. This leads to a range of fragments that all capture LOGSPACE, which we further restrict to obtain linear combined complexity. This gives us a framework to tailor fragments for particular applications. To showcase this, we simulate deterministic regex in a tailored fragment of FC-Datalog.
title FC-Datalog as a Framework for Efficient String Querying
topic Logic in Computer Science
Databases
Formal Languages and Automata Theory
url https://arxiv.org/abs/2501.10344