I wrote a program in prolog.
parent(Amy,John).
parent(Bob,John).
parent(John,Ben).
parent(Alice,Ben).
I'm using SWI-Prolog on Ubuntu 12.04. When I insert my file in swi-prolog interpreter:
['example.pl']
I'm getting warnings:
Warning: /home/mazix/example1.pl:1:
Singleton variables: [Amy,John]
Warning: /home/mazix/example1.pl:2:
Singleton variables: [Bob,John]
Warning: /home/mazix/example1.pl:3:
Singleton variables: [John,Ben]
Warning: /home/mazix/example1.pl:4:
Singleton variables: [Alice,Ben]
% example1.pl compiled 0.00 sec, 4 clauses
true.
What do these mean? And what does the true
at the bottom mean? How should I get rid of this warnings?