Practice Exercises for Linneus
For the database, use the sample dialog at the bottom of the page
Each of the following function calls is from the newer version of Linneus.
1. (get-isa 'turbot) --> ____________
2. (get-isa 'fish) --> ____________
3. (get-includes 'fish) --> ___________
4. (get-includes 'swimmer) --> __________
5. (get-article 'turbot) --> ___________
6. (get-article 'animal) --> ___________
7. In the call to: (handle-assertion '(a fish is a swimmer))
A. the arguments to (add-superset x y), x = __________, y = ___________
B. the arguments to (add-subset y x), x = __________, y = ___________
C. ___________ is a superset of ______________
D. ___________ is a subset of ____________
E. Article1 = ____, and is the article for __________
F. Article2 = ____, and is the article for __________
8. In a call to: (handle-what-is '(what is a swimmer))
A. (get-isa 'swimmer) returns ________
B. (get-includes 'swimmer) returns ___________
C. In the "cond", X = _________, Y = _____________ and ISAFLAG = ___________
D. (if isaflag ...) returns ____________________
E. (make-conj '(person fish)) returns _____________
9. A. (handle-is-a '(is an elephant a swimmer))
returns: _____________________________
B. (handle-is-a '(is a turbot a swimmer))
returns: ____________________________
C. In part 9B, X = ____________ and Y = ______________
(isa-test x y 10) returns _________________________
The purpose of the 10 is:
This "isa-test" starts at the leaves/root of the tree? _________
10. In a call to: (handle-why '(why is a fish a swimmer))
A. (match-article article1) matches article1 with ________
B. (match-article article2) matches article2 with ________
C. X = __________ Y = __________
D. (isa-test x y) returns __________
E. (explain-links x y) returns ______________________
(linnues)
(I AM LINNUES)
(PLEASE GIVE ME INFORMATION OR ASK QUESTIONS)
(a turbot is a fish)
(I UNDERSTAND) swimmer animal
(a fish is an animal) / \ /
(I UNDERSTAND) person fish
(a fish is a swimmer) /
(I UNDERSTAND) /
(what is a turbot) turbot
(A TURBOT IS A FISH)
(what is a swimmer)
(A SWIMMER IS SOMETHING MORE GENERAL THAN A FISH)
(is a turbot an animal)
(YES INDEED A TURBOT IS AN ANIMAL)
(why is a turbot a swimmer)
(BECAUSE A TURBOT IS A FISH AND A FISH IS A SWIMMER)
(why is a turbot a turbot)
(BECAUSE THEY ARE IDENTICAL)
(why is a turbot a fish)
(BECAUSE YOU TOLD ME SO)
(a person is a swimmer)
(I UNDERSTAND)
(what is a swimmer)
(A SWIMMER IS SOMETHING MORE GENERAL THAN A PERSON AND A FISH)
Go here for answers.