knowledge repn. reasoning lec #11+13: frame systems and description logics uiuc cs 498: section ea...

52
Knowledge Repn. & Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Upload: debra-fitzgerald

Post on 18-Jan-2018

220 views

Category:

Documents


0 download

DESCRIPTION

Description Logics (DLs) Originate in semantic networks (NLP), and Frame Systems (KR) Hold information about concepts, objects, and simple relationships between them –Hierarchical information Many DLs, differing in their expressive power

TRANSCRIPT

Page 1: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Knowledge Repn. & ReasoningLec #11+13: Frame Systems and

Description LogicsUIUC CS 498: Section EA

Professor: Eyal AmirFall Semester 2004

Page 2: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Today

• Restricting expressivity of FOL: DLs• Description Logics (DLs)

– Language– Semantics– Inference

Page 3: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Description Logics (DLs)• Originate in semantic networks (NLP), and

Frame Systems (KR)• Hold information about concepts, objects,

and simple relationships between them– Hierarchical information

• Many DLs, differing in their expressive power

Page 4: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Frame Systems

Person

Man Woman

Concept frames

Jane

Object frames

Page 5: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Frame Systems

Person

Man Woman

Jane

Object frames

child

ageRoles

child

age

Jill,John

26

Page 6: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Differences from DBs

• Hierarchical structure (?)• Many times no closed-world assumption• Values may be missing• More expressive (?)• Semantic structure between concepts and

roles• Typical reasoning tasks (satisfiability,

generality/classification)

Page 7: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Description Logics: Language

• Formal language that can be analyzed• Describe frame systems with attention to

the expressive power needed

• Definitions are stated in a terminological part of the KB (TBox)

• Assertions are made at an assertional part of the KB (Abox)

Page 8: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Description Logics: Language

.

• Definitions are stated in a terminological part of the KB (TBox)

• Assertions are made at an assertional part of the KB (Abox)

DescriptionLanguage Reasoning

TBox

ABox

Page 9: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Description Logics: Language

.

• Example definition: C = AпB

• Example assertion: C(John), CпD = AпB

DescriptionLanguage Reasoning

TBox

ABox

Page 10: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T | (universal concept) | (bottom concept)A | (atomic negation)CпD | (intersection)R.C | (value restrict.)R.T | (limited existential quantific.)

Page 11: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)

A Person | Female

• An atomic concept corresponds to a unary predicate symbol in FOL

• Extensionally, a set of world elements

Page 12: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T | (universal

concept)

• Intuition: The universal concept corresponds in FOL to λx.TRUE(x), the unary predicate that holds for every object

Page 13: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T | (universal

concept) | (bottom concept)

• Intuition: The bottom concept corresponds in FOL to λx.FALSE(x), the unary predicate that holds for no object

Page 14: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T | (universal concept) | (bottom concept)A | (atomic negation)

• The negation of A is the concept that is the complement of A, i.e., contains all elements that A does not

Female, Person

Page 15: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T | (universal concept) | (bottom concept)A | (atomic negation)CпD | (intersection)

• Intersection of concepts corresponds to set intersection of their elements

• Person п Female

Page 16: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T, | (universal, bottom)A | (atomic negation)CпD | (intersection)R.C | (value restrict.)

• All elements whose R is filled only by C-elements

hasChild.Female

Page 17: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL Description Logic: Language

• AL: C,D A | (atomic concept)T, | (universal, bottom)A, CпDR.C | (value restrict.)R.T | (limited existential quantific.)

• The concept including all elements that have role R filled by some element

hasChild.T

Page 18: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

AL DL: FOL Semantics

• Interpretation I maps Δ to nonempty set ΔI

and,– Every atomic concept A is mapped to AI ΔI

– TI = ΔI

I = Ø– (A)I = ΔI \ AI

– (CпD)I = CI п DI

– (R.C)I = {a ΔI | b. (a,b)RI b CI }

– (R.T)I = {a ΔI | b. (a,b)RI}

Page 19: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

DLs that Extend ALR.C – full existential quantification• (≥n R) - number restrictionsC – negation of arbitrary concepts• CUD – union of concepts• Trigger rules – CLASSIC (configuration of

systems), LOOM

Page 20: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

TBox: Terminological Axioms

• C D – The left-hand side is a symbol• R S – same• C D – same • R S – same

• Mother Woman п hasChild.Person• Parent Mother U Father• Grandmother Mother п hasChild.Mother

пп

Page 21: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Definitional / Nondefinitional

• Base interpretation for atomic concepts• The TBox is definitional if every base

interpretation has only one extension• Observation: If the TBox has no cycles

then it is definitional

Page 22: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

ABox: Assertions About Elements

• Father(Peter) C(a)• Grandmother(Mary) C(a)• hasChild(Mary,Peter) R(b,c)• hasChild(Mary,Paul) R(b,c)• hasChild(Peter,Harry) R(b,c)

• C(a) – concept assertions• R(b,c) – role assertions

Page 23: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

ABox: Assertions About Elements

• UNA – Unique Names Assumption• Interpretation I maps object names to

elements in ΔI

• Some languages allow other statements, within a fragment of FOL.

• TBox,Abox equivalent to a set of axioms in FOL (with two variables, without functions)

Page 24: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Take a Breath

• So far: Language + Semantics• From here:

– Reasoning Tasks– Algorithms

• Later: NLP using Description Logics

Page 25: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

TBox Reasoning Tasks

• Satisfiability of C:– A model I of T such that CI is nonempty

• Subsumption of C by D– For every model I of T, CI DI

• Equivalence of C and D• Disjointness of C and D

п

Page 26: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Reductions to Subsumption

• C is unsatisfiable iff C • C,D equivalent iff C D, D C • C,D disjoint iff CпD

• With an empty or nonempty TBox• Assuming we have the needed operations

п

ппп

Page 27: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Reductions to Unsatisfiability

• C D iff CпD unsatisfiable• C,D equivalent iff CпD , CпD

unsatisfiable• C,D disjoint iff CпD unsatisfiable

• With an empty or nonempty TBox• Assuming we have the needed operations

п

Page 28: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Systems vs Reasoning

• CLASSIC, LOOM : Subsumption• KRIS, CRACK, FACT, DLP, RACE:

Satisfiability

• Subsumption is most general and therefore most expensive computationally

Page 29: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Eliminating the TBox

• Converting definitional TBox problems to concept problems

T={ Woman Person п Female Man Person п Woman }C = Woman п ManC’= Person п Female п Person п (Person п Female)

Page 30: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

ABox Queries

• Consistency• Instance check – A C(a)

– “a” is an instance name– Reduces to concept satisfiability if “set” and

“fill” constructors are allowed• Retrieval of all individuals satisfying C• Find most specific concept for individual a

Page 31: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Structural Subsumption

• Language: FL0

– Concept conjunction C п D– Value restriction R.C

• Normal form of concepts in FL0

C A1 п … п Am п R1.C1 п … п Rn.Cn

D B1 п … п Bk п S1.D1 п … п Sl.Dl

• C D iffi≤k j≤m s.t. Bi = Aj

i≤l j≤n s.t. Si = Rj , Ci Dj

• Proof?

п

п• Proof?

Page 32: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Structural Subsumption Algorithm for FL0

1. Convert concepts to normal form C A1 п … п Am п R1.C1 п … п Rn.Cn

D B1 п … п Bk п S1.D1 п … п Sl.Dl

2. Check recursively:i≤k j≤m s.t. Bi = Aj

i≤l j≤n s.t. Si = Rj , Ci Dj

п

Page 33: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Extending FL0

• Language: FL0

– Concept conjunction C п D– Value restriction R.C

• Language: ALN– AL (C п D, R.C , T, , A, R.T)– Number restrictions (≥nR, ≤nR)

Page 34: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Structural Subsumption for ALN• Language: ALN

– AL (C п D, R.C , T, , A, R.T)– Number restrictions (≥nR, ≤nR)

• Normal form for ALNC L1 п … п Lm п R1.C1 п … п Rn.Cn

or C , – Li atomic concepts, their negation, or ≥nR,≤nR

– Ci in normal form, Ri, Ai distinct

Page 35: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Computing Normal Form for ALN• C п D, R.C , T, , A, R.T, ≥nR, ≤nR C L1п…пLm п R1.C1п…пRn.Cn or C1. Look at outermost connective

1. , T, , ≥nR, ≤nR, R.T : return concept2. R.C : C’ = recurse on C; return R.C’ 3. C п D – recurse on C,D, generating C’,D’; 4. If top level of C’ п D’ includes conflict (A,A;

; ≥nR,≤mR (n<m); ≥nR,R.), return 5. Return C’ п D’

Page 36: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Structural Subsumption Algorithm for ALN

1. Convert concepts to normal form C L1 п … п Lm п R1.C1 п … п Rn.Cn

D N1 п … п Nk п S1.D1 п … п Sl.Dl

2. Check recursively:i≤k j≤m s.t. Bi = Aj

i≤l j≤n s.t. Si = Rj , Ci Dj

with ≥nR ≥mR iff n≥m

п

п

Page 37: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Example

• C=Person п Female п hasChild.T п hasChild.Person п hasChild.Female п hasChild.hasChild.Female п hasChild.hasChild.Female

• D=Person п ≥1.hasChild

ON BOARD

Page 38: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Extending ALN• Language: ALCN

– ALN: CпD, R.C , T, , A, R.T, ≥nR, ≤nR

– Arbitrary negation (complement) C • Overall algorithm for satisfiability

1. Convert to negation normal form (negation in front of atoms only)

2. Use tableau theorem proving to find model

Page 39: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Principles of Tableau Reasoning

• Apply rules and build tree (defines model): • When a branch of the tree is contradictory

to itself (e.g., has A,A), we backtrackp (~q ~p)

p

(~q ~p)

~q ~p

Tableau forPropositional logic:Rules for ,

Page 40: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Tableau-based Satisfiability Algorithm for ALCN

1. Want to show that C0 (in NNF) is satisfiable

2. We look for a model of Abox A = {C0(x0)}, with x0 a new constant symbol

1. Apply (consistency preserving) transformation rules

2. If at some point a “complete” ABox is generated, then C0 is satisfiable

3. If no complete ABox found, C0 unSAT

Page 41: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Tableau-based Satisfiability Algorithm for ALCN

• п-rule:– Condition: A contains (C1 п C2)(x), but neither

C1(x),C2(x)– Action: A’=A{C1(x),C2(x)}

• U-rule:– Condition: A contains (C1 U C2)(x), but

neither C1(x),C2(x)– Action (nondeterministically choose):

A’=A{C1(x)}, A’’=A{C2(x)}

Page 42: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Tableau-based Satisfiability Algorithm for ALCN

-rule:– Condition: A contains (R.C)(x), but there is

no individual name z s.t. C(z) and R(x,z) in A– Action: A’=A{C(y),R(x,y)} for y an individual

name not occuring in A• -rule:

– Condition: A contains (R.C)(x) and R(x,y), but C(y) is not in A

– Action: A’=A{C(y)}

Page 43: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Tableau-based Satisfiability Algorithm for ALCN

• ≥-rule:– Condition: A contains (≥nR)(x), but no individual

names z1,…, zn s.t. R(x,zj) (i≤n) and zj≠zj (i<j≤n)– Action: A’=A{R(x,yj)| i≤n}{yi≠yj| i<j≤n}, and y1,…,yn

distinct individual names not in A• ≤-rule:

– Condition: A contains distinct individual names y1,…,yn+1 s.t. (≤nR)(x) and R(x,yi) (i≤n) in A, but yi≠yj not in A for some i≠j

– Action (nondeterministically choose j<i≤n with yi≠yj): A’=A[yi/yj]

Page 44: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Example

• (R.A) п (R.B) R.(A п B)п

?

Page 45: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Example 2

• (R.A) п (R.B) п (≤1R) R.(A п B)п

?

Page 46: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Computational Properties

• Satisfiability (and subsumption) in ALCN is PSpace-complete

• This tableau algorithm takes time O(22^n)• Small improvement gives a

nondeterministic PSpace tableau algorithm which takes time O(22n)– n = length of concept/s

Page 47: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Related to DL

• Natural language processing• Semantic web• Complexity of reasoning and decidable

first-order languages• Conceptual modeling• CYC

Page 48: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Summary So Far

• Description Logics provide expressivity / tractability tradeoff– ALN reasoning in polynomial time– ALCN reasoning in PSpace

• Next: Medical informatics

Page 49: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Application: Medical Informatics

• GALEN: A terminological knowledge base (TBox) of human anatomy

• Hierarchical display• Multiple axes• Simple combinations of concepts• Automatic-dynamic classification of new

concepts• Aid in creating new concepts

Page 50: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Application: Medical Informatics

• Example: classification– Leg which

• hasLeftRightSelector leftSelection– Leg п leftRightSelector.leftSelection, or– Leg п leftRightSelector.{leftSelection}

• The language does not include negation• If have time – show demo

Page 51: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Possible Projects

• Resolution-style algorithm for ALCN

Page 52: Knowledge Repn.  Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

Description Logics: Language

• REMEMBER:1. Beth’s definability and TBox/Abox

distinction

• Example definition: пU

• Assertions are made at an assertional part of the KB (Abox)