GNU prolog (gprolog) has been installed on all Sun workstations (i.e., flat-rock, hendersonville, marshall, and brevard) as well as the Linux boxes.
There are some example programs in /usr/local/gprolog-1.2.1/ExamplesPl on the Suns.
The online documentation is available at the following URL:
http://gnu-prolog.inria.fr/manual/index.html
To get you started here are a few basics on running gprolog:
user
type either:
[ user].
or
consult(user).
Create a prolog knowledge-base that can be used to reason about your family relationships.
male(dennis).
male(michael).
female(diana).
If you want to include uppercase characters or embedded blanks you
must enclose the name in single (not double) quotes. For example
male('Ghenghis Khan').
parent(dennis, michael).
parent(dennis, diana).
?- parent(X, someone), female(X).
If parent/2 seems to be working, you can add additional family members to get a larger knowledge-base. Remember to include the corresponding male/1 or female/1 predicate for each individual added.
mother(M,C):-
parent(M,C),
female(M).
married(michael, diana).
married(diana, michael).
grandparent(someone, X).
grandparent(X, someone).
You must create a knowledge-base containing at least 14 rules. The rules and facts listed in 1-9 above must be included in your knowledge-base, whereas, the rules suggested in 10 are optional. Once you have completed your knowledge-base, try to prove various relationships and see how people are related.
Hand in an ASCII version of your knowledge-base plus a few queries. You can use a screen capture (i.e., using the program script on the unix platforms) to create a hardcopy of the queries. Also submit your knowledge-base to your ftp directory for this class.