Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1(10 pts) Knowledge representation in prolog Create a prolog database capturing the information about your family. The procedure created in the database is called
Question 1(10 pts) Knowledge representation in prolog Create a prolog database capturing the information about your family. The procedure created in the database is called information with arity/4 as following syntax: Information (anna, male, anna, john). Information (sam, male, amelia, david) The facts comprise of individual's name, sex, and parents' names. Create a minimum of 15 facts to make the database large enough. Create the below mentioned rules to query useful information from the database 1. cousin g (X,Y) /* Hint: X is the cousin _g of Y if X is a cousin of Y and X is female 2. cousin m (X, Y* Hint: X is the cousin g of Y if X is a cousin of Y and X is male 3. uncle_m (X,Y) /* Hint: X is uncle_m of Y if X is the brother of Y's mother. 4. aunt f (X,Y) /* Hint: X is aunt fofY if X is the sister of Y's father 5. sibling_s (X,Y)* Hint:Xis sibiling s of Y if they are siblings with the same sex (brothers or sisters) Note: You can add more procedures to your database if you need them for creating the above rules
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