Re: Storing data and code in a Db with LISP-like interface
Date: Fri, 21 Apr 2006 17:13:44 +0200
Bob Badour <bbadour_at_pei.sympatico.ca> writes:
> Pascal Bourguignon wrote:
>> Bob Badour <bbadour_at_pei.sympatico.ca> writes:
>>>Can it handle n-ary relations? Like "John bought 10 apples each at
>> Of course:
>> How many apple did john buy?
>> ?- bought(john,HowMany,apple,_price,_money).
> Thank you, that's much more revealing than 100 binary relations.
> Does prolog summarize the results? Or does it list each individual purchase?
> ?- bought(john,HowMany,apple,_price,_money).
Perhaps it's time you download a prolog implementation and browse a prolog tutorial ;-)
I'd advise swi-prolog: http://www.swi-prolog.org/
-- __Pascal Bourguignon__ http://www.informatimago.com/ "Remember, Information is not knowledge; Knowledge is not Wisdom; Wisdom is not truth; Truth is not beauty; Beauty is not love; Love is not music; Music is the best." -- Frank ZappaReceived on Fri Apr 21 2006 - 17:13:44 CEST