users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get some statements about a constant?


From: FERNANDO SAENZ PEREZ
Subject: Re: how to get some statements about a constant?
Date: Sun, 13 Oct 2013 20:09:13 +0200

Did you consider the following representation?

relative(aunt,gugu,wo).
relative(father,baba,wo).

This way, you can ask for you are looking for:

| ?- relative(X,babo,wo).

Best regards,
Fernando


2013/10/12 liubin0314 <address@hidden>
such as:
KB is:
aunt(gugu,wo).
father(baba,wo).
does prolog can get the answer to X(baba,wo) which is father(baba,wo)?

and x(Y,wo)?



--
View this message in context: http://gnu-prolog.996310.n3.nabble.com/how-to-get-some-statements-about-a-constant-tp1110.html
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
Users-prolog mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/users-prolog


reply via email to

[Prev in Thread] Current Thread [Next in Thread]