10 Mar 2005
CS 3243 - FOL and Prolog
39
Queries
l
Prolog is interactive; you load a KB and then ask
queries
l
Composed at the ?- prompt
l
Returns values of bound variables and yes or no
l
l
?- son(bob, harry).
l
yes
l
?- king(bob, france).
l
no