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
Get step-by-step solutions from verified subject matter experts
