Import-by-Query: Ontology Reasoning under Access Limitations

Bernardo Cuenca Grau, Boris Motik, Yevgeny KazakovIJCAI 2009 · OpenReview

Abstract

To enable ontology reuse, the Web Ontology Language (OWL) allows an ontology $\mathcal{K}_v$ to import an ontology $\mathcal{K}_h$. Standard reasoning requires physical access to $\mathcal{K}_h$'s axioms. However, privacy or intellectual property concerns may lead authors to provide only an oracle for queries rather than the full source. This paper investigates "import-by-query" algorithms that can reason over $\mathcal{K}_v \cup \mathcal{K}_h$ by accessing only $\mathcal{K}_v$ and the oracle. The authors prove that no such algorithm exists in general when roles are shared and identify specific restrictions, particularly for Horn description logics, under which importing by query becomes feasible.

What Problem Does This Paper Address?

In the Semantic Web, ontologies are designed for reuse. A local "visible" ontology ($\mathcal{K}_v$) might import a "hidden" reference ontology ($\mathcal{K}_h$). For instance, a hospital's private database might use SNOMED-CT terms to define patient conditions. Standard reasoning tools require physical access to all underlying rules (axioms) of both ontologies. However, the owner of a reference ontology might be reluctant to share their full source to prevent plagiarism or protect sensitive data. They might instead offer an oracle: a limited interface that answers specific queries (e.g., "Is this concept satisfiable?") without revealing the internal logic.

The central question is: Can we still perform full logical reasoning on our local ontology if the imported one is a "black box" accessible only via queries?

Example of Hidden ($K_h$) and Visible ($K_v$) Knowledge Bases using medical concepts.

Methods

The paper formalizes the Import-by-Query problem, where $\mathcal{K}_v$ reuses symbols from $\mathcal{K}_h$. Key methodological contributions include:

  • Impossibility Proof: The authors demonstrate that if both ontologies use "roles" (binary relationships like hasPart) without restrictions, no algorithm can correctly reason across them using only a concept-query interface.
  • Algorithm for Atomic Concepts: For cases where only concepts (classes) are shared, they propose an algorithm that queries the oracle for combinations of shared concepts to build a "proxy" set of rules for local reasoning.
  • Goal-Oriented Tableau for Horn DLs: Recognizing that checking every combination is computationally expensive (N2EXPTIME), they develop a more practical "on-demand" algorithm for Horn ontologies. This approach only queries the oracle when the local reasoning process specifically needs to know if a certain combination of properties is valid.
  • Syntactic Restrictions for Roles: They identify specific "modal" restrictions that allow roles to be shared safely without breaking the reasoning process.
Formal semantics for concept interpretation and axiom satisfaction in Description Logics.

Datasets

This is a theoretical paper focused on formal logic and computational complexity. Consequently, no empirical datasets or benchmarks were used for evaluation. The authors use a small, illustrative example involving heart defects (CHD, VSD) and patient records to demonstrate the concepts, as shown in the knowledge base split in Figure 2.

Key Insights and Ideas

  • The Quantifier Depth Trap: General import-by-query fails with roles because an oracle cannot easily communicate the "depth" of relationships. A local ontology might require a chain of relationships ten levels deep, but the oracle might only be prepared to answer questions about immediate properties.
  • Modularity is Key: For this to work, the visible ontology must be "local" to the shared signature—meaning it shouldn't change the fundamental meaning of the terms it's borrowing from the hidden ontology.
  • Stitching Models Together: The core insight for their successful algorithms is that a model for the combined ontology can be constructed by taking a model of the visible part and "plugging in" models of the hidden part at every point where they overlap.
  • Horn Logic Advantage: If the hidden ontology is "Horn" (a fragment of logic that behaves more deterministically), reasoning is much more efficient because the intersection of models is still a model, avoiding the exponential explosion of checking every possible logical selection.

Key Results

  • Theorem 1: Proves that no import-by-query algorithm exists for the light-weight description logic $\mathcal{EL}$ if roles are shared.
  • Complexity: The general algorithm for sharing atomic concepts is shown to be in N2EXPTIME, which provides a theoretical baseline for what is possible.
  • Practicality: The authors successfully extended standard "tableau" reasoning algorithms (used in tools like Pellet or HermiT) to handle hidden Horn ontologies by adding a new "ask-rule" to the reasoning process.

Limitations and Future Work

  • Role Restrictions: The current solutions for sharing roles are quite restrictive. In many real-world ontologies, roles are central to the definitions, and the current "modal" restrictions might be too limiting for some applications.
  • Oracle Query Language: The paper assumes a simple "satisfiability" oracle. Future work could explore richer query languages (like conjunctive queries) which might allow for more powerful reasoning even with fewer restrictions.
  • Performance: While the Horn algorithm is "practical," its performance on massive, real-world ontologies hasn't been tested in this paper. Future work would involve implementing these algorithms in a production-grade reasoner to measure real-world latency.

Summary updated

Abstract

To enable ontology reuse, the Web Ontology Language (OWL) allows an ontology κv to import an ontology κh. To reason with such a κv, a reasoner needs physical access to the axioms of κh. For copyright and/or privacy reasons, however, the authors of κh might not want to publish the axioms of κh; instead, they might prefer to provide an oracle that can answer a (limited) set of queries over κh, thus allowing κv to import κh "by query." In this paper, we study import-by-query algorithms, which can answer questions about κv ∪ κh by accessing only κv and the oracle. We show that no such algorithm exists in general, and present restrictions under which importing by query becomes feasible.
BibTeX
@inproceedings{grau2009import,
  author = {Bernardo Cuenca Grau and Boris Motik and Yevgeny Kazakov},
  title = {{Import-by-Query: Ontology Reasoning under Access Limitations}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2009},
  url = {https://openreview.net/forum?id=r1EM-Nz_Wr},
}

Loading related content...

Figure