The Combined Approach to Query Answering in DL-Lite

Similar documents
The Combined Approach to Query Answering in DL-Lite

The Combined Approach to Query Answering in DL-Lite

On (In)Tractability of OBDA with OWL 2 QL

Lightweight Description Logics: DL-Lite A and EL ++

Islands of tractability in ontology-based data access

The Combined Approach to Query Answering in DL-Lite

From Conjunctive Queries to SPARQL Queries in Ontology-Mediated Querying

The DL-Lite Family of Languages A FO Perspective

Query Answering in DL-Lite with Datatypes: A Non-Uniform Approach

Incremental Query Rewriting for OWL 2 QL

Long Rewritings, Short Rewritings

Query and Predicate Emptiness in Description Logics

Fuzzy Description Logics

Datalog : A Family of Languages for Ontology Querying

Modularity in DL-Lite

Exact Learning of TBoxes in EL and DL-Lite

Finite Model Reasoning in Horn-SHIQ

Ontology-Based Data Access with Closed Predicates Is Inherently Intractable (Sometimes)

On Prototypes for Winslett s Semantics of DL-Lite ABox Evolution

Reasoning about Explanations for Negative Query Answers in DL-Lite

The Combined Approach to OBDA: Taming Role Hierarchies using Filters

On Decidability and Tractability of Querying in Temporal EL

Topological Logics over Euclidean Spaces

Knowledge Base Exchange: The Case of OWL 2 QL

Understanding Inexpressibility of Model-Based ABox Evolution in DL-Lite

DL-Lite with Attributes and Sub-Roles (Full Version)

Representability in DL-Lite R Knowledge Base Exchange

Forgetting and uniform interpolation in large-scale description logic terminologies

Query and Predicate Emptiness in Ontology-Based Data Access

Polynomial Combined Rewritings for Existential Rules

Queries with Negation and Inequalities over Lightweight Ontologies

Data Complexity of Query Answering in Description Logics

Rewriting Ontological Queries into Small Nonrecursive Datalog Programs

The DL-Lite Family and Relations

DL-Lite with Temporalised Concepts, Rigid Axioms and Roles

Improving Query Answering over DL-Lite Ontologies

First Order-Rewritability and Containment of Conjunctive Queries in Horn Description Logics

Tractable Queries for Lightweight Description Logics

Role-depth Bounded Least Common Subsumers by Completion for EL- and Prob-EL-TBoxes

Conjunctive Regular Path Queries in Lightweight Description Logics

The DL-Lite Family and Relations

COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT

Tractability Guarantees for DL-Lite Query Answering

A New Approach to Knowledge Base Revision in DL-Lite

The DL-Lite Family and Relations

On the Succinctness of Query Rewriting for Datalog

Abstraction Refinement for Ontology Materialization

Inconsistency-Tolerant Conjunctive Query Answering for Simple Ontologies

Revision of DL-Lite Knowledge Bases

DESCRIPTION LOGICS. Paula Severi. October 12, University of Leicester

A Tractable Rule Language in the Modal and Description Logics that Combine CPDL with Regular Grammar Logic

On the Complexity of Consistent Query Answering in the Presence of Simple Ontologies

The semantics of ALN knowledge bases is the standard model-based semantics of rst-order logic. An interpretation I contains a non-empty domain O I. It

Optimized Query Rewriting in OWL 2 QL

Temporal OBDA with LTL and DL-Lite

From Conjunctive Queries to Instance Queries in Ontology-Mediated Querying

OntoRevision: A Plug-in System for Ontology Revision in

Query answering using views

Revising General Knowledge Bases in Description Logics

Tractable Queries for Lightweight Description Logics

Absorption for ABoxes

GAV-sound with conjunctive queries

A PSpace Algorithm for Acyclic Epistemic DL ALCS5 m

Structured Descriptions & Tradeoff Between Expressiveness and Tractability

A A Cookbook for Temporal Conceptual Data Modelling with Description Logics

Introducing Nominals to the Combined Query Answering Approaches for EL

Complexity of Reasoning in Entity Relationship Models

Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles*

Queries with Negation and Inequalities over Lightweight Ontologies

Complexity of Subsumption in the EL Family of Description Logics: Acyclic and Cyclic TBoxes

Capturing Instance Level Ontology Evolution for DL-Lite

Regular Path Queries in Lightweight Description Logics: Complexity and Algorithms

Downloaded from: Usage Guidelines

Nested Regular Path Queries in Description Logics

Dichotomies in Ontology-Mediated Querying with the Guarded Fragment

Completeness Guarantees for Incomplete Reasoners

Notes on DL-Lite. 2 Dip. di Informatica e Sistemistica

ALC Concept Learning with Refinement Operators

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms

CEX and MEX: Logical Diff and Semantic Module Extraction in a Fragment of OWL

1 Ontology-based Data Access: A Study through Disjunctive Datalog, CSP, and MMSNP

Description Logic TBoxes: Model-Theoretic Characterizations and Rewritability

Temporal Conjunctive Queries in Expressive Description Logics with Transitive Roles

Guaranteeing No Interaction Between Functional Dependencies and Tree-Like Inclusion Dependencies

Scalable Geo-thematic Query Answering

Temporal Query Answering in DL-Lite

Role Conjunctions in Expressive Description Logics

Tractable Lineages on Treelike Instances: Limits and Extensions

Temporalizing Rewritable Query Languages over Knowledge Bases

Compact Rewriting for Existential Rules

On the Relationship between Consistent Query Answering and Constraint Satisfaction Problems

Tailoring Temporal Description Logics for Reasoning over Temporal Conceptual Models

Fixpoints in Temporal Description Logics

An Introduction to Ontology-Based Query Answering with Existential Rules

Temporal Query Answering in the Description Logic EL

Ontology-Mediated Queries: Combined Complexity and Succinctness of Rewritings via Circuit Complexity

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation

Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back

On Bounded Positive Existential Rules

Transcription:

The Combined Approach to Query Answering in DL-Lite Roman Kontchakov Department of Computer Science and Inf. Systems, Birkbeck College, London http://www.dcs.bbk.ac.uk/~roman joint work with Carsten Lutz, David Toman, Frank Wolter and Michael Zakharyaschev

Pure Query Rewriting DL-Lite family includes the first DLs specifically tailored for effective query answering over large amounts of instances. D. Calvanese et al., 2007 effective = in AC 0 for data complexity conjunctive query q TBox T + union of conjunctive queries q ABox A ABox A KRDB, Bolzano 23.02.10 0

Pure Query Rewriting: an Example of PerfectRef q(x) TeachesTo(x, y), HasTutor(y, z) q(x) TeachesTo(x, y), Student(y) Student HasTutor HasTutor(x 1, y 1 ) Student(x 1 ) TeachesTo Student Student(x 2 ) TeachesTo(y 2, x 2 ) q(x) TeachesTo(x, y), TeachesTo(x 2, y) q(x) TeachesTo(x, y) q(x) Professor(x) q(x) HasTutor(y 4, x) unification Professor TeachesTo TeachesTo(x 3, y 3 ) Professor(x 3 ) HasTutor Professor Professor(x 4 ) HasTutor(y 4, x 4 ) Intuitive! NB. what if Student has many subclasses? TeachesTo? O(( T q ) q ) subqueries KRDB, Bolzano 23.02.10 1

Combined Approach in EL (Lutz, Toman & Wolter, 2008) query answering in EL is PTIME-complete for data complexity conjunctive query q + FO query q TBox T + ABox A ABox A A is computed in polytime in A and only when A is updated KRDB, Bolzano 23.02.10 2

Variants of DL-Lite R ::= P P C ::= A kr TBox concept inclusions DL-Lite N horn : C 1 C n C DL-Lite N core : C 1 C 2, C 1 C 2 ABox assertions: C(a), R(a, b) DL-Lite F α = DL-LiteN α with R and 2 R only DL-Lite (HN ) α = DL-Lite N α DL-Lite (HF) α = DL-Lite F α with (restricted) role inclusions, role disjointness, etc. with (restricted) role inclusions, role disjointness, etc. In all these languages, answering positive existential queries (under UNA) is in AC 0 for data complexity positive existential formulas are built from A(x) and R(x, y) using, and KRDB, Bolzano 23.02.10 3

ABox Expansion in DL-Lite canonical interpretation I K : I = Ind(A) {c R R is generating in K} a c R1 c Rn R n is generating K = R 1 (a) but R 1 (a, b) / A for all b Ind(A) T = R i R i+1 and R i R i+1 A I K = {a K = A(a)} {c R T = R A} P I K = {(a, b) P (a, b) A} {(d, c P ) d c P } {(c P, d) d c P } I K is not a model T = {A P, 2 P }, A = {A(a), A(b)} I K does not give the right answers q = v P (v, v), T = {A P, P P }, A = {A(a)} q = v 2 (P (v 1, v 2 ) P (v 3, v 2 )), T = {A P }, A = {A(a), A(b)} The unravelling U K is almost a (canonical) model of I K and does give the right answers KRDB, Bolzano 23.02.10 4

Query Rewriting for DL-Lite N horn (1) we rewrite a given CQ q into an FO query q such that answers to q in U K = answers to q in I K q = O( q T ) q = u (ϕ ϕ 1 ϕ 2 ϕ 3 ) ϕ 1 = v / u (v c R ) R is a role in T all answer variables must get ABox values NB. if ϕ 1 is replaced with ϕ 1 = aux(v), where aux is a new relation containing all c R, v / u then q = O( q ) KRDB, Bolzano 23.02.10 5

Query Rewriting for DL-Lite N horn (2) answers to q in U K = answers to q in I K U K is a forest model, so if t is matched to a non-abox element then a part of q containing t must be homomorphically embeddable into a tree a tree witness f R,t : term(q) (N R ) (finite words over roles) f R,t (t) = ε if f R,t (s) = ε and R(s, s ) q then f R,t (s ) = R if f R,t (s) = w S and S (s, s ) q with S S then f R,t (s ) = w S S if f R,t (s) = w S and S (s, s ) q then f R,t (s ) = w q = v P (v, v): f P,v does not exist q = v 2 (P (v 1, v 2 ) P (v 3, v 2 )): P P,v1 (v 3 ) = ε q = t 1 t 2 t 3 t 4 (R(t 1, t 2 ) S(t 2, t 3 ) S(t 4, t 3 )): f R,t1 (t 2 ) = R, f R,t1 (t 1 ) = ε, f R,t1 (t 3 ) = R S, f R,t1 (t 4 ) = R, f S,t4 (t 3 ) = S, f S,t4 (t 4 ) = ε, f S,t4 (t 2 ) = ε, f S,t4 (t 1 ) is not defined KRDB, Bolzano 23.02.10 6

Query Rewriting for DL-Lite N horn (3) ϕ 2 = R(t,t ) q f R,t does not exist (t c R ) if no tree witness exists then t cannot be mapped to a non-abox element ϕ 3 = R(t,t ) q f R,t exists ( (s = c R ) R(s,s ) q f R,t (s)=ε f R,t (s)=ε ) (s = t) if both s and t are labelled with ε for role R and s is mapped onto c R, for R(s, s ) q, then s = t NB. in fact, f R,t (s) = ε induces an equivalence relation R q, and so, ϕ 3 = O( q ) KRDB, Bolzano 23.02.10 7

Canonical Interpretation by FO Queries regard the ABox as a relational instance and then define (domain-independent) FO-queries q T A (x) and qt P (x, y) constructing I K 1. for each concept C, define queries exp T,j C (x): e.g., (extension of concept C on step j of the SLD derivation) exp T,0 (x) = A(x) A exp T,j+1 C (x) = exp T,j no more than T steps required C (x) C 1...C n C 1 i n exp T,j C i (x) 2. q T P (x, y) = P (x, y) ( gen T P (x) (y = c P ) ) ( gen T P (y) (x = c P ) ) 3. q T A (x) = expt A (x) D(x), where D(x) = c R N T I ( (x = cr ) z gen T R (z)) such queries can be implemented as materialised views (updates!) Example: h(x, y) = h(x, y) h = hastutor, t = teachesto ( ( y h(x, y ) S(x) (x = c t ) y t(y, x)) y h(x, y ) (y = c h ) ) z ( ( y t(z, y ) P(z) (z = c h ) y h(y, z)) y t(z, y ) (x = c t ) (y = c h ) ) KRDB, Bolzano 23.02.10 8

Combining the two Rewriting Steps polynomial pure query rewriting for DL-Lite F core and even for DL-Lite N core (if the aggregation function COUNT is available) otherwise exp T,0 k R (x) = O(k2 ), which is exponential in T if binary coding of k is used Example: ( q(x) = (x c h ) (x c t ) t(x, y) ( (P(x) y h(y, x)) y t(x, y ) (y = c t ) ) w ( (S(w) y t(y, w)) y h(w, y ) (x = c h ) (y = c t ) )) ( h(y, z) ( (S(y) z t(z, y)) z h(y, z ) (z = c h ) ) w ( (P(w ) z h(z, w )) z t(w, z ) (y = c t ) (z = c h ) )) which is equivalent to q(x) = t(x, y) P(x) y h(y, x) KRDB, Bolzano 23.02.10 9

Other Applications of the Technique only exponential blowup for positive existential query answering in DL-Lite (HN ) horn without the UNA, the technique is applicable to query answering in DL-Lite (HF) horn experiments show that the approach is competitive (and this is P-complete for data complexity) with executing the original query over the data (the formulas ϕ 1 ϕ 3 introduce additional selection conditions on top of the original query) Open Questions is the exponential blowup unavoidable for role inclusions? is the exponential blowup unavoidable for positive existential queries? are there other fragments with pure polynomial rewriting? more at http://www.dcs.bbk.ac.uk/~roman/ KRDB, Bolzano 23.02.10 10