News on Temporal Conjunctive Queries Veronika Thost TU Dresden - - PowerPoint PPT Presentation

news on temporal conjunctive queries
SMART_READER_LITE
LIVE PREVIEW

News on Temporal Conjunctive Queries Veronika Thost TU Dresden - - PowerPoint PPT Presentation

News on Temporal Conjunctive Queries Veronika Thost TU Dresden WSP@ISWC October 22, 2017 Ontology-Based Data Access Use Case: Finding Participants for Clinical Trial Example 1 Previously infected with VZV or previously vaccinated with VZV


slide-1
SLIDE 1

News on Temporal Conjunctive Queries

Veronika Thost TU Dresden WSP@ISWC October 22, 2017

slide-2
SLIDE 2

Ontology-Based Data Access

Use Case: Finding Participants for Clinical Trial Example1

  • Previously infected with VZV or previously vaccinated with VZV vaccine
  • No Allergy to VZV vaccine

1https://clinicaltrials.gov/ct2/show/NCT01953900 2 / 8

slide-3
SLIDE 3

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV?

3 / 8

slide-4
SLIDE 4

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV? SELECT ID FROM Pat WHERE Pat.PID=Find.PID & Find.TYPE=VZVInfect

3 / 8

slide-5
SLIDE 5

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV? Patient VZV Virus Chickenpox VZVInfection HasFinding Allergy ∃AllergyTo

3 / 8

slide-6
SLIDE 6

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV? Patient VZV Virus Chickenpox VZVInfection HasFinding Allergy ∃AllergyTo

3 / 8

slide-7
SLIDE 7

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding

AllergyTest = pos

Patients infected with VZV? Patient VZV Virus Chickenpox VZVInfection HasFinding Allergy ∃AllergyTo

3 / 8

slide-8
SLIDE 8

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV? Patient VZV Virus Chickenpox VZVInfection HasFinding Allergy ∃AllergyTo Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-9
SLIDE 9

Ontology-Based Data Access

PID Name 1 Ann 2 Bob 3 Chris PID Finding Date 1 Chickenpox 08/2017 2 VZV-Infection 01/2010 3 VZV-Infection 11/2011 PID AllergyTest Date 1 neg 07/2017 2 pos 09/2017 3 neg 06/1970 Patient Test Finding Patients infected with VZV? Answer: x Patient(x) ∧ ∃y.HasFinding(x, y) ∧ VZVInfection(y) Patient VZV Virus Chickenpox VZVInfection HasFinding Allergy ∃AllergyTo Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-10
SLIDE 10

Ontology-Based Data Access

Patient Test Finding Patients infected with VZV? Answer: x Patient(x) ∧ ∃y.HasFinding(x, y) ∧ VZVInfection(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) HasFinding Allergy ∃AllergyTo Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-11
SLIDE 11

Ontology-Based Data Access

Patient Test Finding Patients infected with VZV? Answer: x Patient(x) ∧ ∃y.HasFinding(x, y) ∧ VZVInfection(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-12
SLIDE 12

Ontology-Based Data Access

Patient Test Finding Patients infected with VZV? Answer: x = ann Patient(x) ∧ ∃y.HasFinding(x, y) ∧ VZVInfection(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-13
SLIDE 13

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob)

3 / 8

slide-14
SLIDE 14

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-15
SLIDE 15

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient(x) ∧ P∃y.HasFinding(x, y) ∧ VZVInfection(x) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-16
SLIDE 16

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient(x) ∧ P∃y.HasFinding(x, y) ∧ VZVInfection(x) ∧ ¬∃y.AllergyTo(x, y) ∧ VZVVaccine(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-17
SLIDE 17

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient(x) ∧ P∃y.HasFinding(x, y) ∧ VZVInfection(x) ∧ ¬∃y.AllergyTo(x, y) ∧ VZVVaccine(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) Patient(ann) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-18
SLIDE 18

Ontology-Based Data Access: Temporal Queries

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient(x) ∧ P∃y.HasFinding(x, y) ∧ VZVInfection(x) ∧ ¬∃y.AllergyTo(x, y) ∧ VZVVaccine(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) Patient(ann) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) ¬∃AllergyTo(ann) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-19
SLIDE 19

Ontology-Based Data Access: Temporal Queries

with Rigid Symbols

Patient Test Finding Patients infected with VZV previously, not allergic to VZV vaccine (now)? Patient(x) ∧ P∃y.HasFinding(x, y) ∧ VZVInfection(x) ∧ ¬∃y.AllergyTo(x, y) ∧ VZVVaccine(y) Patient ∀x.VZV(x) → Virus(x) ∀x.Chickenpox(x) → VZVInfection(x) ∀xy.HasFinding(x, y) ∧ Allergy(y) → ∃AllergyTo(x) Patient(ann) Patient(ann) Patient(ann) ¬∃AllergyTo(ann) HasFinding(ann, f1) ¬∃AllergyTo(ann) Chickenpox(f1) Patient(bob) 07/17 08/17 09/17

3 / 8

slide-20
SLIDE 20

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

4 / 8

slide-21
SLIDE 21

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

TCQ q1, q2 := CQ q | ¬q1 (not) | q1 ∧ q2 (and) | q1 ∨ q2 (or) |

4 / 8

slide-22
SLIDE 22

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

TCQ q1, q2 := CQ q | ¬q1 (not) | q1 ∧ q2 (and) | q1 ∨ q2 (or) | F q1 (next) | Pq1 (previous) | q1 Pq1

4 / 8

slide-23
SLIDE 23

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

TCQ q1, q2 := CQ q | ¬q1 (not) | q1 ∧ q2 (and) | q1 ∨ q2 (or) | F q1 (next) | Pq1 (previous) | q1 U q2 (until) | q1 S q2 (since) q1 Pq1 q1 S q2 q2 q1

4 / 8

slide-24
SLIDE 24

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

TCQ q1, q2 := CQ q | ¬q1 (not) | q1 ∧ q2 (and) | q1 ∨ q2 (or) | F q1 (next) | Pq1 (previous) | q1 U q2 (until) | q1 S q2 (since) q1 Pq1 q1 S q2 q2 q1 → Pq2 := true S q2 (some time in the past)

4 / 8

slide-25
SLIDE 25

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL

TCQ q1, q2 := CQ q | ¬q1 (not) | q1 ∧ q2 (and) | q1 ∨ q2 (or) | F q1 (next) | Pq1 (previous) | q1 U q2 (until) | q1 S q2 (since) q1 Pq1 q1 S q2 q2 q1 → Pq2 := true S q2 (some time in the past) Semantics: sequences of DL interpretations I = (∆, Ii)i∈N

Example

I, 3 | = PPatient(ann) iff I2 | = Patient(ann)

4 / 8

slide-26
SLIDE 26

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL
  • Ontology: lightweight description logics (DLs)
  • Temporal data: sequence of fact bases

4 / 8

slide-27
SLIDE 27

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL
  • Ontology: lightweight description logics (DLs)
  • Temporal data: sequence of fact bases

I

Problem: Temporal query entailment Results: Computational complexity Application: Choose languages according to available resources (time and memory)

4 / 8

slide-28
SLIDE 28

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL
  • Ontology: lightweight description logics (DLs)
  • Temporal data: sequence of fact bases

I II

Problem: Temporal query entailment Temporal query answering Results: Computational complexity Rewritability Application: Choose languages according Hints for implementation to available resources (use existing tools) (time and memory)

4 / 8

slide-29
SLIDE 29

Ontology-Based Data Access: Temporal Queries

  • Temporal conjunctive queries: conjunctive queries (CQs) + LTL
  • Ontology: lightweight description logics (DLs)
  • Temporal data: sequence of fact bases

I II

Problem: Temporal query entailment Temporal query answering Results: Computational complexity Rewritability Application: Choose languages according Hints for implementation to available resources (use existing tools) (time and memory)

TCQ q + Ontology O rewrite Query q′ Rewritability: Answers to q w.r.t. O, (D)0≤i≤n = Answers to q′ over (D)0≤i≤n

4 / 8

slide-30
SLIDE 30

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

5 / 8

slide-31
SLIDE 31

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

≥PSpace ? ? ? ? ? EL ≥PSpace ? ? ≥P ? ? DL-Lite[krom|bool] ≥PSpace ? ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-32
SLIDE 32

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

≥PSpace ? ? ? ? ? EL ≥PSpace ? ? ≥P ? ? DL-Lite[krom|bool] ≥PSpace ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-33
SLIDE 33

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? FO-rewritable?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

≥PSpace ? ? ? ? EL ≥PSpace ? ? ≥P ? ? DL-Lite[krom|bool] ≥PSpace ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-34
SLIDE 34

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? FO-rewritable? Tractable?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

≥PSpace ? ? ? ? EL ≥PSpace ? ? ≥P ? DL-Lite[krom|bool] ≥PSpace ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-35
SLIDE 35

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? FO-rewritable? Tractable? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

≥PSpace ? ? ? ? EL ≥PSpace ? ? ≥P ? DL-Lite[krom|bool] ≥PSpace ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-36
SLIDE 36

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? FO-rewritable? Tractable? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

PSpace PSpace PSpace ? ? EL PSpace PSpace ? ≥P ? DL-Lite[krom|bool] ≥PSpace ? ≥co-NP ? ? DL-LiteH

[krom|bool]

≥2-ExpTime ? ? ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

1[Baader et al., JWS’15] 5 / 8

slide-37
SLIDE 37

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? FO-rewritable? Tractable? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

PSpace PSpace PSpace ? ? EL PSpace PSpace co-NExpTime ≥P ? DL-Lite[krom|bool] ExpTime co-NExpTime 2-ExpTime ≥co-NP ? ? DL-LiteH

[krom|bool]

2-ExpTime 2-ExpTime 2-ExpTime ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

  • Strong impact of rigid symbols

1[Baader et al., JWS’15] 5 / 8

slide-38
SLIDE 38

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? Tractable? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

PSpace PSpace PSpace NC1 NC1 NC1 EL PSpace PSpace co-NExpTime ≥P ? DL-Lite[krom|bool] ExpTime co-NExpTime 2-ExpTime ≥co-NP ? ? DL-LiteH

[krom|bool]

2-ExpTime 2-ExpTime 2-ExpTime ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

  • Strong impact of rigid symbols
  • Horn DL-Lite: rigid symbols not critical, but no FO-rewritability

→ NC1: efficient parallel algorithms exist

1[Baader et al., JWS’15] 5 / 8

slide-39
SLIDE 39

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

PSpace PSpace PSpace NC1 NC1 NC1 EL PSpace PSpace co-NExpTime P co-NP co-NP DL-Lite[krom|bool] ExpTime co-NExpTime 2-ExpTime ≥co-NP ? ? DL-LiteH

[krom|bool]

2-ExpTime 2-ExpTime 2-ExpTime ≥co-NP ? ? ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

  • Strong impact of rigid symbols
  • Horn DL-Lite: rigid symbols not critical, but no FO-rewritability

→ NC1: efficient parallel algorithms exist

1[Baader et al., JWS’15] 5 / 8

slide-40
SLIDE 40

Ontology-Based Data Access: Temporal Queries

I Temporal Query Entailment

Given: Boolean TCQ q, O, (Di)0≤i≤n Problem: O, (Di)0≤i≤n, n | = q

PSpace? co-NP?

Combined Complexity Data Complexity

Rigid Symbols none classes all none classes all DL-Lite[ |H]

[core|horn]

PSpace PSpace PSpace NC1 NC1 NC1 EL PSpace PSpace co-NExpTime P co-NP co-NP DL-Lite[krom|bool] ExpTime co-NExpTime 2-ExpTime co-NP co-NP co-NP DL-LiteH

[krom|bool]

2-ExpTime 2-ExpTime 2-ExpTime co-NP co-NP co-NP ALCHQ1 ExpTime co-NExpTime 2-ExpTime co-NP co-NP ≤ExpTime ALCHQ1 ≥2-ExpTime co-NExpTime co-NExpTime co-NP co-NP ≤ExpTime

  • Strong impact of rigid symbols
  • Horn DL-Lite: rigid symbols not critical, but no FO-rewritability

→ NC1: efficient parallel algorithms exist

  • Other DL-Lite variants comparable to very expressive DLs
  • Data complexity: temporal features for free!

1[Baader et al., JWS’15] 5 / 8

slide-41
SLIDE 41

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

Given: TCQs, DL-Litehorn, SQL Problem: Is TCQ answering w.r.t. ontologies in DL-Litehorn rewritable to SQL?

TCQ q + Ontology O rewrite SQL query q′

6 / 8

slide-42
SLIDE 42

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

Given: TCQs, DL-Litehorn, SQL Problem: Is TCQ answering w.r.t. ontologies in DL-Litehorn rewritable to SQL?

TCQ q + Ontology O rewrite SQL query q′

Solution: Holds for positive TCQs (conjunctive queries + LTL w/o negation)

6 / 8

slide-43
SLIDE 43

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

Given: TCQs, DL-Litehorn, SQL Problem: Is TCQ answering w.r.t. ontologies in DL-Litehorn rewritable to SQL?

TCQ q + Ontology O rewrite SQL query q′

Solution: Holds for positive TCQs (conjunctive queries + LTL w/o negation)

Generic rewritability result

For positive temporal QL queries (QL queries + LTL w/o negation) and lightweight logics L if they satisfy certain conditions.

6 / 8

slide-44
SLIDE 44

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

Given: TCQs, DL-Litehorn, SQL Problem: Is TCQ answering w.r.t. ontologies in DL-Litehorn rewritable to SQL?

Temporal QL query q + Ontology O in L rewrite Temporal QL’ query q′

Solution: Holds for positive TCQs (conjunctive queries + LTL w/o negation)

Generic rewritability result

For positive temporal QL queries (QL queries + LTL w/o negation) and lightweight logics L if they satisfy certain conditions.

6 / 8

slide-45
SLIDE 45

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

Given: TCQs, DL-Litehorn, SQL Problem: Is TCQ answering w.r.t. ontologies in DL-Litehorn rewritable to SQL?

Temporal QL query q + Ontology O in L rewrite Temporal QL’ query q′

Solution: Holds for positive TCQs (conjunctive queries + LTL w/o negation)

Generic rewritability result

For positive temporal QL queries (QL queries + LTL w/o negation) and lightweight logics L if they satisfy certain conditions. Many formalisms satisfy our conditions!

6 / 8

slide-46
SLIDE 46

Ontology-Based Data Access: Temporal Queries

II Temporal Query Answering

L QL QL′ EL++ subs. subs. DL-LiteR CQ UCQ ELHdr

CQ FO= DL-LiteN

horn

CQ FO= DL-LiteR UCQ PEQ DL-Lite CQ UCQ ELHI¬ CQ Datalog Horn-ALCHIQ CQ UCQ LDL+ IQ IQ SROEL(⊓, ×) IQ IQ Datalog± family CQ UCQ

7 / 8

slide-47
SLIDE 47

Summary & Outlook

  • Temporal query answering w.r.t. ontologies in lightweight logics
  • Focus on description logics
  • Complexity and rewritability results [Borgwardt et al., JWS’15, IJCAI’15, GCAI’15],

[T., WSP’17]

  • Others have also looked at temporal ontologies

8 / 8

slide-48
SLIDE 48

Summary & Outlook

  • Temporal query answering w.r.t. ontologies in lightweight logics
  • Focus on description logics
  • Complexity and rewritability results [Borgwardt et al., JWS’15, IJCAI’15, GCAI’15],

[T., WSP’17]

  • Others have also looked at temporal ontologies
  • Tailor formalisms to applications
  • Study metric temporal operators [Baader et al., FroCoS’17]

Treatment ⊓ F

  • (¬Treatment)U[45,180]Reaction
  • 8 / 8
slide-49
SLIDE 49

Summary & Outlook

  • Temporal query answering w.r.t. ontologies in lightweight logics
  • Focus on description logics
  • Complexity and rewritability results [Borgwardt et al., JWS’15, IJCAI’15, GCAI’15],

[T., WSP’17]

  • Others have also looked at temporal ontologies
  • Tailor formalisms to applications
  • Study metric temporal operators [Baader et al., FroCoS’17]

Treatment ⊓ F

  • (¬Treatment)U[45,180]Reaction
  • Real stream reasoning?
  • What kind of ontology languages are needed?
  • Why are ontologies rarely applied?

8 / 8

slide-50
SLIDE 50

Summary & Outlook

  • Temporal query answering w.r.t. ontologies in lightweight logics
  • Focus on description logics
  • Complexity and rewritability results [Borgwardt et al., JWS’15, IJCAI’15, GCAI’15],

[T., WSP’17]

  • Others have also looked at temporal ontologies
  • Tailor formalisms to applications
  • Study metric temporal operators [Baader et al., FroCoS’17]

Treatment ⊓ F

  • (¬Treatment)U[45,180]Reaction
  • Real stream reasoning?
  • What kind of ontology languages are needed?
  • Why are ontologies rarely applied?

Thank you!

8 / 8

slide-51
SLIDE 51

References

  • [Baader et al., JWS’15] F. Baader, S. Borgwardt, M. Lippmann:

Temporal Query Entailments in the Description Logic SHQ. Journal of Web Semantics, 2015.

  • [Borgwardt et al., GCAI’15] S. Borgwardt, T:

Temporal Query Answering in DL-Lite with Negation. GCAI’15.

  • [Borgwardt et al., IJCAI’15] S. Borgwardt, T:

Temporal Query Answering in the Description Logic EL. IJCAI’15.

  • [T, WSP’17] T.:

News on Temporal Conjunctive Queries. WSP’17, to appear.

  • [Borgwardt et al., JWS’15] S. Borgwardt, M. Lippmann, T:

Temporalizing Rewritable Query Languages over Knowledge Bases. Journal of Web Semantics, 2015.

  • [Baader et al., FroCoS’17] F. Baader, S. Borgwardt, P. Koopmann, A. Ozaki, T:

Metric Temporal Description Logics with Interval-Rigid Names. FroCoS’17, to appear

1 / 1