Joining extractions of regular expressions

Dominik D. Freydenberger, Benny Kimelfeld, Liat Peterfreund

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

33 Scopus citations

Abstract

Regular expressions with capture variables, also known as “regex formulas,” extract relations of spans (interval positions) from text. These relations can be further manipulated via the relational Algebra as studied in the context of “document spanners," Fagin et al.'s formal framework for information extraction. We investigate the complexity of querying text by Conjunctive Queries (CQs) and Unions of CQs (UCQs) on top of regex formulas. Such queries have been investigated in prior work on document spanners, but little is known about the (combined) complexity of their evaluation. We show that the lower bounds (NP-completeness and W[1]hardness) from the relational world also hold in our setting; in particular, hardness hits already single-character text. Yet, the upper bounds from the relational world do not carry over. Unlike the relational world, acyclic CQs, and even gamma-acyclic CQs, are hard to compute. The source of hardness is that it may be intractable to instantiate the relation defined by a regex formula, simply because it has an exponential number of tuples. Yet, we are able to establish general upper bounds. In particular, UCQs can be evaluated with polynomial delay, provided that every CQ has a bounded number of atoms (while unions and projection can be arbitrary). Furthermore, UCQ evaluation is solvable with FPT (Fixed-Parameter Tractable) delay when the parameter is the size of the UCQ.

Original languageEnglish
Title of host publicationPODS 2018 - Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
EditorsJan Van den Bussche, Mart�n Ugarte, Marcelo Arenas
PublisherAssociation for Computing Machinery
Pages137-149
Number of pages13
ISBN (Electronic)9781450347068
DOIs
StatePublished - 27 May 2018
Externally publishedYes
Event37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2018 - Houston, United States
Duration: 10 Jun 201815 Jun 2018

Publication series

NameProceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems

Conference

Conference37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2018
Country/TerritoryUnited States
CityHouston
Period10/06/1815/06/18

Bibliographical note

Publisher Copyright:
© 2018 Association for Computing Machinery.

Keywords

  • Document Spanners
  • Information Extraction
  • Polynomial Delay
  • Regular Expressions
  • Unions of Conjunctive Queries

Fingerprint

Dive into the research topics of 'Joining extractions of regular expressions'. Together they form a unique fingerprint.

Cite this