Conjunctive Query Containment and Answering under Description Logics Constraints

Diego Calvanese, Giuseppe De Giacomo, and Maurizio Lenzerini

ACM Trans. on Computational Logic. 9(3):22.1--22.31 2008.

Query containment and query answering are two important computational tasks in databases. While query answering amounts to compute the result of a query over a database, query containment is the problem of checking whether for every database, the result of one query is a subset of the result of another query. In this paper, we deal with unions of conjunctive queries, and we address query containment and query answering under Description Logic constraints. Every such constraint is essentially an inclusion dependencies between concepts and relations, and their expressive power is due to the possibility of using complex expressions, e.g., intersection and difference of relations, special forms of quantification, regular expressions over binary relations, in the specification of the dependencies. These types of constraints capture a great variety of data models, including the relational, the entity-relationship, and the object-oriented model, all extended with various forms of constraints. They also capture the basic features of the ontology languages used in the context of the Semantic Web. We present the following results on both query containment and query answering. We provide a method for query containment under Description Logic constraints, thus showing that the problem is decidable, and analyze its computational complexity. We prove that query containment is undecidable in the case where we allow inequalities in the right-hand side query, even for very simple constraints and queries. We show that query answering under Description Logic constraints can be reduced to query containment, and illustrate how such a reduction provides upper bound results with respect to both combined and data complexity.


@article{TOCL-2008,
   title = "Conjunctive Query Containment and Answering under Description
Logics Constraints",
   year = "2008",
   author = "Diego Calvanese and De Giacomo, Giuseppe and Maurizio
Lenzerini",
   journal = "ACM Trans. on Computational Logic",
   pages = "22.1--22.31",
   number = "3",
   volume = "9",
   doi = "10.1145/1352582.1352590",
}
pdf url