Controlled Query Evaluation over Lightweight Ontologies

Bernardo Cuenca Grau, Evgeny Kharlamov, Egor V. Kostylev, Dmitriy Zheleznyakov

Introduction

In the evolving landscape of the Semantic Web, ontologies serve as critical frameworks for structuring vocabularies and defining the logical relationships within complex datasets. While these structured rules enhance data integration and query capabilities, they simultaneously introduce significant security vulnerabilities. Specifically, a user might exploit public ontological rules to infer sensitive "secret" facts from otherwise innocuous query results. This research addresses the challenge of Controlled Query Evaluation (CQE): the development of "censors" that sit between the user and the database to ensure that no forbidden information can be deduced, while still maximizing the utility of the returned data.

The Dual Approach: View and Obstruction Censors

The paper proposes two primary architectural strategies for implementing CQE, tailored to different data management environments:

  1. View Censors: This approach involves generating a "safe" version of the dataset—a filtered view. When a user submits a query, the system evaluates it against this pre-processed view rather than the original database. This method is particularly effective for RDF-based systems, such as triple stores, where data can be modified or pre-filtered before exposure.
  2. Obstruction Censors: Rather than altering the underlying data, obstruction censors maintain a set of "forbidden query patterns" or obstructions. If a query result matches an obstruction, it is blocked. This is the preferred method for Ontology-Based Data Access (OBDA), where data resides in traditional relational databases (RDBMS) that should remain untouched.

A key finding of this research is the Duality Gap: although these two methods appear to be functional mirrors of one another, they are not perfectly interchangeable. Certain security configurations can be effectively managed by a view censor but not an obstruction censor, and vice versa.

Formal Foundations and Logical Complexity

To establish a rigorous framework, the authors utilize formal logic, specifically Datalog and Horn-SROIF. These logics allow for the precise definition of how secrets might be inferred through chains of reasoning.

Logical rules defining the ontology and security constraints.

The complexity of these rules (as seen in Figure 2) highlights the difficulty of maintaining optimality. For ontologies involving recursion, transitivity, or equality, an "optimal" censor—one that returns the absolute maximum amount of safe data—may theoretically require an infinite amount of information to be perfectly precise. To navigate this, the authors employ Skolemization, a technique that simplifies "existential" knowledge (e.g., "Every person has a parent") into Datalog rules, making the censorship problem computationally tractable.

Illustrative Example: Movie Preferences

The practical implications of these censors are best understood through illustrative examples. The authors use a social network movie-preference ontology to demonstrate how security policies interact with data relationships.

A social network movie-preference ontology used to illustrate policy interactions.

In Figure 1, nodes represent individuals (John, Bob) and their attributes or preferences. Relationships like MovFan (Movie Fan) and ThrFan (Thriller Fan) are mapped. A security policy might dictate that Bob's specific interest in thrillers is a secret. The censor must then ensure that no combination of queries about Bob's other interests or his social connections to John allows a user to infer that secret fact.

Key Results for OWL 2 Profiles

The research provides concrete results for the lightweight profiles of OWL 2, which are standard for large-scale data integration:

  • OWL 2 QL: The authors demonstrate that for any CQE instance within this profile, a unique optimal obstruction censor always exists and can be computed in polynomial time. This confirms that CQE is highly practical for web-scale applications.
  • OWL 2 RL: The study identifies algorithms for "Guarded RL" ontologies. While these can occasionally lead to exponential view sizes, a specific sub-class termed "multi-linear RL" allows for optimal views that remain polynomial in size.
  • Non-Existence Proofs: Critically, the paper identifies the boundaries of CQE, proving that no optimal censor can exist if an ontology combines certain features, such as transitivity with "Self" restrictions.

Conclusion and Future Work

This work establishes a robust theoretical and algorithmic foundation for enforcing data confidentiality in ontology-based systems. By identifying the conditions under which optimal censors exist and can be efficiently computed, the authors provide a roadmap for secure data integration.

Future research will focus on expanding the framework to handle complex policies. Currently, the system protects simple facts (ground atoms), but real-world requirements often involve more nuanced rules. Additionally, the authors plan to implement these algorithms using high-performance engines like RDFox to validate their performance against massive, real-world datasets.

Summary updated

BibTeX
@inproceedings{grau2014controlled,
  author = {Bernardo Cuenca Grau and Evgeny Kharlamov and Egor V. Kostylev and Dmitriy Zheleznyakov},
  title = {{Controlled Query Evaluation over Lightweight Ontologies}},
  booktitle = {Description Logics},
  year = {2014},
}
Figure