Abstract
This research explores the integration of XPath, the standard for querying semi-structured data, with Description Logic (DL) ontologies. While full XPath is undecidable under the Open World Assumption, the authors identify specific fragments—such as positive and path-positive DLXPath—that offer a balance between expressive power and computational feasibility for "lightweight" DLs like DL-Lite and $\mathcal{EL}$.
Introduction: The Challenge of Graph-Structured Knowledge
In the Semantic Web, knowledge is often modeled using Description Logics (DLs). A common task is Ontology-Based Data Access (OBDA), where an ontology serves as a conceptual view over data sources, allowing users to query information using terms from the ontology rather than the underlying database schema. This approach is vital for integrating heterogeneous data sources in large enterprises or scientific domains.
Traditionally, Conjunctive Queries (CQs) have been the standard for OBDA. However, ontologies are inherently graph-structured, with concepts as nodes and roles as edges. While Regular Path Queries (RPQs) are useful for navigation, they lack the sophisticated branching and "look-ahead" capabilities of XPath. XPath allows for complex node tests and negation (e.g., "Find a flight to a city that is not in a conflict zone"). The difficulty lies in the Open World Assumption (OWA): in DLs, what isn't explicitly stated isn't necessarily false. Combining this with XPath's navigational power creates significant computational risks that this paper seeks to mitigate.
Methods: Defining DLXPath
The authors introduce DLXPath, adapting XPath for DL contexts. They define the language's semantics formally to handle the interaction between path expressions and logical concepts.
To identify where complexity becomes unmanageable, the language is divided into fragments based on two main criteria:
- Core vs. Regular: The "Core" fragment limits transitive closure to basic roles, simplifying the search space. In contrast, "Regular" allows it over complex path expressions, enabling queries like "find all descendants connected by any combination of parent or guardian roles."
- Negation Levels: Fragments range from "Full" (negation allowed anywhere) to "Path-positive" (negation only on nodes) and "Positive" (no negation at all).
The analysis relies on a connection between XPath and Propositional Dynamic Logic (PDL). By treating query answering as a satisfiability problem in PDL extensions, the authors map the complexity for the DL-Lite and $\mathcal{EL}$ families.
Key Insights
- The Undecidability Wall: Full DLXPath is undecidable even without an ontology. The OWA combined with path negation ($\bar{\alpha}$) allows for encoding complex, non-terminating tiling problems.
- The Negation Trade-off: Removing path negation immediately makes the problem decidable. The "villain" of complexity is the ability to say "a path that is not X."
- Structural Robustness: Surprisingly, the complexity "jumps" occur at the same linguistic features regardless of whether the underlying ontology uses DL-Lite or $\mathcal{EL}$.
Key Results
The research provides a comprehensive complexity map for different DLXPath fragments, highlighting the trade-offs between expressivity and performance.
- Full DLXPath: Remains undecidable for both data and combined complexity across all tested DLs.
- Path-Positive Fragment ($DLXPath^{path-pos}$): This fragment is coNP-complete for data complexity and EXPTIME-complete for combined complexity. While computationally demanding, it is a massive improvement over undecidability.
- Positive Fragments ($DLXPath_{core}^{pos}$ and $DLXPath_{reg}^{pos}$): These represent the "sweet spot." For DL-Lite, data complexity is NLOGSPACE-complete (efficiently solvable). For $\mathcal{EL}$, it is PTIME-complete. Combined complexity ranges from NP-complete to EXPTIME-complete.
Conclusion and Future Work
While decidable fragments with node negation are coNP-hard, they offer a path toward practical implementation. The authors suggest that the next steps involve developing reliable heuristics for path-positive fragments and testing these in real-world OBDA systems, particularly in fields like bioinformatics where complex graph patterns are prevalent.
Summary updated