Question
Please write a CLIPS program that does the following: Given the following deftemplates for facts describing a family tree: (deftemplate fatherof (slot father)(slot child)) (deftemplate
Please write a CLIPS program that does the following:
Given the following deftemplates for facts describing a family tree:
(deftemplate fatherof (slot father)(slot child))
(deftemplate motherof (slot mother)(slot child))
(deftemplate male (slot person))
(deftemplate female (slot person))
(deftemplate wifeof (slot wife) (slot husband))
(deftemplate husbandof (slot husband) (slot wife))
Write rules that infer the following relations. Use deffacts construct to insert some initial facts in the factbase that describes your own family tree , run the expert system, and display all the facts in the factbase (This should display all the initial and the inferred facts) .
a) Uncle, aunt
b) Cousin
c) Grandparent
d) Grandfather, grandmother
e) Sister, brother
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started