Академический Документы
Профессиональный Документы
Культура Документы
Representing Commonsense
Knowledge
L. Manevitz
Mammal
Is-a
has-part
Person Nose
uniform- instance
color team
Blue Pee-Wee-Reese Brooklyn-Dodgers
man(Marcus)
could be rewritten as
instance(Marcus,Man)
home-team
Dodgers
All rights reserved © L. Manevitz Lecture 7 6
A Semantic Net Representing
a Sentence
“John gave the book to Mary.”
Give Book
instance instance
agent object
John EV7 BK23
beneficiary
Mary
Second try:
John Bill
height height
greater-than
H1 H2
All rights reserved © L. Manevitz Lecture 7 8
Some Important Distinctions
cont.
Third try:
John Bill
height height
greater-than
H1 H2
value
72
GS Bite Constables
Town-Dogs
form
GS Is-a g
All rights reserved © L. Manevitz Lecture 7 13
Inheritance
• Is-a slot – appears between objects and
classes.
Block
ako ako
shape shape
Wedge Triangular Brick rectangular
Is-a Is-a
Wedge18 Brick12
Weight (if-needed)
Block-weight-
Block procedure
Brick
Volume 400
Brick12
Density 11
Brick
Weight 4400
Volume
Brick12 400
Density 11
All rights reserved © L. Manevitz Lecture 7 19
Default Inheritance Procedure
F the given node; S the given slot;
2. Form a Queue of F and all class nodes connected to F
via Is-A node. F is at top of Queue.
3. Until Queue is empty or default has been found
determine if the first element of Queue has a value in
the Default facet of its S slot:
a. Yes – if the first element has a value than a value has been
found.
b. No – remove the first element from Queue and add the nodes
related to the first element by AKO slots to the end of Queue.
4. If a value has been found say that the value found is the
default value of F’s S slot.
Otherwise announce Failure.
All rights reserved © L. Manevitz Lecture 7 20
Default Inheritance - Example
Has no default
color therefore
probably Blue Color (Default)
because of Block Blue
Block’s default
color ! ako ako
Color (Default)
Wedge Brick Red
Is-a Is-a
Wedge18 Brick12
All rights reserved © L. Manevitz Lecture 7 21
Perspective -Example
rectangular
Play Commemorate
shape Purpose
Purpose
Brick Structure Toy Gift
Purpose
Support
day Today
fatalities
25
damage
500,000,000
magnitude
8.5
C ATRANS F to W
W ATRANS F to S
S INGEST F
(Option : Return to Scene 2 to order more;
otherwise go to Scene 4)
S MTRANS to W
(W ATRANS check to S)
W MOVE (write check)
W PTRANS W to S
W ATRANS check to S
S ATRANS tip to W
S PTRANS S to M
S ATRANS money to M
S PTRANS S to out of restaurant
(No pay path)