TL;DR
This paper maps the complexity landscape of querying data through ontologies written in the Guarded Fragment (GF) of first-order logic. The authors identify large, practically relevant fragments that guarantee a sharp dichotomy between PTIME and coNP-hard data complexity, while proving that more expressive fragments lack such a dichotomy or fall into the "CSP-hard" category.
What Problem Does This Paper Address?
In Ontology-Mediated Querying (OMQ), a logical ontology is used to enrich incomplete data, providing domain knowledge that helps find more complete answers to queries. A central question in database theory is: How hard is it to compute these answers as the data grows?
Usually, researchers look at the complexity of an entire language (e.g., "all ontologies in this logic are PTIME"). However, this paper takes a more surgical approach, aiming to classify the complexity of individual ontologies. The goal is to find a dichotomy: a situation where every ontology is either "easy" (evaluable in PTIME) or "hard" (coNP-hard), with no "intermediate" complexity in between.
The authors focus on the Guarded Fragment (GF), a powerful logic that strikes a balance between expressivity and decidability, subsuming many popular Description Logics (DLs) used in the Semantic Web.
Methods
The authors employ several sophisticated theoretical tools to draw their complexity map:
- uGF (Unions of Guarded Fragment): They focus on a fragment of GF that is invariant under disjoint unions, which they call uGF. This is a mild restriction that covers most real-world use cases.
- Materializability & Unravelling Tolerance: They link PTIME complexity to two properties. Materializability means an ontology always allows for a "universal model" (a single representative structure that answers all queries). Unravelling tolerance means the ontology can't distinguish between a data instance and its tree-like "unravelling."
- Ladner’s Theorem Variation: To prove that some fragments lack a dichotomy, the authors established a new version of Ladner’s Theorem. This allows them to show the existence of "NP-intermediate" problems—problems that are harder than PTIME but not quite NP-hard.
- Mosaic Techniques: These were used to prove the decidability of whether a given ontology is actually in PTIME.
Datasets
To ground their theoretical work in practice, the authors analyzed 411 real-world ontologies from the BioPortal repository, a major collection of biomedical ontologies.
Key Insights and Ideas
The paper’s most significant contribution is the classification summarized in Figure 1:
- The Dichotomy Tier: For fragments like $uGF(1)$ and $ALCHIF$ (depth 2), a dichotomy exists. If an ontology in these fragments is in PTIME, it is also "Datalog-rewritable," meaning the query can be translated into a standard Datalog program.
- The CSP-Hard Tier: For fragments like $uGF_2(2)$, proving a dichotomy is as difficult as solving the famous Feder-Vardi conjecture on Constraint Satisfaction Problems.
- The "No Dichotomy" Tier: Once you add both functional roles and a quantifier depth of 2 (e.g., $uGF^-_2(2, f)$), the dichotomy vanishes. There are ontologies here with "intermediate" complexity.
- Practical Dominance: Surprisingly, the "easy" fragments aren't just theoretical toys. The vast majority of BioPortal ontologies fit into the fragments where a dichotomy exists.
Key Results
- BioPortal Coverage: Out of 411 ontologies, 405 (98.5%) had a depth of 2 and fell into a fragment with a proven dichotomy. 385 (93.6%) had a depth of 1.
- Decidability: The authors showed it is EXPTIME-complete to decide if an $ALCHIQ$ (depth 1) ontology admits PTIME query evaluation. For the more complex $uGC^-_2(1, =)$, they established a NEXPTIME upper bound.
- Undecidability: In the "No Dichotomy" tier (e.g., $ALCIF$ depth 2), it becomes undecidable to determine if an ontology is in PTIME or even if it is materializable.
Limitations and Future Work
- Open Decidability: While they found bounds for many fragments, the decidability of PTIME query evaluation for $ALC$ ontologies of depth 2 remains an open question (though they proved it is at least NEXPTIME-hard).
- Sharpening CSP Results: The authors suggest that the CSP-hardness results could potentially be sharpened to show full CSP-equivalence.
- Transitivity: The current study does not include ontologies that can declare binary relations as transitive, which is a common feature in some Description Logics. Exploring how transitivity affects these dichotomies is a suggested next step.
Summary updated