Question: Write the following as Prolog rules: 1. Implement a rule dogEnthusiast. Someone is a dogEnthusiast if they own AT LEAST TWO dogs. Assume that the

Write the following as Prolog rules:

1. Implement a rule "dogEnthusiast". Someone is a "dogEnthusiast" if they own AT LEAST TWO dogs. Assume that the only types of facts available are: "owner" facts of the form owner(p,n), meaning that person p owns animal named n. "breed" facts of the form breed(a,b), meaning that animal named a is of type b. For example: paul julie peter ann bob mary john eva judy alex andrea Fall 2017, pg. 2 owner(fred,fido) means that a person named "fred" owns an animal named "fido". breed(fido,dog) means that the animal named "fido" is a dog. breed(leo,cat) means that the animal named "leo" is a cat. dogEnthusiast(sam) would be true if sam owned two different animals that were dogs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!