Re: simple example please, facts and query in one file

emacstheviking <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <CAEiEuUJYbboFoYRdvoHoJAT6cCdh_0Sai4MWeN-yBrrqPEqKjg@mail.gmail.com>
Patrick,

To list the database use the "listing" predicate:
ftp://gprolog.univ-paris1.fr/pub/gprolog/manual/html_node/gprolog047.html#listing%2F1

It takes a parameter which you can use to narrow down what is listed as
well. That should help you see what's in your database.

To make a query, just type it in at the prompt and hit RETURN... sounds
obvious but that's all there is to ity unless I misunderstood your question!

Perhaps you'd care to post all or some (if it is large) of your facts and
things that you have and then say what you want to query?

Sean.



On 19 November 2013 16:22, Patrick <[email protected]> wrote:

> Hi Everyone
>
> Sorry to ask this....
>
> I am studying and making progress but I can't figure out the simplest
> thing.
>
> I have been able to consult little database files and query but I don't
> know how to list facts and query against them in the same file.
>
> Could someone post a little example?
>
> Sorry to bother everyone with this stupidity.
>
> -Patrick
>
>
>
> _______________________________________________
> 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.