Papers
Topics
Authors
Recent
Search
2000 character limit reached

Property Testing for Recursive Query Languages

Published 3 Sep 2026 in cs.DB and cs.LO | (2609.03908v1)

Abstract: In the context of database querying, property testing provides a framework for testing query answers with high confidence while inspecting only a sublinear part of the database, through completion queries and size queries. A fundamental result of Chen and Yoshida (2019) states that non-satisfaction of a Boolean conjunctive query qq is testable with a constant number of such queries and one-sided error if and only if qq is equivalent to an αα-acyclic query. In this article, we initiate the study of property testing for recursive query languages, focusing on two-way regular path queries (2RPQs) and monadic Datalog. One of our main results is positive: non-answers to any 2RPQ are constant query testable with one-sided error. We extend this slightly to a certain class of monadic Datalog programs in which recursion is restricted to be linear and rule bodies must be αα-acyclic. Turning towards unrestricted monadic Datalog, we next show that if a monadic Datalog program ΠΠ is not equivalent to an αα-acyclic program, then falsity of ΠΠ is not constant query testable with one-sided error. This is under the assumption that all rule-bodies are self-join free. We leave open the case of monadic Datalog programs with αα-acyclic rule bodies that are not restricted to linear recursion, but observe as a first step that there exist αα-acyclic programs that are mildly non-linear and constant query testable with one-sided error.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.