[Paper Review] Answering Conjunctive Queries over $\mathcal{EL}$ Knowledge Bases with Transitive and Reflexive Roles
This paper presents a novel, practical NP algorithm for answering conjunctive queries (CQs) over $ε\mathcal{ELHO}^{s}$ knowledge bases—$ε\mathcal{EL}$ extended with transitive and reflexive roles—completing the complexity landscape for this setting. The approach combines datalog evaluation with a goal-directed filtering procedure that runs in nondeterministic polynomial time, proving optimal for arborescent and acyclic queries under transitive/reflexive roles.
Answering conjunctive queries (CQs) over $\mathcal{EL}$ knowledge bases (KBs) with complex role inclusions is PSPACE-hard and in PSPACE in certain cases; however, if complex role inclusions are restricted to role transitivity, the tight upper complexity bound has so far been unknown. Furthermore, the existing algorithms cannot handle reflexive roles, and they are not practicable. Finally, the problem is tractable for acyclic CQs and $\mathcal{ELH}$, and NP-complete for unrestricted CQs and $\mathcal{ELHO}$ KBs. In this paper we complete the complexity landscape of CQ answering for several important cases. In particular, we present a practicable NP algorithm for answering CQs over $\mathcal{ELHO}^s$ KBs---a logic containing all of OWL 2 EL, but with complex role inclusions restricted to role transitivity. Our preliminary evaluation suggests that the algorithm can be suitable for practical use. Moreover, we show that, even for a restricted class of so-called arborescent acyclic queries, CQ answering over $\mathcal{EL}$ KBs becomes NP-hard in the presence of either transitive or reflexive roles. Finally, we show that answering arborescent CQs over $\mathcal{ELHO}$ KBs is tractable, whereas answering acyclic CQs is NP-hard.
Motivation & Objective
- To close the open complexity gap for conjunctive query answering over $ε\mathcal{EL}$ KBs with transitive and reflexive roles.
- To develop a practical algorithm that handles complex role inclusions restricted to transitivity, overcoming limitations of prior automata-based PSPACE approaches.
- To establish tight complexity bounds for arborescent and acyclic CQs in the presence of transitive or reflexive roles.
- To demonstrate that filtering candidate answers for soundness is NP-hard, thus proving the optimality of the proposed NP algorithm.
Proposed method
- Construct a datalog program from the $ε\mathcal{ELHO}^{s}$ KB to capture logical consequences.
- Evaluate the CQ over the datalog program to generate candidate answers.
- Apply a goal-directed filtering procedure to eliminate unsound candidates, with nondeterministic choices guided by query structure.
- Optimize the filtering step to reduce nondeterminism by focusing only on candidates involving existential knowledge and transitive/reflexive roles.
- Use reverse induction on query tree levels to compute answer sets, propagating constraints upward from leaves to root.
- Prove the filtering procedure runs in NP and is worst-case optimal by showing soundness checking is NP-hard.
Experimental results
Research questions
- RQ1What is the combined complexity of answering conjunctive queries over $ε\mathcal{ELHO}^{s}$ KBs with transitive and reflexive roles?
- RQ2Can a practical algorithm for CQ answering be designed for $ε\mathcal{ELHO}^{s}$ KBs, given the limitations of existing PSPACE algorithms?
- RQ3Is the filtering step for candidate answer validation in the presence of transitive/reflexive roles inherently NP-hard?
- RQ4How does the complexity of CQ answering change for arborescent and acyclic queries when transitive or reflexive roles are introduced?
- RQ5Is there a tractable algorithm for answering arborescent CQs over $ε\mathcal{ELHO}$ KBs, and is it optimal?
Key findings
- The combined complexity of answering CQs over $ε\mathcal{ELHO}^{s}$ KBs is NP-complete, and the proposed algorithm achieves this bound in practice.
- Filtering candidate answers for soundness is NP-hard, proving that the NP upper bound is worst-case optimal.
- Answering arborescent CQs over $ε\mathcal{EL}$ KBs becomes NP-hard when either transitive or reflexive roles are present.
- Answering unrestricted acyclic CQs over $ε\mathcal{ELHO}$ KBs is NP-hard, but becomes tractable for arborescent queries.
- The proposed algorithm exhibits pay-as-you-go behavior, with NP complexity only for queries depending on both existential knowledge and transitive/reflexive roles.
- Preliminary evaluation confirms the feasibility of the algorithm for practical use in many real-world scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.