semantic diff as the basis for knowledge base versioning

68
Semantic Diff as the Basis for Knowledge Base Versioning Enrico Franconi 1 Thomas Meyer 2 Ivan Varzinczak 2 1 Free University of Bozen/Bolzano Bolzano, Italy 2 Meraka Institute, CSIR Pretoria, South Africa Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 1 / 24

Upload: ivan-varzinczak

Post on 05-Dec-2014

491 views

Category:

Technology


2 download

DESCRIPTION

Talk given at the CENTRIA, Lisbon, Portugal.

TRANSCRIPT

Page 1: Semantic Diff as the Basis for Knowledge Base Versioning

Semantic Diff as the Basis forKnowledge Base Versioning

Enrico Franconi1 Thomas Meyer2 Ivan Varzinczak2

1Free University of Bozen/BolzanoBolzano, Italy

2Meraka Institute, CSIRPretoria, South Africa

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 1 / 24

Page 2: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 3: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

K1

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 4: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

K1 K2

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 5: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

K1 K2

K3

K4

K5

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 6: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

K1 K2

K3

K4

K5

K6

. . .

. . .

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 7: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Knowledge Base

Ontology (DL, RDF)

Agents’ beliefs

Regulations or norms

. . .

K1 K2

K3

K4

K5

K6

. . .

. . .

Need for a versioning system

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 2 / 24

Page 8: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Issues

Maintaining different versionsI Parsimonious representation

Reasoning with versionsI In which of the KBs does α hold,

but not β?

Difference between versionsI How they differ in meaning

Kc

K1

K2

K3

K4

K5

K6

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 3 / 24

Page 9: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Issues

Maintaining different versionsI Parsimonious representation

Reasoning with versionsI In which of the KBs does α hold,

but not β?

Difference between versionsI How they differ in meaning

Kc

K1

K2

K3

K4

K5

K6

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 3 / 24

Page 10: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Issues

Maintaining different versionsI Parsimonious representation

Reasoning with versionsI In which of the KBs does α hold,

but not β?

Difference between versionsI How they differ in meaning

Kc

K1

K2

K3

K4

K5

K6

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 3 / 24

Page 11: Semantic Diff as the Basis for Knowledge Base Versioning

Motivation

Issues

Maintaining different versionsI Parsimonious representation

Reasoning with versionsI In which of the KBs does α hold,

but not β?

Difference between versionsI How they differ in meaning

Kc

K1

K2

K3

K4

K5

K6

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 3 / 24

Page 12: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 4 / 24

Page 13: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 4 / 24

Page 14: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 4 / 24

Page 15: Semantic Diff as the Basis for Knowledge Base Versioning

Logical Preliminaries

Knowledge bases

A knowledge base K is a (possibly infinite) set of formulas

Cn(K) = {α | K |= α}

Cn(.) is called Tarskian iff it satisfies

I Inclusion: X ⊆ Cn(X )

I Idempotence: Cn(Cn(X )) ⊆ Cn(X )

I Monotonicity: X ⊆ Y implies Cn(X ) ⊆ Cn(Y )

[α] = {β | α ≡ β}

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 5 / 24

Page 16: Semantic Diff as the Basis for Knowledge Base Versioning

Logical Preliminaries

Knowledge bases

A knowledge base K is a (possibly infinite) set of formulas

Cn(K) = {α | K |= α}

Cn(.) is called Tarskian iff it satisfies

I Inclusion: X ⊆ Cn(X )

I Idempotence: Cn(Cn(X )) ⊆ Cn(X )

I Monotonicity: X ⊆ Y implies Cn(X ) ⊆ Cn(Y )

[α] = {β | α ≡ β}

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 5 / 24

Page 17: Semantic Diff as the Basis for Knowledge Base Versioning

Logical Preliminaries

Knowledge bases

A knowledge base K is a (possibly infinite) set of formulas

Cn(K) = {α | K |= α}

Cn(.) is called Tarskian iff it satisfies

I Inclusion: X ⊆ Cn(X )

I Idempotence: Cn(Cn(X )) ⊆ Cn(X )

I Monotonicity: X ⊆ Y implies Cn(X ) ⊆ Cn(Y )

[α] = {β | α ≡ β}

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 5 / 24

Page 18: Semantic Diff as the Basis for Knowledge Base Versioning

Logical Preliminaries

Knowledge bases

A knowledge base K is a (possibly infinite) set of formulas

Cn(K) = {α | K |= α}

Cn(.) is called Tarskian iff it satisfies

I Inclusion: X ⊆ Cn(X )

I Idempotence: Cn(Cn(X )) ⊆ Cn(X )

I Monotonicity: X ⊆ Y implies Cn(X ) ⊆ Cn(Y )

[α] = {β | α ≡ β}

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 5 / 24

Page 19: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 6 / 24

Page 20: Semantic Diff as the Basis for Knowledge Base Versioning

Semantic Diff

Difference in meaning between knowledge bases K and K′

Analogy with the Unix diff commandI diff distinguishes between syntactically different files

Semantic diff highlights the difference in (logical) meaning

Assume a logic with a Tarskian consequence relation

Example

Let the (propositional) knowledge bases:

K1 = {p, q} and K2 = {p, p → q}

K1 and K2 differ in syntax

But K1 and K2 convey the same meaning (K1 ≡ K2)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 7 / 24

Page 21: Semantic Diff as the Basis for Knowledge Base Versioning

Semantic Diff

Difference in meaning between knowledge bases K and K′

Analogy with the Unix diff commandI diff distinguishes between syntactically different files

Semantic diff highlights the difference in (logical) meaning

Assume a logic with a Tarskian consequence relation

Example

Let the (propositional) knowledge bases:

K1 = {p, q} and K2 = {p, p → q}

K1 and K2 differ in syntax

But K1 and K2 convey the same meaning (K1 ≡ K2)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 7 / 24

Page 22: Semantic Diff as the Basis for Knowledge Base Versioning

Semantic Diff

Difference in meaning between knowledge bases K and K′

Analogy with the Unix diff commandI diff distinguishes between syntactically different files

Semantic diff highlights the difference in (logical) meaning

Assume a logic with a Tarskian consequence relation

Example

Let the (propositional) knowledge bases:

K1 = {p, q} and K2 = {p, p → q}

K1 and K2 differ in syntax

But K1 and K2 convey the same meaning (K1 ≡ K2)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 7 / 24

Page 23: Semantic Diff as the Basis for Knowledge Base Versioning

Semantic Diff

Difference in meaning between knowledge bases K and K′

Analogy with the Unix diff commandI diff distinguishes between syntactically different files

Semantic diff highlights the difference in (logical) meaning

Assume a logic with a Tarskian consequence relation

Example

Let the (propositional) knowledge bases:

K1 = {p, q} and K2 = {p, p → q}

K1 and K2 differ in syntax

But K1 and K2 convey the same meaning (K1 ≡ K2)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 7 / 24

Page 24: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

KBs closed under logical consequence

(P1) K = Cn(K) and K′ = Cn(K′)

Semantic diff of K and K′: pair 〈A,R〉A is the add-set of (K,K′)

R as the remove-set of (K,K′)

(P2) K′ = (K ∪ A) \ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 8 / 24

Page 25: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

KBs closed under logical consequence

(P1) K = Cn(K) and K′ = Cn(K′)

Semantic diff of K and K′: pair 〈A,R〉A is the add-set of (K,K′)

R as the remove-set of (K,K′)

(P2) K′ = (K ∪ A) \ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 8 / 24

Page 26: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

KBs closed under logical consequence

(P1) K = Cn(K) and K′ = Cn(K′)

Semantic diff of K and K′: pair 〈A,R〉A is the add-set of (K,K′)

R as the remove-set of (K,K′)

(P2) K′ = (K ∪ A) \ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 8 / 24

Page 27: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

Minimal change and no redundancy

(P3) A ⊆ K′

(P4) R ⊆ K

Duality of semantic diff

(P5) K = (K′ ∪ R) \ A

‘Undo’ operation when moving between versions

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 9 / 24

Page 28: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

Minimal change and no redundancy

(P3) A ⊆ K′

(P4) R ⊆ K

Duality of semantic diff

(P5) K = (K′ ∪ R) \ A

‘Undo’ operation when moving between versions

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 9 / 24

Page 29: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

Minimal change and no redundancy

(P3) A ⊆ K′

(P4) R ⊆ K

Duality of semantic diff

(P5) K = (K′ ∪ R) \ A

‘Undo’ operation when moving between versions

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 9 / 24

Page 30: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

Definition

K and K′ knowledge bases, A and R sets of sentences

〈A,R〉 is semantic diff compliant w.r.t. (K,K′) iff (K,K′) and 〈A,R〉satisfy Postulates (P1)–(P5)

(P1) K = Cn(K) and K′ = Cn(K′)

(P2) K′ = (K ∪ A) \ R

(P3) A ⊆ K′

(P4) R ⊆ K

(P5) K = (K′ ∪ R) \ A

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 10 / 24

Page 31: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

Definition

K and K′ knowledge bases, A and R sets of sentences

〈A,R〉 is semantic diff compliant w.r.t. (K,K′) iff (K,K′) and 〈A,R〉satisfy Postulates (P1)–(P5)

(P1) K = Cn(K) and K′ = Cn(K′)

(P2) K′ = (K ∪ A) \ R

(P3) A ⊆ K′

(P4) R ⊆ K

(P5) K = (K′ ∪ R) \ A

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 10 / 24

Page 32: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic DiffSpecific construction for the semantic diff operator:

Definition

The ideal semantic diff of (K,K′) is the pair 〈A,R〉, where

A = K′ \ K and R = K \ K′

Neither A nor R are logically closed:

Example

Let K = Cn(p ∧ q) and K′ = Cn(¬q)

A = {[¬q], [¬p ∨ ¬q]}

R = {[p ∧ q], [p], [q], [p ↔ q], [p ∨ q], [¬p ∨ q]}

p ∨ ¬q ∈ Cn(A), p ∨ ¬q ∈ Cn(R), but p ∨ ¬q /∈ A and p ∨ ¬q /∈ R

In fact, for any ideal semantic diff 〈A,R〉, > /∈ A and > /∈ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 11 / 24

Page 33: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic DiffSpecific construction for the semantic diff operator:

Definition

The ideal semantic diff of (K,K′) is the pair 〈A,R〉, where

A = K′ \ K and R = K \ K′

Neither A nor R are logically closed:

Example

Let K = Cn(p ∧ q) and K′ = Cn(¬q)

A = {[¬q], [¬p ∨ ¬q]}

R = {[p ∧ q], [p], [q], [p ↔ q], [p ∨ q], [¬p ∨ q]}

p ∨ ¬q ∈ Cn(A), p ∨ ¬q ∈ Cn(R), but p ∨ ¬q /∈ A and p ∨ ¬q /∈ R

In fact, for any ideal semantic diff 〈A,R〉, > /∈ A and > /∈ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 11 / 24

Page 34: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic DiffSpecific construction for the semantic diff operator:

Definition

The ideal semantic diff of (K,K′) is the pair 〈A,R〉, where

A = K′ \ K and R = K \ K′

Neither A nor R are logically closed:

Example

Let K = Cn(p ∧ q) and K′ = Cn(¬q)

A = {[¬q], [¬p ∨ ¬q]}

R = {[p ∧ q], [p], [q], [p ↔ q], [p ∨ q], [¬p ∨ q]}

p ∨ ¬q ∈ Cn(A), p ∨ ¬q ∈ Cn(R), but p ∨ ¬q /∈ A and p ∨ ¬q /∈ R

In fact, for any ideal semantic diff 〈A,R〉, > /∈ A and > /∈ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 11 / 24

Page 35: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic DiffSpecific construction for the semantic diff operator:

Definition

The ideal semantic diff of (K,K′) is the pair 〈A,R〉, where

A = K′ \ K and R = K \ K′

Neither A nor R are logically closed:

Example

Let K = Cn(p ∧ q) and K′ = Cn(¬q)

A = {[¬q], [¬p ∨ ¬q]}

R = {[p ∧ q], [p], [q], [p ↔ q], [p ∨ q], [¬p ∨ q]}

p ∨ ¬q ∈ Cn(A), p ∨ ¬q ∈ Cn(R), but p ∨ ¬q /∈ A and p ∨ ¬q /∈ R

In fact, for any ideal semantic diff 〈A,R〉, > /∈ A and > /∈ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 11 / 24

Page 36: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic DiffSpecific construction for the semantic diff operator:

Definition

The ideal semantic diff of (K,K′) is the pair 〈A,R〉, where

A = K′ \ K and R = K \ K′

Neither A nor R are logically closed:

Example

Let K = Cn(p ∧ q) and K′ = Cn(¬q)

A = {[¬q], [¬p ∨ ¬q]}

R = {[p ∧ q], [p], [q], [p ↔ q], [p ∨ q], [¬p ∨ q]}

p ∨ ¬q ∈ Cn(A), p ∨ ¬q ∈ Cn(R), but p ∨ ¬q /∈ A and p ∨ ¬q /∈ R

In fact, for any ideal semantic diff 〈A,R〉, > /∈ A and > /∈ R

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 11 / 24

Page 37: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

There is a unique ideal semantic diff associated with any two KBs

Theorem

Let 〈A,R〉 be the ideal semantic diff of K and K′. Then

〈A,R〉 is semantic diff compliant with respect to (K,K′)

〈A,R〉 is unique w.r.t. (K,K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), A ∩ R = ∅

Ideal semantic diff and symmetric difference: (K′ \ K) ∪ (K \ K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), 〈A,R〉 = 〈∅, ∅〉 iff K = K′

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 12 / 24

Page 38: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

There is a unique ideal semantic diff associated with any two KBs

Theorem

Let 〈A,R〉 be the ideal semantic diff of K and K′. Then

〈A,R〉 is semantic diff compliant with respect to (K,K′)

〈A,R〉 is unique w.r.t. (K,K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), A ∩ R = ∅

Ideal semantic diff and symmetric difference: (K′ \ K) ∪ (K \ K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), 〈A,R〉 = 〈∅, ∅〉 iff K = K′

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 12 / 24

Page 39: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

There is a unique ideal semantic diff associated with any two KBs

Theorem

Let 〈A,R〉 be the ideal semantic diff of K and K′. Then

〈A,R〉 is semantic diff compliant with respect to (K,K′)

〈A,R〉 is unique w.r.t. (K,K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), A ∩ R = ∅

Ideal semantic diff and symmetric difference: (K′ \ K) ∪ (K \ K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), 〈A,R〉 = 〈∅, ∅〉 iff K = K′

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 12 / 24

Page 40: Semantic Diff as the Basis for Knowledge Base Versioning

Characterizing Semantic Diff

There is a unique ideal semantic diff associated with any two KBs

Theorem

Let 〈A,R〉 be the ideal semantic diff of K and K′. Then

〈A,R〉 is semantic diff compliant with respect to (K,K′)

〈A,R〉 is unique w.r.t. (K,K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), A ∩ R = ∅

Ideal semantic diff and symmetric difference: (K′ \ K) ∪ (K \ K′)

Corollary

For the ideal semantic diff 〈A,R〉 of (K,K′), 〈A,R〉 = 〈∅, ∅〉 iff K = K′

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 12 / 24

Page 41: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 13 / 24

Page 42: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

Scenario:

n versions, K1, . . . ,Kn, of a KB that need to be stored

A core knowledge base Kc

For 1 ≤ i , j ≤ n:

Ideal semantic diff of (Ki ,Kj): 〈Dij ,Dji 〉Ideal semantic diff of (Kc ,Ki ): 〈Dci ,Dic〉

From Properties

(P2) K′ = (K ∪ A) \ R

(P5) K = (K′ ∪ R) \ A

The add-set Dij of (Ki ,Kj) is also the remove-set of (Kj ,Ki )

The remove-set Dji of (Ki ,Kj) is also the add-set of (Kj ,Ki )

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 14 / 24

Page 43: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

Scenario:

n versions, K1, . . . ,Kn, of a KB that need to be stored

A core knowledge base Kc

For 1 ≤ i , j ≤ n:

Ideal semantic diff of (Ki ,Kj): 〈Dij ,Dji 〉Ideal semantic diff of (Kc ,Ki ): 〈Dci ,Dic〉

From Properties

(P2) K′ = (K ∪ A) \ R

(P5) K = (K′ ∪ R) \ A

The add-set Dij of (Ki ,Kj) is also the remove-set of (Kj ,Ki )

The remove-set Dji of (Ki ,Kj) is also the add-set of (Kj ,Ki )

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 14 / 24

Page 44: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

Scenario:

n versions, K1, . . . ,Kn, of a KB that need to be stored

A core knowledge base Kc

For 1 ≤ i , j ≤ n:

Ideal semantic diff of (Ki ,Kj): 〈Dij ,Dji 〉Ideal semantic diff of (Kc ,Ki ): 〈Dci ,Dic〉

From Properties

(P2) K′ = (K ∪ A) \ R

(P5) K = (K′ ∪ R) \ A

The add-set Dij of (Ki ,Kj) is also the remove-set of (Kj ,Ki )

The remove-set Dji of (Ki ,Kj) is also the add-set of (Kj ,Ki )

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 14 / 24

Page 45: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

In order to access any version, it is sufficient:

To store Kc , and

To store Dic and Dci for all Ki s.t. 1 ≤ i ≤ n

By Theorem 1, Ki = (Kc ∪ Dci ) \ Dic for every i s.t. 1 ≤ i ≤ n

Kc

• 〈Dc1,D1c〉

• 〈Dc2,D2c〉

• 〈Dc3,D3c〉•〈Dc4,D4c〉

•〈Dc5,D5c〉•

〈Dc6,D6c〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 15 / 24

Page 46: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

In order to access any version, it is sufficient:

To store Kc , and

To store Dic and Dci for all Ki s.t. 1 ≤ i ≤ n

By Theorem 1, Ki = (Kc ∪ Dci ) \ Dic for every i s.t. 1 ≤ i ≤ n

Kc

• 〈Dc1,D1c〉

• 〈Dc2,D2c〉

• 〈Dc3,D3c〉•〈Dc4,D4c〉

•〈Dc5,D5c〉•

〈Dc6,D6c〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 15 / 24

Page 47: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base Versioning

In order to access any version, it is sufficient:

To store Kc , and

To store Dic and Dci for all Ki s.t. 1 ≤ i ≤ n

By Theorem 1, Ki = (Kc ∪ Dci ) \ Dic for every i s.t. 1 ≤ i ≤ n

Kc

• 〈Dc1,D1c〉

• 〈Dc2,D2c〉

• 〈Dc3,D3c〉•〈Dc4,D4c〉

•〈Dc5,D5c〉•

〈Dc6,D6c〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 15 / 24

Page 48: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base VersioningWe can generate the ideal semantic diff of Ki and Kj

Proposition

Dij = (Dcj \ Dci ) ∪ (Dic \ Djc) and Dji = (Dci \ Dcj) ∪ (Djc \ Dic)

Kc

K1

Ki

Kj

Kn

〈Dc1,D1c〉

〈Dci ,Dic〉

〈Dcj ,Djc〉

〈Dcn,Dnc〉

〈Dn1,D1n〉

〈Dnj ,Djn〉

〈D1i ,Di1〉

〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 16 / 24

Page 49: Semantic Diff as the Basis for Knowledge Base Versioning

A Framework for Knowledge Base VersioningWe can generate the ideal semantic diff of Ki and Kj

Proposition

Dij = (Dcj \ Dci ) ∪ (Dic \ Djc) and Dji = (Dci \ Dcj) ∪ (Djc \ Dic)

Kc

K1

Ki

Kj

Kn

〈Dc1,D1c〉

〈Dci ,Dic〉

〈Dcj ,Djc〉

〈Dcn,Dnc〉

〈Dn1,D1n〉

〈Dnj ,Djn〉

〈D1i ,Di1〉

〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 16 / 24

Page 50: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 17 / 24

Page 51: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

Our characterization of Semantic Diff is in the knowledge level

Need for a compiled representation of KBs and the diffs

Computationally, a compiled format is required: F (K)

Given any representation of Ki and Kj , look for an intermediaterepresentation of the ideal semantic diff 〈I (Dij), I (Dji )〉

From Ki together with this intermediate representation of the idealsemantic diff, generate Kj

From this intermediate representation generate the ideal semantic diff〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 18 / 24

Page 52: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

Our characterization of Semantic Diff is in the knowledge level

Need for a compiled representation of KBs and the diffs

Computationally, a compiled format is required: F (K)

Given any representation of Ki and Kj , look for an intermediaterepresentation of the ideal semantic diff 〈I (Dij), I (Dji )〉

From Ki together with this intermediate representation of the idealsemantic diff, generate Kj

From this intermediate representation generate the ideal semantic diff〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 18 / 24

Page 53: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

Our characterization of Semantic Diff is in the knowledge level

Need for a compiled representation of KBs and the diffs

Computationally, a compiled format is required: F (K)

Given any representation of Ki and Kj , look for an intermediaterepresentation of the ideal semantic diff 〈I (Dij), I (Dji )〉

From Ki together with this intermediate representation of the idealsemantic diff, generate Kj

From this intermediate representation generate the ideal semantic diff〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 18 / 24

Page 54: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

Our characterization of Semantic Diff is in the knowledge level

Need for a compiled representation of KBs and the diffs

Computationally, a compiled format is required: F (K)

Given any representation of Ki and Kj , look for an intermediaterepresentation of the ideal semantic diff 〈I (Dij), I (Dji )〉 such that:

From Ki together with this intermediate representation of the idealsemantic diff, generate Kj

From this intermediate representation generate the ideal semantic diff〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 18 / 24

Page 55: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

Our characterization of Semantic Diff is in the knowledge level

Need for a compiled representation of KBs and the diffs

Computationally, a compiled format is required: F (K)

Given any representation of Ki and Kj , look for an intermediaterepresentation of the ideal semantic diff 〈I (Dij), I (Dji )〉 such that:

From Ki together with this intermediate representation of the idealsemantic diff, generate Kj

From this intermediate representation generate the ideal semantic diff〈Dij ,Dji 〉

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 18 / 24

Page 56: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

With the intermediate representation

We can also generate one KB from another

Theorem

F (Ki ) = (F (Kj) \ I (Dji )) ∪ I (Dij)

= (F (Kj) ∪ I (Dij)) \ I (Dji )

We can generate the ideal diff (details in the NMR’10 paper)

We can get I (Dij) and I (Dji )

Theorem

For 1 ≤ i , j ≤ n, I (Dij) = (I (Dcj) \ I (Dci )) ∪ (I (Dic) \ I (Djc))

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 19 / 24

Page 57: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

With the intermediate representation

We can also generate one KB from another

Theorem

F (Ki ) = (F (Kj) \ I (Dji )) ∪ I (Dij)

= (F (Kj) ∪ I (Dij)) \ I (Dji )

We can generate the ideal diff (details in the NMR’10 paper)

We can get I (Dij) and I (Dji )

Theorem

For 1 ≤ i , j ≤ n, I (Dij) = (I (Dcj) \ I (Dci )) ∪ (I (Dic) \ I (Djc))

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 19 / 24

Page 58: Semantic Diff as the Basis for Knowledge Base Versioning

Compiled Representation

With the intermediate representation

We can also generate one KB from another

Theorem

F (Ki ) = (F (Kj) \ I (Dji )) ∪ I (Dij)

= (F (Kj) ∪ I (Dij)) \ I (Dji )

We can generate the ideal diff (details in the NMR’10 paper)

We can get I (Dij) and I (Dji )

Theorem

For 1 ≤ i , j ≤ n, I (Dij) = (I (Dcj) \ I (Dci )) ∪ (I (Dic) \ I (Djc))

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 19 / 24

Page 59: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 20 / 24

Page 60: Semantic Diff as the Basis for Knowledge Base Versioning

Contributions

Groundwork for a semantic-driven notion of versioning

I Intuitive, simple and general

Notion of semantic diff applicable to a large class of KR languages

I Our results hold for any KB in a Tarskian logic

Parsimonious representation

I Core KB: sufficient to reconstruct any of the versions

I Diff between KBs: no direct access to any of the versions

I This holds for any syntactic representation (see the NMR’10 paper)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 21 / 24

Page 61: Semantic Diff as the Basis for Knowledge Base Versioning

Contributions

Groundwork for a semantic-driven notion of versioning

I Intuitive, simple and general

Notion of semantic diff applicable to a large class of KR languages

I Our results hold for any KB in a Tarskian logic

Parsimonious representation

I Core KB: sufficient to reconstruct any of the versions

I Diff between KBs: no direct access to any of the versions

I This holds for any syntactic representation (see the NMR’10 paper)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 21 / 24

Page 62: Semantic Diff as the Basis for Knowledge Base Versioning

Contributions

Groundwork for a semantic-driven notion of versioning

I Intuitive, simple and general

Notion of semantic diff applicable to a large class of KR languages

I Our results hold for any KB in a Tarskian logic

Parsimonious representation

I Core KB: sufficient to reconstruct any of the versions

I Diff between KBs: no direct access to any of the versions

I This holds for any syntactic representation (see the NMR’10 paper)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 21 / 24

Page 63: Semantic Diff as the Basis for Knowledge Base Versioning

Contributions

Groundwork for a semantic-driven notion of versioning

I Intuitive, simple and general

Notion of semantic diff applicable to a large class of KR languages

I Our results hold for any KB in a Tarskian logic

Parsimonious representation

I Core KB: sufficient to reconstruct any of the versions

I Diff between KBs: no direct access to any of the versions

I This holds for any syntactic representation (see the NMR’10 paper)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 21 / 24

Page 64: Semantic Diff as the Basis for Knowledge Base Versioning

Contributions

Groundwork for a semantic-driven notion of versioning

I Intuitive, simple and general

Notion of semantic diff applicable to a large class of KR languages

I Our results hold for any KB in a Tarskian logic

Parsimonious representation

I Core KB: sufficient to reconstruct any of the versions

I Diff between KBs: no direct access to any of the versions

I This holds for any syntactic representation (see the NMR’10 paper)

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 21 / 24

Page 65: Semantic Diff as the Basis for Knowledge Base Versioning

Outline

1 Logical Preliminaries

2 Knowledge Base VersioningSemantic DiffA General FrameworkCompiled Representation

3 ConclusionContributionsFuture Work

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 22 / 24

Page 66: Semantic Diff as the Basis for Knowledge Base Versioning

Ongoing and Future Work

How to choose the core knowledge base Kc

Which normal forms are more appropriate

Experiments with realistic data for evaluation of the approach

Ontology versioning in Description Logics

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 23 / 24

Page 67: Semantic Diff as the Basis for Knowledge Base Versioning

Reference

E. Franconi, T. Meyer, I. Varzinczak. Semantic Diff as the Basis forKnowledge Base Versioning. Workshop on Nonmonotonic Reasoning(NMR), 2010.

Thank you!

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 24 / 24

Page 68: Semantic Diff as the Basis for Knowledge Base Versioning

Reference

E. Franconi, T. Meyer, I. Varzinczak. Semantic Diff as the Basis forKnowledge Base Versioning. Workshop on Nonmonotonic Reasoning(NMR), 2010.

Thank you!

Franconi, Meyer, Varzinczak (FUB/Meraka) Semantic Diff for KB Versioning 24 / 24