Question: The semantic net shown in the < > is represented with the Prolog code below. The blue nodes are the isa node, while the green

The semantic net shown in the <

> is represented with the Prolog code below. The blue nodes are the isa node, while the green nodes are the hasa nodes. Write a Prolog predicate that takes two argument and is true if both animals come from the same continent.

For example, the query:

?- same_continent(skippy,willy).

should return true; while the query:

?- same_continent(stella,skippy).

should return false.

Submit a PDF document with the following sections: (1) Your Prolog Code and (2) sample executions of running your queries in Prolog.

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!