| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Storing data and code in a Db with LISP-like interface
You really should play a little with prolog:
program (neof.pro):
judge(john). fruit(apple1). fruit(tomato1).
likes(john, leftover1). likes(john, apple1). likes(john, tomato1). thing(X):-vegetable(X).
For help, use ?- help(Topic). or ?- apropos(Word).
1 ?- chdir('H:/src/prolog').
Yes
2 ?- consult('H:/src/prolog/neof.pro').
% H:/src/prolog/neof.pro compiled 0.00 sec, 1,996 bytes
Yes
3 ?- likes(john, What).
What = leftover1 ;
What = apple1 ;
What = tomato1 ;
No
4 ?- vegetable(tomato1).
Yes
5 ?- fruit(tomato1).
Yes
6 ?- thing(tomato1).
Yes
7 ?- person(tomato1).
No Received on Tue Apr 25 2006 - 18:01:05 CDT
![]() |
![]() |