Resource type
Thesis type
(Thesis) Ph.D.
Date created
2026-04-20
Authors/Contributors
Author: Liu, Heng
Abstract
Computing certain answers is the standard approach when data or knowledge is incomplete. This very natural concept rooted in logical validity suffers from a severe weakness: its generally intractable computational complexity. Even for fairly modest extensions beyond conjunctive queries (the ∃, ∧ fragment of first-order logic), the problem becomes hard in data complexity, and coNP-hardness results are well established across standard incomplete-database models and closely related settings. This thesis studies three efficient strategies that preserve the data complexity of standard query evaluation while providing correctness guarantees, with a focus on GQL (Graph Query Language) for property graphs. First, we study naive evaluation, which treats nulls as distinct fresh constants and then applies standard query evaluation. We identify syntactic conditions under which naive evaluation is exact for Datalog. In particular, we introduce fragments such as Constant-Guarded Datalog and related extensions with guarded negation, and we show that preservation under appropriate homomorphisms implies that naive evaluation computes certain answers exactly. Second, we develop a formal framework for incomplete property graphs in GQL that distinguishes two kinds of incompleteness: exists but is unknown (EU) and not-applicable (NA). We identify a positive fragment of GQL where naive evaluation is exact and develop a query rewriting technique that guarantees soundness (no false positives) for the full language. We implement this approach as an extension of Neo4j's query engine, providing (to our knowledge) the first support for this two-null distinction in a commercial database engine with automatic query rewriting, and we observe low overhead and high recall in experiments. Third, we relax absolute certainty to asymptotic certainty. We establish 0–1 laws under broad distributional conditions showing that naive evaluation coincides with the almost-certain answers, and we extend this result from relational databases to property-graph querying in GQL. Experiments on TPC and LDBC benchmarks further suggest that convergence is typically fast at realistic domain sizes.
File
Extent
139 pages.
Identifier
etd24285
Copyright statement
Copyright is held by the author(s).
Academic Supervisor
Thesis advisor: Ternovska, Eugenia
Language
English
Member of collection
| Download file | Size |
|---|---|
| etd24285.pdf | 3.56 MB |