Look for a mother of a child

Roelof Wobben <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hello, 


I have these facts:


male(roelof). 

male(mans).

male(jan).


female(chantal). 

female(tamara). 

female(marie). 


parent(roelof,tamara).

parent(mans, roelof). 

parent(jan, chantal). 

parent(marie, roelof). 

parent(chantal, tamara). 


mother(child):- 

parent(X, child),

female(X).


But when I do mother(tamara). I see no where I expected to see chantal.


Did I do something wrong or does swi-prolog do something wrong ?


Roelof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.