Description

5/5 - (2 votes)
  • Load all the prolog files in the folder in SWI-Prolog using the consult feature. Load xshell.pl second to last and cichlid.ps last. Type xshell to run the program and play with it. Examine the cichlid.pl file carefully. It contains the knowledgebase rules.

 

  • Modify the cichlid.pl file to create your own knowledgebase. Consult Chapter 9 of the prolog book for more details. Your database should be about dog breeds. Features that determine dog breeds include hair length, color, length of tail, etc. For example, go to http://dogtime.com/dog-breeds/characteristics and choose several characteristics. Based on these characteristics, enter several dog breeds in the knowledgebase. Test the program and make sure it works. To simplify testing, create a text file that contains the dog breeds and the characteristics for each breed.