• Keine Ergebnisse gefunden

Reasoning with Description Logics Ontologies and Knowledge Graphs

N/A
N/A
Protected

Academic year: 2022

Aktie "Reasoning with Description Logics Ontologies and Knowledge Graphs"

Copied!
23
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Reasoning with Description Logics Ontologies and

Knowledge Graphs

David Carral

Slides available at https://iccl.inf.tu-dresden.de/web/Paristech-invited-talk

(2)

Motivation

(3)

Knowledge Graphs

(4)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 4

What is a Knowledge Graph?

A Knowledge Graph is a data repository that is:

* Normalised: Data is decomposed into small units (“edges”)

* Connected: Knowledge is represented by relationships between these units

Extending KGs with OWL terminological axioms:

* Data integration

* Information extraction

* Automatic population

* Debugging

Widespread use of OWL ontologies along with

Knowledge Graphs!

Well, not

really…

(5)

KGs contain large amounts of assertional information:

Lack of tool support:

* Traditional KR/DL View: Schema first (class consistency, classification…)

* Knowledge Graphs: Data first (instance retrieval, CQ answering…) 70 x 10

9

facts, > 570 x 10

6

entities 50 x 10

6

statements

Scalability

(6)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral

Rule Engine

6

Rule Set

Data-Independent Mapping

DL Reasoner

OWL TBox In theory:

* Correctness

* Complexity In practice:

* Implement transformations

* Evaluate performance

* Further develop and optimise rule engines

From OWL to Rules

(7)

Acyclicity Notions

* A Practical Acyclicity Notion for Query Answering over Horn-SRIQ Ontologies [ISWC 2016]

* Restricted Chase (Non)Termination for Existential Rules with Disjunctions [IJCAI 2017]

* Tractable Query Answering for Expressive Ontologies and Rules [ISWC 2017]

The Combined Approach

* Pushing the Boundaries of Tractable Ontology Reasoning [ISWC 2014]

* The Combined Approach to Query Answering Beyond the OWL 2 Profiles [IJCAI 2015]

* The Combined Approach to Query Answering Horn-ALCHOIQ [KR 2018]

Datalog Rewritings

* From Horn-SRIQ to Datalog: A Data-Independent Transformation that Preserves Assertion Entailment [AAAI 2019]

From OWL to Rules

VLog

* Column-Oriented Datalog Materialization for Large Knowledge Graphs. [AAAI 2016]

* Efficient Model Construction for Horn Logic with VLog - System Description.  [IJCAR 2018]

(8)

The Combined Approach to Query Answering Horn- ALCHOIQ

David Carral, Irina Dragoste, and

Markus Krötzsch [KR 2018]

(9)

The DL Horn- ALCHOIQ : Examples

C

1

⊓ … ⊓ C

n

D → EnglishSpeaker ⊓ FrenchSpeaker ⊑ Bilingual , Car ⊑ Vehicle

R . CD → ∃ Attends . Lecture ⊑ Student C ⊑ ∃ R . D → Bycicle ⊑ ∃ HasPart . Wheel

C ⊑ ≤ 1R . D → Course ⊑ ≤ 1 IsTaughtBy . Lecturer C ⊑ {a} → Greek ⊑ ∃ IsACitizenOf . { Greece }

RS → HasFriend ⊑ Knows ,

R

S → Supervises

⊑ IsSupervisedBy R

1

⊓ … ⊓ R

n

⊑ ⊥ → Supervises ⊓ IsSupervisedBy ⊑ ⊥

C(a) → Student ( joe )

R(a, b) → HasSibling ( joe , mike )

(10)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 10

C

1

⊓ … ⊓ C

n

DC

1

(x) ∧ … ∧ C

n

(x) → D(x)

R . CDR(x, y)C(y)D(x)

C ⊑ ∃ R . DC(x) → ∃ y . R(x, y)D( y)

C ⊑ ≤ 1R . DC(x)R(x, y)D( y)R(x, z)D(z)yz C ⊑ {a} ↦ C(x)ax

RSR(x, y)S(x, y) R

SR(y, x)S(x, y)

R

1

⊓ … ⊓ R

n

⊑ ⊥ → R

1

(x, y) ∧ … ∧ R

n

(x, y) → ⊥ (x) C(a)A(a)

R(a, b)R(a, b)

The DL Horn- ALCHOIQ : Semantics

(11)

Ans. 1 Ans. 2 Ans. 3 Ans. 4 TBox

The Combined Approach

Datalog Rule Engine Datalog Rule Set

2. Filtration Step 1. Materialisation Step

* Complete for CQA

* May not be a model

* Sound (and complete) for instance queries

ABox

Conjunctive query

(12)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 12

C 1 ⊓ … ⊓ C nDC 1 (x) ∧ … ∧ C n (x) → D(x)

R . CDR(x, y)C(y)D(x) C ⊑ ∃ R . DC(x)R(x, t D ) ∧ D(t D )

RSR(x, y)S(x, y) C(a)C(a)

R(a, b)R(a, b)

The Materialisation Step for EL

(13)

tD : D, E d7 : D

d6 : C d5 : D, E

d4 : C, F

d3 : D, E

d2 : C, F

a : C d1 : D, E R

R S

tC : C

a : C R

C ⊑ ∃ R . D D ⊑ ∃ S . C

S . CE

R . EF

C(a)

S R S R

S R

a : C, F d1 : D d2 : C d3 : D d4 : C d5 : D

S

d8 : C

C(x)R(x, t D ) ∧ D(t D ) D(x)S(x, t C ) ∧ C(t C ) S(x, y)C(y)E(x) R(x, y)E(y)F(x)

a : C, F

tC : C, F tD : D

The Materialisation Step for EL

(14)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 14

The Materialisation Step for ELI

C

1

⊓ … ⊓ C

n

DC

1

(x) ∧ … ∧ C

n

(x) → D(x)

R . CDR(x, y)C( y)D(x),

C(x)R

(x, t

𝔼

) → R

(x, t

𝔼⊓D

) ∧ ⋀

E∈𝔼⊓D

E(t

𝔼⊓D

) for every conjunction  𝔼  of concept names C ⊑ ∃ R . DC(x)R(x, t

D

) ∧ D(t

D

)

RSR(x, y)S(x, y), R

(x, y)S

(x, y)

R

SR(x, y)

S(x, y), R(x, y)S

(x, y)

(15)

a : C,E,G

tCE : C,E,G

R S

S R

S a : C,E,G d1 : D,F d2 : C,E,G d3 : D,F

R S R

b : C e1 : D e2 : C e3 : D

R S R

a : C,E b : C

D,F : tDF

R D : tD

R

tC : C R

R

. EF

S

. FE C ⊑ ∃ R . D

R . FG

D ⊑ ∃ S . C C(a) C(b) E(a)

C(x)R(x, t

D

) ∧ D(t

D

)

The Materialisation Step for Horn- ELI

D(x)S(x, t

C

) ∧ C(t

C

)

E(x)R(x, t

D

) → R(x, t

D⊓F

) ∧ D(t

D⊓F

) ∧ F(t

D⊓F

) F(x)S(x, t

C

) → S(x, t

C⊓E

) ∧ C(t

C⊓E

) ∧ E(t

C⊓E

)

R(x, y)F(y)G(x)

R

tCE : C,E

q

2

= ∃ y, w . C(a)R(a, y)S(y, w)R(w, y)

q

1

= ∃ y, w . C(a)R(a, y)S(y, w)G(w)

(16)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 16

ℛ Eq = {x ≈ yyx, xyyzxz} ∪ {C(x) ∧ xyC(y)CN

C+

} ∪

{ℝ(x, y)xz → ℝ(z, y), ℝ(x, y)yz → ℝ(x, z) ∣ ℝ ∈ N

R

}

The Materialisation Step for Horn- ALCHOIQ

ℛ Top = {C(x) → ⊤ (x) ∣ CN

C

} ∪ {ℝ(x, y) → ⊤ (x) ∧ ⊤ ( y) ∣ ℝ ∈ N

R

} ℛ Role = {ℝ(x, y) ∧ N (y) → ℝ

(x, y) ∣ ℝ ∈ N

R

} ∪

{ℝ(x, y)R(x, y) ∣ ℝ ∈ N

R

, RN

R

}

ℛ Nm = { N (a), ⊤ (a) ∣ aN

I

}

(17)

C

1

⊓ … ⊓ C

n

DC

1

(x) ∧ … ∧ C

n

(x) → D(x)

C ⊑ {a} ↦ C(x)xa

R . CDR(x, y)C(y)D(x),

C(x) ∧ ℝ

(x, t

𝔼

) → ℝ

(x, t

𝔼⊓D

) ∧ ⋀

E∈𝔼⊓D

E(t

𝔼⊓D

) for every  ℝ ∈ N

R

 with  R ∈ ℝ  and  𝔼 ∈ N

C

C ⊑ ∃R . DC(x)R(x, t

D

) ∧ D(t

D

)

RS ↦ ℝ(x, y) → (ℝ ⊓ S )(x, y),

(x, y) → (ℝ

S

)(x, y) for every  ℝ ∈ N

R

 with  R ∈ ℝ

The Materialisation Step for Horn- ALCHOIQ

R

S ↦ ℝ

(x, y) → (ℝ ⊓ S )(x, y), ℝ(x, y) → (ℝ ⊓ S

)(x, y)

for every  ℝ ∈ N

R

 with  R ∈ ℝ

(18)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 18

For all  ℝ, 𝕊 ∈ N

R

 with  R ∈ ℝ  and  R ∈ 𝕊,  and all  𝔼, 𝔽 ∈ N

C

D(y)R

(y, x)C(x)R(x, z)D(z) ∧ N (z) → yz

C(x) ∧ ℝ(x, t

𝔼

) ∧ D(t

𝔼

) ∧ 𝕊(x, t

𝔽

) ∧ F(t

𝔽

) → (ℝ ⊓ 𝕊)(x, t

𝔼⊓𝔽

) ∧ ⋀

X∈𝔼⊓𝔽

X(t

𝔼⊓𝔽

) D(y) ∧ ℝ

(y, x)C(x) ∧ 𝕊(x, t

𝔼

) ∧ D(t

𝔼

) → ⋀

X∈𝔼

X(y) ∧ (ℝ

⊓ 𝕊

)(y, x) D( y)R

(y, x)C(x) ∧ N (x) → N (y)

C ⊑ ≤ 1R . D

The Materialisation Step for Horn- ALCHOIQ

(19)

Materialisation Step: Implementation and Evaluation

Konclude

Materialisation Step

* Use RDFox as a Datalog engine and add rules on demand

* Rule count per ontology:

108+6 (LUBM), 254+19 (UOBM), 481+14 (Reactome),317+59 (Uniprot)

* RDFox uses renaming to deal with equality.

(20)

Reasoning with Horn DL Ontologies and Knowledge Graphs David Carral 20

Contributions

* We expand the combined approach to an expressive and non-tractable fragment such as Horn- ALCHOIQ

Future work

* Extend our procedure in order to solve conjunctive regular path queries.

* Applying the above, we can produce an implementation for Horn- SROIQ .

* Our method subsumes all previously existing

combined approaches and is worst-case optimal.

* We produce the first implementation that solves CQ

entailment over Horn- ALCHOIQ ontologies.

(21)

Acyclicity Notions

* A Practical Acyclicity Notion for Query Answering over Horn-SRIQ Ontologies [ISWC 2016]

* Restricted Chase (Non)Termination for Existential Rules with Disjunctions [IJCAI 2017]

* Tractable Query Answering for Expressive Ontologies and Rules [ISWC 2017]

The Combined Approach

* Pushing the Boundaries of Tractable Ontology Reasoning [ISWC 2014]

* The Combined Approach to Query Answering Beyond the OWL 2 Profiles [IJCAI 2015]

* The Combined Approach to Query Answering Horn-ALCHOIQ [KR 2018]

Datalog Rewritings

* From Horn-SRIQ to Datalog: A Data-Independent Transformation that Preserves Assertion Entailment [AAAI 2019]

From OWL to Rules

VLog

* Column-Oriented Datalog Materialization for Large Knowledge Graphs. [AAAI 2016]

* Efficient Model Construction for Horn Logic with VLog - System Description.  [IJCAR 2018]

(22)

Reasoning over Existential Rules with Acyclicity Notions David Carral 22

Reasoning with Description Logics Ontologies and

Knowledge Graphs

David Carral

Slides available at https://iccl.inf.tu-dresden.de/web/Paristech-invited-talk

(23)

a : C tBD : B, D

R

S R tA : A, D

tABD : A, B, D R

S

For all  ℝ, 𝕊 ∈ N

R

 with  R ∈ ℝ  and  R ∈ 𝕊,  and all  𝔼, 𝔽 ∈ N

C

C(x) ∧ ℝ(x, t

𝔼

) ∧ D(t

𝔼

) ∧ 𝕊(x, t

𝔽

) ∧ F(t

𝔽

) → (ℝ ⊓ 𝕊)(x, t

𝔼⊓𝔽

) ∧ ⋀

X∈𝔼⊓𝔽

X(t

𝔼⊓𝔽

) C ⊑ ≤ 1R . D

C(x) ∧ (R ⊓ S )(x, t

B⊓D

) ∧ D(t

B⊓D

)

R(x, t

A

) ∧ D(t

A

) → (R ⊓ S )(x, t

A⊓B⊓D

) ∧ A(t

A⊓B⊓D

) ∧ B(t

A⊓B⊓D

) ∧ D(t

A⊓B⊓D

)

The Materialisation Step for Horn- ALCHOIQ

Referenzen

ÄHNLICHE DOKUMENTE

In this section, we present equality model-faithful acyclic- ity (EMFA), an acyclicity notion based on model-faithful acyclicity (MFA) (Cuenca Grau et al. 2013) that can be di-

To equip description logics (DLs) for dealing with such ontologies, we enrich DL concepts and roles with finite sets of attribute–value pairs, called annotations, and allow

The maximal nesting depth of function terms in the chase tree is bounded by the number of existentially quantified variables in R, since a greater depth can only be achieved

The disjunctive skolem chase is a sound and complete (albeit non-terminating) algorithm that can be used to solve conjunctive query answering over DL ontologies and programs

Indeed, the grounding used in Theorem 4 can be restricted to annotation sets that are described in (ground) specifiers that are found in the ontology, since no new sets can be

In this pa- per, we define a novel acyclicity notion which provides a sufficient condi- tion for termination of the restricted chase over Horn-SRIQ TBoxes.. We show that this

An in- crease may occur if the body frontier object contains at least two values in its interface (one interface value preserves size: it is either the frontier value that was

In Pascal Hitzler and Thomas Lukasiewicz, editors, Proceedings of the 4th International Conference on Web Reasoning and Rule Systems (RR’10), volume 6333 of Lecture Notes in