Re: how to get some statements about a constant?

FERNANDO SAENZ PEREZ <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <CAMDa7mswJcnckt6=cQqE2zPEH=paVNkgx3MgBwCEBXNbbschug@mail.gmail.com>
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 <[email protected]>

> 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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/users-prolog
>

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
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.