JOURNAL ARTICLE

Datalog expressiveness of chain queries

Abstract

A chain query seeks, for each input database (viewed as directed graph), all pairs of start and end nodes of paths whose labels spell words in an associated (possibly non context-free) language over some binary predicates. We study the expressive power of Datalog for chain queries. Extending context-free productions with labels, we introduce a new tool called “indexed positive programmed grammar” (IPPG). Three variations of IPPG are introduced to characterize chain queries computable (i) by linear Datalog, (ii) by “semi-linear Datalog”, and (iii) by general Datalog, respectively, under a natural “addressable” condition.

Keywords:
Datalog Computer science Expressive power Spell Programming language Context (archaeology) Theoretical computer science Chain (unit) Graph Conjunctive query Database

Metrics

10
Cited By
3.30
FWCI (Field Weighted Citation Impact)
16
Refs
0.91
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Algorithms and Data Compression
Physical Sciences →  Computer Science →  Artificial Intelligence
semigroups and automata theory
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
DNA and Biological Computing
Life Sciences →  Biochemistry, Genetics and Molecular Biology →  Molecular Biology

Related Documents

BOOK-CHAPTER

On Datalog Linearization of Chain Queries

Guozhu Dong

Elsevier eBooks Year: 1992 Pages: 181-206
JOURNAL ARTICLE

Expressiveness within Sequence Datalog

Heba AamerJan HiddersJan ParedaensJan Van den Bussche

Journal:   ACM Transactions on Database Systems Year: 2025 Vol: 50 (3)Pages: 1-38
BOOK-CHAPTER

Datalog Queries

Texts in computer science Year: 2006 Pages: 40-55
BOOK-CHAPTER

The expressiveness of Datalog cicuits (DAC)

Foto AfratiIrène GuessarianMichel de Rougemont

Lecture notes in computer science Year: 1997 Pages: 117-128
© 2026 ScienceGate Book Chapters — All rights reserved.