Weak Slot and Filler - Rich
Weak Slot and Filler - Rich
Amey D.S.Kerkar,
Asst.Professor, Computer Engineering Dept.
Don Bosco College of Engineering,
Fatorda-Goa.
Inheritable knowledge
The relational knowledge base determines a set of
attributes and associated values that together
describe the objects of knowledge base.
Player Height Weight Bats_throws
John 6.1 180 Right_throws
Sam 5.10 170 right_right
Jack 6.2 215 Bats_throws
E.g. Player_info(john,6.1,180,right_throws)
The knowledge about the objects, their attributes and
their values need not be as simple as shown.
isa
hhaass-ppaart
PPeerssoonn Nose
instance
uniform
colour team
Red Owen Liverpool
This structure is also called as slot and filler structure. These structures are the
devices to support property inheritance along isa and instance links.
Advantage of slot and filler structures:
1. monotonic reasoning can be performed more
effectively than with pure logic and non monotonic
reasoning is easily supported.
Weak slot and filler structure Strong slot and filler structure
isa
has-part
Person Nose
uniform instance
color team
Blue Jack Chicago Royals
In this network we could use inheritance to derive
the additional info:
has_part(jack, nose)
Intersection Search
One way to find relationships among objects is to spread
the activation(links) out from two nodes and find out
where it meets
Ex: relation between :
Mammal
Red and liverpool
isa
has-part
Person Nose
uniform instance
color team
Red Owen Liverpool
Representing non binary predicates:
1. Unary
e.x. Man(marcus) can be converted into:
instance(marcus,Man)
2. Other arities-
e.x. Score(india,australia,4-1)
3 or more place predicates can be converted to binary
form as follows:
1. Create new object representing the entire
predicate.
2. Introduce binary predicates to describe relation to
this new object.
Score(india,australia,4-1)
Game
isa
Visiting _team Score
Australia TEST4 4-1
Home _team
India
Ex. 2. john gave the book to Mary
give(john,mary,book)
Give Book
instance instance
agent Object
John EV 1 BK1
beneficiary
Mary
Making some important distinctions
1. john has height 72
height
John 72
height height
greater_than
H1 H2
Value
72
Partitioned semantic nets
Used to represent quantified expressions in
semantic nets.
One way to do this is to partition the semantic net
into a hierarchical set of spaces each of which
corresponds to the scope of one or more variable.
the dog bit the mail carrier [partitioning not required]
Dogs Bite Mail-Carrier
assailant victim
d b m
every dog has bitten a mail carrier
x: dog (x) y: mail-carrier(y) bite(x, y)
How to represent universal quantifiers?
Let node g stands for assertion given above
This node is an instance of a special class GS of
general statements about the world.
Every element in GS has 2 attributes:-
Form - states relation that is being asserted.
connections - one or more, one for each of the universally
quantified variables.
SA is the space of partitioned sementic net.
Let node g stands for assertion given above
S1
isa
form
g d b m
assailant victim
Every dog in the town has bitten the constable
S1
isa isa isa isa
form
g d b m
victim
assailant
Every dog in the town has bitten every constable
S1
isa isa isa
d b c
victim
assailant
form
isa
GS g
More examples of sementic nets:
Mary gave the green flowered vase to her
favourite cousin
Give
instance
agent Object
Mary EV 1 vase
Colour_pattern
beneficiary
Green
cousin
flowered
favourite
every batsman hits a ball
SA
S1
isa
form
g b h b
action Acts_on
Tweety is a kind of bird who can fly. It is Yellow
in colour and has wings.
colour
has-part
yellow Bird Wings
action instance
fly Tweety
Represent following using sementic nets:-
Tom is a cat. Tom caught a bird. Tom is owned by John. Tom is
ginger in color. Cats like cream.The cat sat on the mat. Acat is
a mammal. Abird is an animal. All mammals are
animals.mammals have fur.
Frames
Another kind of week slot and filler structure.
Frame is a collection of attributes called as slots
and associated values that describe some entity in
the world (filler).
Consider, Room No 2
Hotel room
isa height
20-40 cms
contains contains
Hotel Chair
isa: Chair Frame structure for Hotel Chair
use: sitting_on
location: Hotel Room
.... ......
.... ...... Frame structure for all remaining
attributes
.... ......
American National
Fielder Pitcher Catcher
Leaguer Leaguer
instance instance
Jack
ML_Baseball_Player
is covered-by: { Pitcher, Catcher, Fielder,American leaguer, National leaguer}
Pitcher
isa: ML_Baseball_Player
mutually_disjoint-with: {Catcher, Fielder }
Catcher
isa: ML_Baseball_Player
mutually_disjoint-with: {Pitcher, Fielder }
Fielder
isa: ML_Baseball_Player
mutually_disjoint-with: {Pitcher, Catcher}
.
.
.
.
Tangled Hierarchies
Ostrich
fly :no Pet-Bird
FIGURE A
Can fifi fly?
The correct answer must be no.
Although birds in general can fly, the subset of birds , ostriches does not.
Although class pet bird provides path from fifi to bird and thus to the answer that fifi
can fly, it provides no info that conflicts with the special case knowledge associated with
class ostrich, so it should hove no effect on the answer.
Quaker Republican
pacifist: true pacifist: False
FIGURE B
Is Jack Pacifist?
Ambiguity
One way to solve ambiguity is to base the new inheritance algo based on path
length:
Using BFS start with the frame for which slot value is needed.
Follow its instance links, then follow isa links upwards .
If the path produces a value it can be terminated, as can all other paths once their length
exceeds that of the successful path.
Using this technique our answers to fifi problem is :no and
for jack problem we get 2 values hence contradiction.
Now consider following hierarchies:
Bird
FIGURE C
isa fly :yes
Ostrich
fly: no
isa
isa
Plumed Ostrich
isa
Pet-Bird
White-Plumed
Ostrich
fifi instance
instance
fly : ?
Our new algo gives answer: fifi can fly. i.e. Fly: yes.
FIGURE D Republican
pacifist: false
isa
Quaker Conservative
pacifist: true Republican
instance instance
Jack
Pacifist : ?