Ans. Frames are general record-like structures which
consist of a collection of slots and slot values. The slots
may be of any size and type. Slots typically have names and
values or sub fields called facets. Facets may also have names
and any number of values. An example of a simple frame called
henry is given below:
(henry
(ako (value man))
(height (value 75))
(weight (value 170))
(hobbies (value jogging skiing)))
Scripts are used to represent sequences of commonly occurring
events. They were originally developed to capture the meanings
of stories or to understand natural text. In that respect
they are like a script for a play. The following example shows
the eat-at-restaurant script:
Props: (restaurant, money, food, menu, tables, chairs)
Roles: (hungry-persons, waiters, chefs)
Point-of-view: hungry-persons
Time-of-occurrence: (times-of-operation of restaurant)
Place-of-occurrence: (location of restaurant)
Event-sequence:
first: enter-restaurant script
then: If (wait-to-be-seated sign or reservation) Then please-be-seated
script
then: order-food script
then: eat-food script
then: pay-bill script
finally: leave-restaurant script
|