Knowledge representation Sem Net and frames
Knowledge representation Sem Net and frames
– predicate logic,
– semantic networks,
– frames,
“Every human, animal and bird is living thing who breathe and eat. All birds can
fly. All man and woman are humans who have two legs. Cat is an animal and has
a fur. All animals have skin and can move. Giraffe is an animal who is tall and has
long legs. Parrot is a bird and is green in color”.
● Every human, animal and bird is living thing who breathe and eat.
X [human(X) living(X)]
X [animal(X) living(X)]
X [bird(X) living(X)]
X [bird(X) canfly(X)]
● Every man and woman are humans who have two legs.
X [man(X) haslegs(X)]
X [woman(X) haslegs(X)]
4.4. Inheritance
Output:Yes, if the object has the desired property else return false;
Procedure:
};
Instance rules:
Subclass rules:
Property rules:
Queries
4.5. Knowledge Representation using Frames
● Lower level frames can inherit information from upper level frames in
network.
● A frame may have any number of slots needed for describing object. e.g.,
– Each slot may contain one or more facets (called fillers) which
may take many forms such as:
university
a_part_of
department hostel
a_part_of is_a
ako
science_faculty
is_a
renuka
4.5.2. Detailed Representation of Frame Network
frame0
f_name: university
phone: (default: - 011686971)
address : (default - IIT Delhi)
frame1 frame2
frame11 frame21
frame12 frame13
● If class frame has actual value facet then decedent frames can not modify
that value.
● Search will start from frame13 in upward direction till we get our
answer or have reached root frame.
● First argument is the name of the frame and second argument is a list of
slot - facet pair.
● Predicate search will basically retrieve the list of slots-facet pair and will
try to match Y for slot.
Example:
Z
Father Parent
X Y
Gfather
● Represent clausal rule “Male(X), Female(X) Human(X)” using binary
representation as “Isa(X, male), Isa(X, female) Isa( X, human)”
and subsequently in ESNet as follows:
male
Isa Isa
X human
Isa
female
● The inference that “for every action of giving, there is an action of taking”
in clausal logic written as
ESNet
● The inference rule such as “an actor of taking action is also the recipient
of the action” can be easily represented in clausal logic as:
Y
Example 2:
Action(e, take).
apple
Object
e E Recipient
Actor Action Actor
Action
john take Y
4.6.2. Contradiction
Part_of
P X
Isa
Part_of
Y
Top Down Inferencing: Prove a conclusion from a given ESNet by adding the
denial of the conclusion to the network and show that the resulting set of
clauses in the network is inconsistent
human human
Isa
X Isa
Isa
man john
john Isa
human human
Isa Isa
X X
Isa Isa Isa
man man