Professional Documents
Culture Documents
Lab3&4 Abiral Pokhrel Rollno 4
Lab3&4 Abiral Pokhrel Rollno 4
RolIno: 4
. Facts:
Luther visited Rme in 1S11.
Heory made Defender of faith in 1S71
Vasco da hama dled
1S24. in
htorge killed at Paris in 1S29.
Keopenng of War in 1s40.
Wite a rule query to ask for date and dis play the result
a
oas
following
followi ng (om poring tbe entere d dqBe in the know le
dge ba
Event ha ppened in
year-Das
-
asser t l event
(°"Henry made Defender of fai h", 1S71)).
-
Sample u w
n: total-cost ( I cor nf laks, trips], X ).
Y 420
hatsys tem.pl
alter ([do, you, know, french3,X)
X Ino,i, know,
gevman)
X[no, i, knou, Frenc h]
Xino, Lam, no1, know,
fren ch)
Xno, you, knod,g
erman]
X Uno, you, kooo,
frene h]
X=ldo, ),kno, gerranJ)
X [do,
h know, Freneh];
X
Ido, lam,not1, KDow,
Y [do,[am, not], know, german)
French]
5
-maletX), Father.of joe, 1), X==Y, write
joe"),nl , mother.of (Jane, z), X), orite "
is the son of
X= =
z, wri te
Son of jane ). Y), write "is He
Paulis son of joe.
Paul is Sone of jan e
X:1,Y=2, 1 pau
false
7-femal eX), father.of (joe, 1Y =Y, write l "
i, a daughter of joc "),
ntmother. of (jane, 2), Xzz 2, write tY), write ("is the daughter
of jone "),
mary is daughter of jan e.