Addendum to CPS 430/542 Homework #6

Assigned: November 6
Due: November 13, 4:30pm, in class


(10 points) Cook-up a simple PROLOG database consisting of at leas ten tuples. Your example should have relevance to something in the real-world. Then, develop three new intensional predicates (i.e., so called rules or views) of that relation which each address a fundamentally different query. Preface each new predicate with a single-line comment stating the query it addresses (e.g., `Find all the movies made by Fox.'). When done, enter PROLOG's query mode and start executing your queries to ensure that they are doing what you want them to do. Your answer should consist of (a) a printout of your .pl file showing the cooked-up data, 3 new predicates, and comments, and (b) a transcript of a session with PROLOG showing the results for each of your queries on the synthetic data. It is easy to create a transcript of your session with PROLOG. Once you enter query mode, execute the following goal ?- protocol('transcript'). . This will save your interactions with the system in a text file named transcript.

Return Home