Querying incomplete data with logic programs: ER strikes back

  • Authors:
  • Andrea Calì

  • Affiliations:
  • Computing Laboratory, University of Oxford, Oxford, United Kingdom and Faculty of Computer Science, Free University of Bozen-Bolzano, Bolzano, Italy

  • Venue:
  • ER'07 Proceedings of the 26th international conference on Conceptual modeling
  • Year:
  • 2007

Quantified Score

Hi-index 0.01

Visualization

Abstract

Since Chen's Entity-Relationship (ER) model, conceptual modelling has been playing a fundamental role in relational data design. In this paper we consider an extended ER model enriched with cardinality constraints, disjunction assertions, and is-a relations among both entities and relationships; we present a framework in which the data underlying an ER schema can be directly queried through the schema by using suitable predicates. In this setting, we consider the case of incomplete data, which is likely to happen, for instance, when data from different sources are integrated. We address the problem of providing correct answers to conjunctive queries by reasoning on the schema. Based on previous results about decidability of the problem, we provide a query answering algorithm based on rewriting the initial query into a recursive Datalog query, in which the information about the schema is encoded.We finally give some complexity results, and we show extensions to more general settings.