A simple family tree is defined, some facts about the members are defined in the fact section, some rules connecting the family members are defined in the rule section.
This is an example of using Prolog to perform deduction.
Source Code
Output
Start the swi-prolog console, load the above script(fam01.pl) and query the system as follows:
No comments:
Post a Comment