newby question about lists
From: DEMAINE Benoit-Pierre (nntp_pipex_at_demaine.info)
Date: 10/27/04
- Previous message: Andreas Nauerz: "Putting arguments in a list"
- Next in thread: Jan Wielemaker: "Re: newby question about lists"
- Reply: Jan Wielemaker: "Re: newby question about lists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 04:12:44 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have
parent(mum,[ isa,jm]).
in test_01.pl
after consulting it, I hit:
parent(mum,X).
and get as expected :
X = [isa, jm]
How should I write the file so that asking the same question I get the
answers :
X = isa ;
X = jm ;
I still want to use lists in the file.
I am using SWI-Prolog (Multi-threaded, Version 5.2.13)
on Linux.
###
How can I add knowledge in the DB using the CLI ?
for example if the user consult the file, but want to add knowledge;
- - how should he add information usable later in the same cession ?
- - how to save the whole database into a new file for later use ?
###
Is it possible in PROLOG to execute external file ? something like the C
call 'system' or such ...
###
Thanks
- --
DEMAINE Benoît-Pierre http:/www.demaine.info/
\_o< apt-get remove ispell >o_/
There're 10 types of people: those who can count in binary and those who
can't
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBfxIrGWSTLbOSw8IRAiasAKC0mdVvnXrzA/Au+0pm18lMZhezwwCeJ7X/
cFTpn0fXwpKftVwW778j0ds=
=pNoY
-----END PGP SIGNATURE-----
- Previous message: Andreas Nauerz: "Putting arguments in a list"
- Next in thread: Jan Wielemaker: "Re: newby question about lists"
- Reply: Jan Wielemaker: "Re: newby question about lists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|