This document discusses knowledge representation and reasoning over knowledge graphs. It introduces description logics for representing ontologies and answer set programming for representing rules. It describes DL-programs which combine description logics ontologies and rules. DL-programs allow reasoning over knowledge graphs to detect and resolve inconsistencies while also completing the knowledge graph through inductive rule learning.
1. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Digital Knowledge: From Facts to Rules and Back
Daria Stepanova
D5: Databases and Information Systems
Max Planck Institute for Informatics
03.05.2017
1 / 38
2. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What is Knowledge?
Plato: āKnowledge is justiļ¬ed true beliefā
1 / 38
3. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What is Knowledge?
Plato: āKnowledge is justiļ¬ed true beliefā
1 / 38
4. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What is Digital Knowledge?
āDigital knowledge is semantically enriched machine processable dataā
1 / 38
5. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Semantic Web Search
2 / 38
6. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Semantic Web Search
2 / 38
7. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Semantic Web Search
2 / 38
8. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Knowledge Graphs
3 / 38
9. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Knowledge Graphs
3 / 38
10. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Problem: Inconsistency
4 / 38
11. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Problem: Incompleteness
Google KG misses Rogerās living place, but contains his wifeās Mirkaās..
5 / 38
12. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Motivation
Important problems of KGs:
1 Inconsistency
2 Incompleteness
In this talk: Reasoning on top of KGs to address these issues
1 Deduction: detecting and repairing inconsistencies
2 Induction: learning common-sense rules and completing KGs
6 / 38
13. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Overview
Motivation
Ontologies and Rules
Inconsistencies in DL-programs
Nonmonotonic Rule Mining
Further and Future Work
7 / 38
14. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
History of Knowledge Representation
ā¢ 1950ās: First Order Logic (FOL) for KR (undecidable)
(e.g. [McCarthy, 1959])
ā¢ 1970ās: Network-shaped structures for KR (no formal semantics)
(e.g. semantic networks [Robinson, 1965], frames [Minsky, 1985])
ā¢ 1979: Encoding of network-shaped structures into FOL [Hayes, 1979]
ā¢ 1980ās: Description Logics (DL) for KR
ā¢ Decidable fragments of FOL
ā¢ Theories encoded in DLs are called ontologies
ā¢ Many DLs with different expressiveness and computational features
ā¢ Particularly suited for conceptual reasoning
8 / 38
15. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Description Logic Ontologies
Open World Assumption (OWA): what is not derived is unknown
Inclusions: Female Ā¬Male,hasSister hasSibling,hasBrother hasSibling
9 / 38
16. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Description Logic Ontologies
Open World Assumption (OWA): what is not derived is unknown
Inclusions: Female Ā¬Male,hasSister hasSibling,hasBrother hasSibling
Complex axioms: Uncle ā” Male āhasSibling.āhasChild
9 / 38
17. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What can not be said in DLs?
ā¢ Exceptions from theories (due to monotonicity)
10 / 38
18. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What can not be said in DLs?
ā¢ Exceptions from theories (due to monotonicity)
WithBeard Male
Female Ā¬Male
WithBeard(c)
āāāāāāāāāāāā
People with beards are male
Female are not male
C has a beard
āāāāāāāāāāāā
10 / 38
19. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What can not be said in DLs?
ā¢ Exceptions from theories (due to monotonicity)
WithBeard Male
Female Ā¬Male
WithBeard(c)
āāāāāāāāāāāā
Male(c)
People with beards are male
Female are not male
C has a beard
āāāāāāāāāāāā
C is male
10 / 38
20. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
What can not be said in DLs?
ā¢ Exceptions from theories (due to monotonicity)
WithBeard Male
Female Ā¬Male
WithBeard(c)
Female(c)
āāāāāāāāāāāā
Male(c)
Ā¬Male(c)
People with beards are male
Female are not male
C has a beard
C is female
āāāāāāāāāāāā
C is male
C is not male
Monotonicity: the more we add, the more we get!
10 / 38
21. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
History of Knowledge Representation
ā¢ 1970ās: Logic programming
(e.g. Prolog)
ā¢ 1980ās: Nonmonotonic logics
(e.g. circumscription [McCarthy, 1980], default logic [Reiter, 1980])
ā¢ 1988: Nonmonotonic rules under answer set semantics (ASP)
[Gelfond and Lifschitz, 1988]
ā¢ Logic programs with model-based semantics
ā¢ Disjunctive datalog with default negation not
11 / 38
22. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Not is not Ā¬!
Default negation not
At a rail road crossing cross the road if no train is known to approach
walk ā at(X), crossing(X), not train approaches(X)
Classical negation Ā¬
At a rail road crossing cross the road if no train approaches
walk ā at(X), crossing(X), Ā¬train approaches(X)
12 / 38
23. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Nonmonotonic Rules
Closed World Assumption (CWA): what is not derived is false
Rule: a1 āØ . . . āØ ak
head
ā b1, . . . , bm, not bm+1, . . . , not bn
body
Informal semantics: If b1, . . . , bm are true and none of bm+1, . . . , bn is known,
then at least one among a1, . . . , ak must be true
Default negation: unless a child is adopted one of his parents must be female
female(Y) āØ female(Z) ā hasParent(X, Y), hasParent(X, Z),
Y = Z, not adopted(X)
Constraint: ensure that no one is a parent of himself
ā„ ā parent(X, Y), parent(Y, X)
13 / 38
24. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Answer Set Programs
Evaluation of ASP programs is model-based
Answer set program (ASP) is a set of nonmonotonic rules
(1) hasParent(john, pat) (2) hasParent(john, alex) (3) male(alex)
(4) female(Y) ā hasParent(X, Y), hasParent(X, Z),
Y = Z, male(Z), not adopted(X)
14 / 38
25. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Answer Set Programs
Evaluation of ASP programs is model-based
1. Grounding: substitute all variables with constants in all possible ways
Answer set program (ASP) is a set of nonmonotonic rules
(1) hasParent(john, pat) (2) hasParent(john, alex) (3) male(alex)
(4) female(Y) ā hasParent(X, Y), hasParent(X, Z),
Y = Z, male(Z), not adopted(X)
14 / 38
26. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Answer Set Programs
Evaluation of ASP programs is model-based
1. Grounding: substitute all variables with constants in all possible ways
Answer set program (ASP) is a set of nonmonotonic rules
(1) hasParent(john, pat) (2) hasParent(john, alex) (3) male(alex)
(4) female(pat) ā hasParent(john, pat), hasParent(john, alex),
male(alex), not adopted(john)
14 / 38
27. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Answer Set Programs
Evaluation of ASP programs is model-based
1. Grounding: substitute all variables with constants in all possible ways
2. Solving: compute a minimal model (answer set) I satisfying all rules
Answer set program (ASP) is a set of nonmonotonic rules
(1) hasParent(john, pat) (2) hasParent(john, alex) (3) male(alex)
(4) female(pat) ā hasParent(john, pat), hasParent(john, alex),
male(alex), not adopted(john)
I={hasParent(john, pat), hasParent(john, alex), male(alex), female(pat)}
CWA: adopted(john) can not be derived, thus it is false
14 / 38
28. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Answer Set Programs
Evaluation of ASP programs is model-based
1. Grounding: substitute all variables with constants in all possible ways
2. Solving: compute a minimal model (answer set) I satisfying all rules
Answer set program (ASP) is a set of nonmonotonic rules
(1) hasParent(john, pat) (2) hasParent(john, alex) (3) male(alex)
(4) female(pat) ā hasParent(john, pat), hasParent(john, alex),
male(alex), not adopted(john)
(5) adopted(john)
adopted(john)
I={hasParent(john, pat), hasParent(john, alex), male(alex),((((((
female(pat)}
Nonmonotonicity: adding facts might lead to loss of consequences!
14 / 38
29. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Combining Ontologies and Rules
15 / 38
30. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Combining Ontologies and Rules
15 / 38
31. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Overview
Motivation
Ontologies and Rules
Inconsistencies in DL-programs
Nonmonotonic Rule Mining
Further and Future Work
T. Eiter M. Fink
16 / 38
32. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-programs
DL-programs: loose coupling of ontologies and rules [Eiter et al., 2008]
17 / 38
33. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā ,
18 / 38
34. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
18 / 38
35. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
18 / 38
36. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
DL[Male boy; Male](pat)
18 / 38
37. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
DL[Male boy; Male](pat)
18 / 38
38. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat) Male(tim)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
DL[Male boy; Male](pat)
18 / 38
39. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat) Male(tim)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
DL[Male boy; Male](pat)
18 / 38
40. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat) ,
DL[Male boy; Male](pat)
Answer set: I = {isChildOf(john, alex), boy(tim), hasFather(john, pat)}
18 / 38
41. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
18 / 38
42. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
18 / 38
43. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
18 / 38
44. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
18 / 38
45. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
18 / 38
46. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Inconsistent DL-program
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
Inconsistent DL-program: no answer sets!
18 / 38
47. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program Repair
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat) Female(alex)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
Repair answer set: I = {isChildOf(john, alex), boy(tim), hasFather(john, pat)}
18 / 38
48. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program Repair
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4)
Male(pat) Female(pat)
(5) Male(john)
(6) hasParent(john, pat)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
Repair answer set: I = {isChildOf(john, alex), boy(tim)}
18 / 38
49. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
DL-program Repair
DL ontology
Logical part
(1) Child āhasParent
(2) Female Ā¬Male
(3) Adopted Child
Data part (KG)
(4) Male(pat)
(5) Male(john)
Rules
(7) isChildOf(john, alex) (8) boy(tim)
(9) hasFather(john, pat) ā DL[; hasParent](john, pat),
DL[Male boy; Male](pat)
(10) ā„ ā hasFather(john, pat), isChildOf(john, alex),
not DL[; Adopted](john),
not DL[Child boy; Ā¬Male](alex)
Repair answer set: I = {isChildOf(john, alex), boy(tim)}
18 / 38
50. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Inconsistency Handling in DL-programs
Goal: develop techniques for handling inconsistencies in DL-programs
Approach: repair ontology data part (KG) to regain consistency
19 / 38
51. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Complexity of Repair Answer Sets
INSTANCE: A ground DL-program Ī = O, P .
QUESTION: Does there exist a repair answer set for Ī ?
Theorem
Deciding repair and standard answer set existence have the same
complexity if instance query-answering in O is polynomial (DL-LiteA, EL).
Ī FLP semantics weak semantics
normal Ī£P
2 -complete NP-complete
disjunctive Ī£P
2 -complete Ī£P
2 -complete
T. Eiter, M. Fink, D. Stepanova. Data Repair of Inconsistent DL-programs. IJCAI2013
T. Eiter, M. Fink, D. Stepanova. Data Repair of Inconsistent Nonmonotonic Description Logic Programs. JAI2016
20 / 38
52. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Ontology Repair Problem
INSTANCE: Ontology O, Dtrue = { update, query }, Dfalse = { update, query }
QUESTION: Does there exist O data part, for which queries under their
updates from Dtrue are true and from Dfalse are false?
Theorem
The Ontology Repair Problem is NP-complete even if O = ā .
Tractable cases:
ā¢ Deletion repair
ā¢ Bounded addition
ā¢ Bounded change
ā¢ . . .
21 / 38
53. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Optimized DL-program Repair
ā¢ For each DL-atom compute minimal sets of facts ( ), whose presence in
ontology ensures DL-atomās query entailment (small for some DLs)
22 / 38
54. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Optimized DL-program Repair
ā¢ For each DL-atom compute minimal sets of facts ( ), whose presence in
ontology ensures DL-atomās query entailment (small for some DLs)
ā¢ Guess values of DL-atoms under which the program has an answer set
22 / 38
55. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Optimized DL-program Repair
ā¢ For each DL-atom compute minimal sets of facts ( ), whose presence in
ontology ensures DL-atomās query entailment (small for some DLs)
ā¢ Guess values of DL-atoms under which the program has an answer set
ā¢ Solve ontology repair problem as a variant of a hitting set problem
T. Eiter, M. Fink, D. Stepanova. Towards Practical Deletion Repair of Inconsistent DL-programs. ECAI2014
T. Eiter, M. Fink, D. Stepanova. Computing Repairs for Inconsistent DL-programs over EL Ontologies. JELIA2014, JAIR2016
22 / 38
56. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Example Benchmark
ā¢ Ontology: MyITS1
ā¢ personalized route planning with semantic information
ā¢ logical axioms (406), (building features located inside private areas
are not publicly accessible, covered bus stops are those with roofs)
ā¢ KG (4195 facts), Cork city map with leisure areas, bus stops,..
ā¢ Rules: check that public stations donāt lack public access, using
CWA on private areas
ā¢ Inconsistency: wrong GPS coordinates result in roofed bus stops
being located inside private areas
ā¢ Repair: found within 12 seconds
1
http://www.kr.tuwien.ac.at/research/projects/myits/
23 / 38
57. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Overview
Motivation
Ontologies and Rules
Inconsistencies in DL-programs
Nonmonotonic Rule Mining
Further and Future Work
M. Gad-Elrab J. Urbani G. Weikum D. H. Tran F. A. Lisi
24 / 38
58. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Rule Mining
25 / 38
59. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Rule Mining
Horn rule mining for KG completion [GalĀ“arraga et al., 2015]
conf(r) =
| |
| | + | |
=
2
4
r : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z)
25 / 38
60. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Rule Mining
Horn rule mining for KG completion [GalĀ“arraga et al., 2015]
conf(r) =
| |
| | + | |
=
2
4
r : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z)
25 / 38
61. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Nonmonotonic Rule Mining
Nonmonotonic rule mining from KGs: OWA is a challenge!
conf(r) =
| |
| | + | |
=1
r : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), not researcher(X)
25 / 38
62. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Declarative Programming Paradigm
26 / 38
63. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Declarative Programming Example
Graph 3-colorability
y of advanced reasoners makes the ASP formalism applicable to solving practical tasks. The standard
s two components: a grounder and a solver. The list of the most well-known grounders include: dlv4
,
c. Among the solvers one can mention dlv, clasp7
, claspd8
, gnt9
. Potassco10
represents a collection of
s, combining clasp and gringo into a system architecture.
t an example that illustrates the basic notions of the Answer Set Programming that we have inroduced.
der a graph 3-colourability problem, in which we are given a graph and three colours, e.g. red, blue and
at ļ¬nding the assignment of colours to the nodes of a graph in such a way that no adjacent nodes share
e encoding of this problem is as follows.
1
2
6
3
5
4
. . . 6); (2) edge(1, 2); . . . (8) edge(5, 6);
d(V , red) ā not coloured(V , blue), not coloured(V , green), node(V );
ed(V , green) ā not coloured(V , blue), not coloured(V , red), node(V );
ed(V , blue) ā not coloured(V , green), not coloured(V , red), node(V );
oloured(V , C), coloured(V , C ), C = C ;
oloured(V , C), coloured(V , C), edge(V , V )
ļ£¼
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£½
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£¾
programs P describe the nodes and edges of the graph from above. The rules (9)-(11) state that each
red in at least one of the three colours. The constraint (12) forbids the nodes to be colored in more then
e constraint (13) says that two nodes connected via an edge must have different colours.
lvsystem.com/
sco.sourceforge.net/
cs.hut.fi/Software/smodels/
sco.sourceforge.net/
s.uni-potsdam.de/claspD/
cs.hut.fi/Software/gnt/
sco.sourceforge.net/
PI
GL =
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£²
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£³
(9) coloured(1, red) ā node(1);
(10) coloured(3, red) ā node(3);
(11) coloured(4, green) ā node(4);
(12) coloured(6, green) ā node(6);
(13) coloured(2, blue) ā node(2);
(14) coloured(5, blue) ā node(5)
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£½
ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£“ļ£¾
One can see that I is the minimal model of the positive program PI
GL, and thus an answer set o
encodes the following valid graph coloring:
1
2
6
3
5
4
B Related Work
From the theoretical side the problem of learning nonmonotonic rules from the data has been studied i
in discrete and probabilistic settings. However, many available techniques are heavily based on CW
be directly applied to our setting. For example, Bain and Muggleton [3] developed the algorithm c
Specialization (CWS), in which an initial program and an intended interpretation that a learned progra
given. In this setting, any atom which is not included in the interpretation is considered false. For exam
contain the rule {ļ¬ies(X) ā bird(X).} Furthermore, let the KB be as follows: {bird(eagle), ļ¬ies(
The CWS algorithm would interpret ļ¬ies(emu) as false, and would specialize P to {ļ¬ies(X) ā bir
from which the fact {ab(emu)} would be learned.
The Open World Specialization (OWS) [9] is a modiļ¬cation of the CWS algorithm, which avoids u
negative instances by considering a three-valued setting. The OWS technique does not involve conļ¬d
rules that are mined, which prevents it from being used for our purpose.
node(1 . . . 6); edge(1, 2); . . .
col(V, red) ā not col(V, blue), not col(V, green), node(V);
col(V, green) ā not col(V, blue), not col(V, red), node(V);
col(V, blue) ā not col(V, green), not col(V, red), node(V);
ā„ ā col(V, C), col(V, C ), C = C ;
ā„ ā col(V, C), col(V , C), edge(V, V )
node(1 . . . 6); edge(1, 2); . . .
col(1, red), col(2, blue),
col(3, red), col(4, green),
col(6, green), col(5, blue)
26 / 38
64. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Nonmonotonic Rule Mining
27 / 38
65. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Nonmonotonic Rule Mining
livesIn(Y, Z) ā isMarried(X, Y),
livesIn(X, Y),
not researcher(Y)
isMarriedTo(brad, ann);
isMarriedTo(john, kate);
isMarriedTo(bob, alice);
isMarriedTo(clara, dave);
livesIn(brad, berlin;
. . .
researcher(alice);
researcher(dave)
27 / 38
66. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Nonmonotonic Rule Mining from KGs
Goal: learn nonmonotonic rules from KG
Approach: revise association rules learned using data mining methods
28 / 38
67. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Theory Revision
Quality-based Horn Theory Revision
Given:
ā¢ Available KG
29 / 38
68. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Theory Revision
Quality-based Horn Theory Revision
Given:
ā¢ Available KG
ā¢ Horn rule set
29 / 38
69. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Theory Revision
Quality-based Horn Theory Revision
Given:
ā¢ Available KG
ā¢ Horn rule set
Find:
ā¢ Nonmonotonic revision of Horn rule set
29 / 38
70. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Theory Revision
Quality-based Horn Theory Revision
Given:
ā¢ Available KG
ā¢ Horn rule set
Find:
ā¢ Nonmonotonic revision of Horn rule set
with better predictive quality
29 / 38
71. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Avoid Data Overļ¬tting
How to distinguish exceptions from noise?
r1 : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), not researcher(X)
30 / 38
72. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Avoid Data Overļ¬tting
How to distinguish exceptions from noise?
r1 : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), not researcher(X)
not livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), researcher(X)
30 / 38
73. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Avoid Data Overļ¬tting
How to distinguish exceptions from noise?
r1 : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), not researcher(X)
not livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), researcher(X)
r2 : livesIn(X, Z) ā bornIn(X, Z), not moved(X)
not livesIn(X, Z) ā bornIn(X, Z), moved(X)
30 / 38
74. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Avoid Data Overļ¬tting
How to distinguish exceptions from noise?
r1 : livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), not researcher(X)
not livesIn(X, Z) ā isMarriedTo(Y, X), livesIn(Y, Z), researcher(X)
r2 : livesIn(X, Z) ā bornIn(X, Z), not moved(X)
not livesIn(X, Z) ā bornIn(X, Z), moved(X)
{livesIn(c, d), not livesIn(c, d)} are conļ¬icting predictions
Intuition: Rules with good exceptions should make few conļ¬icting predictions
30 / 38
75. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Horn Theory Revision
Quality-based Horn Theory Revision
Given:
ā¢ Available KG
ā¢ Horn rule set
Find:
ā¢ Nonmonotonic revision of Horn rules, such that
ā¢ number of conļ¬icting predictions is minimal
ā¢ average conviction is maximal
31 / 38
76. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Exception Candidates
r: livesIn(X, Z) ā isMarriedTo(Y, X) , livesIn(Y, Z)
32 / 38
not researcher(X)
not artist(Y)
77. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Exception Ranking
rule1 {e1, e2, e3, . . . }
rule2 {e1, e2, e3, . . . }
rule3 {e1, e2, e3, . . . }
Finding globally best revision is expensive, exponentially many candidates!
ā¢ Naive ranking: for every rule inject exception that results in the
highest conviction
ā¢ Partial materialization (PM): apply all rules apart from a given one,
inject exception that results in the highest average conviction of the
rule and its rewriting
ā¢ Ordered PM (OPM): same as PM plus ordered rules application
ā¢ Weighted OPM: same as OPM plus weights on predictions
M. Gad-Elrab, D. Stepanova, J. Urbani, G. Weikum. Exception-enriched Rule Learning from Knowledge Graphs. ISWC2016
D. Tran, D. Stepanova, M. Gad-Elrab, F. Lisi, G. Weikum. Towards Nonmonotonic Relational Learning from KGs. ILP2016
33 / 38
78. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Experimental Setup
ā¢ Approximated ideal KG: original KG
ā¢ Available KG: for every relation randomly remove 20% of facts from
approximated ideal KG
ā¢ Horn rules: h(X, Y) ā p(X, Z), q(Z, Y)
ā¢ Exceptions: e1(X), e2(Y), e3(X, Y)
ā¢ Predictions are computed using answer set solver DLV
34 / 38
79. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Experimental Setup
ā¢ Approximated ideal KG: original KG
ā¢ Available KG: for every relation randomly remove 20% of facts from
approximated ideal KG
ā¢ Horn rules: h(X, Y) ā p(X, Z), q(Z, Y)
ā¢ Exceptions: e1(X), e2(Y), e3(X, Y)
ā¢ Predictions are computed using answer set solver DLV
Examples of revised rules:
Plots of ļ¬lms in a sequel are written by the same writer, unless a ļ¬lm is American
r1 : writtenBy(X, Z) ā hasPredecessor(X, Y), writtenBy(Y, Z), not american ļ¬lm(X)
Spouses of ļ¬lm directors appear on the cast, unless they are silent ļ¬lm actors
r2 : actedIn(X, Z) ā isMarriedTo(X, Y), directed(Y, Z), not silent ļ¬lm actor(X)
34 / 38
80. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Overview
Motivation
Ontologies and Rules
Inconsistencies in DL-programs
Nonmonotonic Rule Mining
Ongoing and Future Work
35 / 38
81. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Completeness-aware Rule Mining
ā¢ Exploit cardinality meta-data [Mirza et al., 2016] in rule mining
John has 5 children, Mary is a citizen of 2 countries
Joint work with T. Pellissier-Tanon, S. Razniewski, P. Mirza, G. Weikum
36 / 38
82. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Ongoing and Future Work
ā¢ Make use of logical background knowledge in
ā¢ Rule learning and other data mining tasks2
ā¢ Information extraction from text corpora3
ā¢ Natural language processing tasks
ā¢ Exploit answer set programs with
external computations [Eiter et al., 2009]
for the above problems
2
S. Paramonov, D. Stepanova, P. Miettinen. Hybrid Approach to Constraint-based Pattern Mining. Accepted to RR2017
3
Joint work with M. Gad-Elrab, J. Urbani, G. Weikum
37 / 38
83. Motivation Ontologies and Rules Inconsistencies in DL-programs Nonmonotonic Rule Mining Ongoing and Future Work
Conclusion
Summary:
ā¢ Inconsistencies in combination of rules and ontologies
ā¢ Repair semantics and its complexity analysis
ā¢ Optimized algorithms for repair computation
and their evaluation (DL-LiteA and EL DLs)
ā¢ Nonmonotonic rule mining from KGs
ā¢ Quality-based Horn theory revision framework under OWA
ā¢ Approach for computing and ranking exceptions based on
cross-talk among rules and its evaluation on real-world KGs
Future Directions:
ā¢ Interlinking mining and reasoning in the KG context
ā¢ Exploiting logical background knowledge in information
extraction and natural language processing tasks
38 / 38
84. References I
Thomas Eiter, Giovambattista Ianni, Thomas Lukasiewicz, Roman Schindlauer, and Hans Tompits.
Combining answer set programming with description logics for the semantic web.
Artiļ¬cial Intelligence, 172(12-13):1495ā1539, August 2008.
Thomas Eiter, Gerhard Brewka, Minh Dao-Tran, Michael Fink, Giovambattista Ianni, and Thomas Krennwallner.
Combining nonmonotonic knowledge bases with external sources.
In Frontiers of Combining Systems, 7th International Symposium, FroCoS 2009, Trento, Italy, September 16-18, 2009.
Proceedings, pages 18ā42, 2009.
Luis GalĀ“arraga, Christina Teļ¬ioudi, Katja Hose, and Fabian M. Suchanek.
Fast rule mining in ontological knowledge bases with AMIE+.
VLDB J., 24(6):707ā730, 2015.
Michael Gelfond and Vladimir Lifschitz.
The stable model semantics for logic programming.
In Proceedings of the 5th International Conference and Symposium on Logoc Programming, ICLP 1988, pages 1070ā1080.
The MIT Press, 1988.
P. J. Hayes.
The logic of frames.
In Frame Conceptions and Text Understanding, pages 46ā61. 1979.
John McCarthy.
Programs with common sense.
In TeddingtonConference, pages 75ā91, 1959.
John McCarthy.
Circumscription - A form of non-monotonic reasoning.
Artif. Intell., 13(1-2):27ā39, 1980.
Marvin Minsky.
A framework for representing knowledge.
In Readings in Knowledge Representation, pages 245ā262. Kaufmann, 1985.
85. References II
Paramita Mirza, Simon Razniewski, and Werner Nutt.
Expanding wikidataās parenthood information by 178%, or how to mine relation cardinality information.
In ISWC 2016 Posters Demos, 2016.
Raymond Reiter.
A logic for default reasoning.
Artif. Intell., 13(1-2):81ā132, 1980.
J. Robinson.
A machine-oriented logic based on the resolution principle.
Journal of the ACM, 12(6):23ā41, 1965.