A General Sufficient Condition for Rewriting Horn-ALCHI Atomic Queries into GQL
This paper introduces DL automata to identify a broad class of Horn-ALCHI ontology-mediated atomic queries that can be rewritten into unions of conjunctive two-way regular path queries (UC2RPQs), a central fragment of the new ISO standard GQL, by employing state stratification to eliminate complexity-raising cyclic dependencies.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to find a specific friend in a massive, ever-changing city. You have a map (the database) showing where people are right now, but you also have a set of "rules of the city" (the ontology) that tell you things the map doesn't show directly. For example, the rules might say, "If someone is standing next to a gate, they are also standing next to a link," or "If you are a trusted user, you must be connected to a sensitive node." In the world of computer science, this is called Ontology-Mediated Querying. It's like asking a librarian not just for books on the shelf, but for books that must exist based on the library's cataloging rules.
The challenge arises when these rules get complicated. Sometimes, figuring out if a fact is true requires following a long, winding chain of logic that loops back on itself, like a maze. Traditional database tools are great at simple lookups, but they often get stuck or crash when faced with these complex, looping rules. Enter GQL (Graph Query Language), a new, powerful standard for asking questions about networks. It's like upgrading from a simple paper map to a GPS that can handle complex routes and "what-if" scenarios. The big question scientists have been asking is: Can we translate these tricky, looping rules into GQL so that standard database tools can solve them?
This paper, titled "A General Sufficient Condition for Rewriting Horn-ALCHI Atomic Queries into GQL," tackles that exact puzzle. The authors, David Carral, Calixte Gruson, and Quentin Manière, focus on a specific, powerful type of rule system called Horn-ALCHI. Think of this as a very expressive language for describing how things in a network relate to one another. While this language is great for describing complex worlds, it's notoriously difficult to translate into standard database queries because it allows for "infinite loops" of logic that traditional tools can't handle.
The authors' main discovery is a "magic key" or a specific condition that tells us exactly when these complex rules can be safely translated into GQL. They introduce a new tool called a DL automaton. Imagine this as a tiny, digital robot that walks through your data. Instead of trying to solve the whole puzzle at once, the robot follows a set of instructions (transitions) to see if it can reach a "winning state." If the robot can find a path to the winner, the answer to your query is "yes."
The clever part of their work is identifying a specific type of robot that is guaranteed to work. They call these stratified automata. To understand "stratified," imagine a multi-story building. In a normal building, you might have an elevator that goes from the 10th floor to the 1st, then back to the 10th, creating a confusing loop. A "stratified" building, however, is designed so that you can only move up or stay on the same floor; you can never go back down to a floor you've already visited in a way that creates a confusing cycle. The authors prove that if their robot (the automaton) is built like this "stratified" building—meaning its logic doesn't get stuck in certain kinds of circular dependencies—then it can be perfectly translated into a GQL query.
They show that this condition is broad enough to cover many real-world scenarios that previous methods missed. For instance, they demonstrate that a query about "Trusted Users" in a computer network (which involves checking for links to sensitive nodes and gateways) fits this "stratified" pattern and can be rewritten into GQL. However, they also implicitly rule out the idea that all Horn-ALCHI queries can be rewritten; if the logic creates a specific type of loop that violates the "stratified" building rules, the translation fails.
The paper doesn't just guess; it provides a rigorous mathematical proof. They show step-by-step how to take a complex Horn-ALCHI rule set, turn it into a DL automaton, check if it's stratified, and if so, convert it into a GQL query. They also prove that their method covers more ground than previous attempts, including some complex cases that other researchers had deemed untranslatable. While they don't claim to have solved every possible case (some loops are still too tangled), they have provided a solid, provable method for a large and useful class of problems, opening the door for complex semantic web queries to run on modern graph databases.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.