Prolog beginner question

tothaa

Junior Member
Jul 12, 2013
2
0
0
I'm just trying prolog...

How can you expres that: if f(X) relation exists then X also most be true.


somehow like this:

apple.pl:
f(a).
f(b).
%?? sg rule???....

querry:
?- f(a).
yes
?- a.
yes

?- f(z).
no
?- z.
no
 

tothaa

Junior Member
Jul 12, 2013
2
0
0
OK; I see, Prolog is not the easy way...
Do you think, there is a better solution for representing and managing knowledge in general?
Any idea?
thx.