-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dining.kif
1709 lines (1540 loc) · 66.3 KB
/
Dining.kif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;; ============================================================================
;; REARDEN COMMERCE, INC.
;; Dining Ontology
;; ============================================================================
;; Created by: Karen Joy Nomorosa (karen.nomorosa [at] reardencommerce [dot] com)
;; Created on: March 8, 2011
;; Last modified: August 3, 2011
;; Modified by: Karen Joy Nomorosa (karen.nomorosa [at] reardencommerce [dot] com)
;; Description: This ontology describes different concepts related to Dining
;; Ontology dependencies for Dining.kif: Merge.kif, Mid-level-ontology.kif
;; Access to and use of these products is governed by the GNU General Public
;; License <http://www.gnu.org/copyleft/gpl.html>.
;; By using these products, you agree to be bound by the terms
;; of the GPL.
;; We ask the people using or referencing this work cite our primary paper:
;; Niles, I., and Pease, A. 2001. Towards a Standard Upper Ontology. In
;; Proceedings of the 2nd International Conference on Formal Ontology in
;; Information Systems (FOIS-2001), Chris Welty and Barry Smith, eds,
;; Ogunquit, Maine, October 17-19, 2001. See also http://www.ontologyportal.org
;; ----------------------------------------------------------------------------
;; Restaurant Subclasses
;; ----------------------------------------------------------------------------
(subclass Coffeeshop Cafeteria)
(documentation Coffeeshop EnglishLanguage "a type of &%Cafeteria that
specializes in serving &%Coffee")
(termFormat EnglishLanguage Coffeeshop "coffee shop")
(=>
(instance ?COMPANY Coffeeshop)
(exists (?SERVICE ?BEVERAGE)
(and
(instance ?SERVICE CommercialService)
(agent ?SERVICE ?COMPANY)
(instance ?SERVICE Selling)
(patient ?SERVICE ?BEVERAGE)
(instance ?BEVERAGE Coffee))))
(subclass Brewpub Tavern)
(documentation Brewpub EnglishLanguage "a type of &%Tavern that brews
&%Beer and whose primary service is selling that &%Beer to customers")
(termFormat EnglishLanguage Brewpub "Brewpub")
(=>
(instance ?PUB Brewpub)
(exists (?SERVICE ?BEER ?BREW)
(and
(instance ?BREW Making)
(result ?BREW ?BEER)
(instance ?BEER Beer)
(agent ?BREW ?PUB)
(instance ?SERVICE CommercialService)
(agent ?SERVICE ?PUB)
(instance ?SERVICE Selling)
(patient ?SERVICE ?BEER))))
;; KJN: Edit. Subclassing from Business instead of CommercialAgent
(subclass Bakery Business)
(documentation Bakery EnglishLanguage "a type of &%Business that specializes
in the production and selling of the &%result of the process &%Baking")
(termFormat EnglishLanguage Bakery "bakery")
(=>
(instance ?BAKERY Bakery)
(exists (?SERVICE ?FOOD ?BAKE)
(and
(instance ?BAKE Baking)
(result ?BAKE ?FOOD)
(instance ?FOOD (FoodForFn Human))
(agent ?BAKE ?BAKERY)
(instance ?SERVICE CommercialService)
(agent ?SERVICE ?BAKERY)
(instance ?SERVICE Selling)
(patient ?SERVICE ?FOOD))))
(subclass Steakhouse Restaurant)
(documentation Steakhouse EnglishLanguage "a type of &%Restaurant that
specializes in serving steak, which is cooked &%Beef")
(termFormat EnglishLanguage Steakhouse "steakhouse")
(=>
(instance ?STEAKHOUSE Steakhouse)
(exists (?SERVICE ?STEAK ?BEEF ?COOK)
(and
(instance ?COOK Cooking)
(instance ?BEEF Beef)
(resource ?COOK ?BEEF)
(result ?COOK ?STEAK)
(instance ?SERVICE CommercialService)
(agent ?SERVICE ?STEAKHOUSE)
(instance ?SERVICE Selling)
(patient ?SERVICE ?STEAK))))
;; ----------------------------------------------------------------------------
;; Dining Concepts
;; ----------------------------------------------------------------------------
(subclass Corkage ChargingAFee)
(documentation Corkage EnglishLanguage "&%Corkage is a &%FinancialTransaction imposed
by an &%AutonomousAgent to a customer for bringing items not purchased from &%AutonomousAgent")
(termFormat EnglishLanguage Corkage "corkage")
(=>
(instance ?C Corkage)
(exists (?AMT)
(amountCharged ?C ?AMT)))
(instance corkageFee TernaryPredicate)
(documentation corkageFee EnglishLanguage "(&%corkageFee ?AMT ?ITEM ?AGENT) refers to
the amount ?AMT that ?AGENT charges during a &%Corkage when a customer brings in ?ITEM")
(termFormat EnglishLanguage corkageFee "corkage fee")
(domain corkageFee 1 CurrencyMeasure)
(domainSubclass corkageFee 2 Object)
(domain corkageFee 3 AutonomousAgent)
;; if an agent charges corkage for a particular class of items, and customer brings
;; instances of said items not purchased from agent and consumed while at agent's location,
;; then an instance of corkage occurs
;; Note: This is still problematic as IntentionalProcess can include something like
;; Carrying in which case corkage may not be charged even if ?ITEM is brought in
(=>
(and
(customer ?CUST ?AGENT)
(corkageFee ?AMT ?ITEM ?AGENT)
(instance ?X ?ITEM)
(not
(exists (?B)
(and
(instance ?B Buying)
(patient ?B ?X)
(destination ?B ?CUST)
(origin ?B ?AGENT))))
(instance ?D Drinking)
(agent ?D ?CUST)
(resource ?D ?X))
(exists (?C)
(and
(instance ?C Corkage)
(agent ?C ?CUST)
(refers ?C ?X)
(destination ?C ?AGENT))))
;; Outdoor Dining
(subclass OutdoorDiningArea DiningArea)
(documentation OutdoorDiningArea EnglishLanguage "&%OutdoorDiningArea
refers to a place for eating that is not inside a building")
(termFormat EnglishLanguage OutdoorDiningArea "outdoor dining")
(disjoint OutdoorDiningArea DiningRoom)
(=>
(instance ?D OutdoorDiningArea)
(exists (?O)
(and
(instance ?O Outdoors)
(located ?D ?O))))
;; ----------------------------------------------------------------------------
;; Menu / Food Concepts
;; ----------------------------------------------------------------------------
;; Menu
(subclass Menu Catalog)
(documentation Menu EnglishLanguage "a &%Menu is a type of &%Catalog that specifically
contains the classes of food that is expected to be or proposed to be cooked and
served")
(termFormat EnglishLanguage Menu "menu")
(=>
(and
(instance ?MENU Menu)
(catalogItem ?X ?MENU))
(subclass ?X (FoodForFn Human)))
(subclass SetMenu Menu)
(documentation SetMenu EnglishLanguage "a &%SetMenu is a type of &%Menu that contains
a specific set of prepared food which is all served and is given one price")
(termFormat EnglishLanguage SetMenu "set menu")
(=>
(and
(instance ?MENU SetMenu)
(offers ?AGENT ?MENU)
(catalogItem ?CLASS ?MENU)
(subclass ?CLASS PreparedFood)
(instance ?X ?VLASS)
(instance ?Y ?CLASS)
(not
(equal ?X ?Y))
(price ?X ?PRICE1 ?AGENT1)
(price ?Y ?PRICE2 ?AGENT2))
(equal ?PRICE1 ?PRICE2))
(subclass BeverageMenu Menu)
(documentation BeverageMenu EnglishLanguage "a &%BeverageMenu is a &%Menu
of &%Beverages")
(termFormat EnglishLanguage BeverageMenu "drinks menu")
(=>
(and
(instance ?MENU BeverageMenu)
(catalogItem ?X ?MENU))
(subclass ?X Beverage))
(subclass AlcoholMenu BeverageMenu)
(documentation AlcoholMenu EnglishLanguage "an &%AlcoholMenu is a &%Menu
of &%AlcoholicBeverage")
(termFormat EnglishLanguage AlcoholMenu "cocktail menu")
(=>
(and
(instance ?MENU AlcoholMenu)
(catalogItem ?X ?MENU))
(subclass ?X AlcoholicBeverage))
(subclass WineMenu AlcoholMenu)
(documentation WineMenu EnglishLanguage "a &%WineMenu is a &%Menu of &%Wine")
(termFormat EnglishLanguage WineMenu "wine list")
(=>
(and
(instance ?MENU WineMenu)
(catalogItem ?X ?MENU))
(subclass ?X WineMenu))
;; Braille
(instance Braille PerceptualAttribute)
(documentation Braille EnglishLanguage "&%Braille is an &%Attribute that
describes &%ContentBearingObject that can be interpreted by a &%Blind &%Human")
(=>
(attribute ?X Braille)
(instance ?X ContentBearingObject))
(=>
(and
(instance ?X ContentBearingObject)
(attribute ?X Braille))
(exists (?H)
(and
(instance ?H Human)
(attribute ?H Blind)
(capability Interpreting agent ?H)
(capability Interpreting patient ?X))))
(subclass Buffet Collection)
(documentation Buffet EnglishLanguage "&%Buffet refers to a &%Collection of food that
is served in a central location where guests can get their own servings")
(termFormat EnglishLanguage Buffet "buffet")
(=>
(instance ?X Buffet)
(forall (?ITEM)
(=>
(member ?ITEM ?X)
(instance ?ITEM (FoodForFn Human)))))
(=>
(instance ?X Buffet)
(attribute ?X CommunalAttribute))
;; if a person is eating something from a buffet, then the person getting the food
;; from the buffet's location occurs before the agent eating the food at another
;; location
(=>
(and
(instance ?X Buffet)
(member ?ITEM ?X)
(located ?X ?LOC1)
(instance ?E Eating)
(agent ?E ?AGENT)
(eventLocated ?E ?LOC2)
(patient ?E ?ITEM))
(and
(not (equal ?LOC1 ?LOC2))
(exists (?G)
(and
(instance ?G Getting)
(patient ?G ?ITEM)
(origin ?G ?LOC1)
(agent ?G ?AGENT)
(before (WhenFn ?G) (WhenFn ?E))))))
;; if a buffet is a breakfast buffet, then it is likely that all of the food in the
;; buffet is a breakfast food
(=>
(and
(instance ?X Buffet)
(attribute ?X Breakfast))
(modalAttribute
(forall (?FOOD)
(=>
(member ?FOOD ?X)
(attribute ?FOOD Breakfast))) Likely))
;; ----------------------------------------------------------------------------
;; Restaurant Properties
;; ----------------------------------------------------------------------------
;; (subjectiveAttribute ?ENTITY ?ATTRIBUTE ?AGENT)
(documentation subjectiveAttribute EnglishLanguage "(&%subjectiveAttribute
?ENTITY ?ATTR ?AGENT) means that ?AGENT attaches ?ATTR to ?ENTITY")
(instance subjectiveAttribute TernaryPredicate)
(domain subjectiveAttribute 1 Entity)
(domain subjectiveAttribute 2 Attribute)
(domain subjectiveAttribute 3 AutonomousAgent)
(termFormat EnglishLanguage subjectiveAttribute "subjective attribute")
(=>
(subjectiveAttribute ?ENTITY ?ATTR ?AGENT)
(exists (?RATE)
(and
(instance ?RATE Classifying)
(agent ?RATE ?AGENT)
(patient ?RATE ?ATTR)
(destination ?RATE ?ENTITY))))
(instance facility BinaryPredicate)
(documentation facility EnglishLanguage "(&%facility ?AGENT ?OBJ) means
that an ?AGENT provides some ?OBJ to fulfill some goal or need")
(domain facility 2 Object)
(domain facility 1 AutonomousAgent)
(termFormat EnglishLanguage facility "facility")
;; if an AGENT provides some OBJECT, and there exists a customer who wants
;; to use that object, then AGENT may allow the customer to use that OBJECT
(=>
(and
(facility ?AGENT ?OBJ)
(customer ?CUST ?AGENT)
(instance ?X ?OBJ)
(desires ?CUST
(exists (?PROC)
(and
(instance ?PROC IntentionalProcess)
(patient ?PROC ?X)
(agent ?PROC ?CUST)))))
(modalAttribute
(confersRight
(uses ?X ?CUST) ?AGENT ?CUST)
Possibility))
;; NOTE: You can use RecurrentTimeIntervalFn(HourFn HourFn) to come up with
;; ?TIMEINT
;; (businessHours ?TIMEINT ?AGENT)
(instance businessHours BinaryPredicate)
(documentation businessHours EnglishLanguage "(&%businessHours ?TIMEINT
?AGENT) means that an ?AGENT conducts business-related activities during
?TIMEINT")
(domainSubclass businessHours 1 TimeInterval)
(domain businessHours 2 AutonomousAgent)
(termFormat EnglishLanguage businessHours "business hours")
;; (standardRetailHours ?TIMEINT ?AGENT)
(subrelation standardRetailHours businessHours)
(instance standardRetailHours BinaryPredicate)
(documentation standardRetailHours EnglishLanguage "(%&standardRetailHours
?TIMEINT ?AGENT) means that an ?AGENT engages in &%Selling processes with
customers only within the time specified by ?TIMEINT")
(domainSubclass standardRetailHours 1 TimeInterval)
(domain standardRetailHours 2 AutonomousAgent)
(termFormat EnglishLanguage standardRetailHours "standard retail hours")
(=>
(standardRetailHours ?TIMEINT ?AGENT)
(exists (?S ?T ?C)
(and
(instance ?S Selling)
(instance ?T ?TIMEINT)
(agent ?S ?AGENT)
(customer ?C ?AGENT)
(during
(WhenFn ?S) ?T))))
;; the probability that a customer can be served is higher if it is within
;; standardRetailHours
;; Jennie Pease 19 Oct 2022 added above axioms and revised axioms below~
(=>
(standardRetailHours ?TIMEINT ?AGENT)
(exists (?FT ?T ?C ?SRH ?NONSRH)
(and
(instance ?FT FinancialTransaction)
(agent ?FT ?AGENT)
(instance ?T ?TIMEINT)
(destination ?FT ?C)
(equal ?SRH
(ProbabilityFn
(and
(during (WhenFn ?FT) ?T)
(customer ?C ?AGENT))))
(equal ?NONSRH
(ProbabilityFn
(and
(not
(during (WhenFn ?FT) ?T))
(customer ?C ?AGENT))))
(greaterThan ?SRH ?NONSRH))))
;; KJN: Importing from MILO, but only the part re: standardRetailHours
;;(=>
;; (instance ?X NightClub)
;; (exists (?TIME ?BAR)
;; (and
;; (instance ?BAR Tavern)
;; (located ?BAR ?X)
;; (standardRetailHours ?X ?TIME)
;; (during (BeginFn ?TIME) NightTime))))
(=>
(and
(instance ?X NightClub)
(standardRetailHours ?TIME ?X))
(exists (?T)
(and
(instance ?T ?TIME)
(during ?T NightTime))))
;; payment with a credit card
(subclass BankCardPayment Payment)
(documentation BankCardPayment EnglishLanguage "a &%BankCardPayment is a
type of &%Payment where a &%CreditCard or a &%DebitCard is used as the
&%FinancialInstrument in the transaction.")
(termFormat EnglishLanguage BankCardPayment "bank card payment")
;; if a process for BankCardPayment is undergone, then the instrument in
;; that payment should be a ValidCard
(=>
(and
(instance ?P BankCardPayment)
(destination ?P ?AGENT))
(capability BankCardPayment destination ?AGENT))
(=>
(instance ?P BankCardPayment)
(exists (?C)
(and
(instrument ?P ?C)
(instance ?C BankCard))))
;; payment with cash
(subclass CashPayment Payment)
(documentation CashPayment EnglishLanguage "a &%CashPayment is a type of
&%Payment where &%Currency is used as the &%FinancialInstrument in the
transaction")
(termFormat EnglishLanguage CashPayment "cash payment")
(=>
(instance ?P CashPayment)
(exists (?C)
(and
(instrument ?P ?C)
(instance ?C Currency))))
(subclass Outfit Collection)
(documentation Outfit EnglishLanguage "&%Outfit describes the set of
clothes worn by a person")
(termFormat EnglishLanguage Outfit "outfit")
(=>
(and
(instance ?X Outfit)
(member ?ITEM1 ?X)
(holdsDuring ?TIME
(wears ?PERSON ?ITEM1)))
(forall (?ITEM2)
(=>
(member ?ITEM2 ?X)
(holdsDuring ?TIME
(wears ?PERSON ?ITEM2)))))
;; (dressCode ?CODE ?AGENT)
(instance dressCode BinaryPredicate)
(documentation dressCode EnglishLanguage "(&%dressCode ?CODE ?AGENT)
means that ?AGENT obligates his customers to wear at the minimum clothes
that fulfill ?CODE")
(domain dressCode 1 AmbienceAttribute)
(domain dressCode 2 AutonomousAgent)
;; if an agent has a dresscode, then the agent requires the customer to wear an
;; outfit that conform to that dress code.
(=>
(dressCode ?CODE ?AGENT)
(modalAttribute
(exists (?OUTFIT ?T)
(and
(instance ?OUTFIT Outfit)
(subjectiveAttribute ?OUTFIT ?CODE ?AGENT)
(holdsDuring ?T
(forall (?CUST ?ITEM)
(and
(customer ?CUST ?AGENT)
(locatedAtTime ?CUST ?T ?AGENT)
(member ?ITEM ?OUTFIT)
(wears ?CUST ?ITEM)))))) Obligation))
;;
;;(=>
;; (dressCode ?CODE ?AGENT)
;; (modalAttribute
;; (exists (?CUST ?OUTFIT)
;; (and
;; (subjectiveAttribute ?OUTFIT ?CODE ?AGENT)
;; (instance ?OUTFIT Outfit)
;; (customer ?CUST ?AGENT)
;; (holdsDuring (WhenFn (located ?CUST ?AGENT))
;; (forall (?ITEM)
;; (=>
;; (member ?ITEM ?OUTFIT)
;; (wears ?CUST ?ITEM))))) Obligation))
;; ----------------------------------------------------------------------------
;; Restaurant Services
;; ----------------------------------------------------------------------------
(subclass DeliveryService Transfer)
(documentation DeliveryService EnglishLanguage "&%DeliveryService refers to
the &%Transfer of an &%AutonomousAgent bringing objects purchased from &%AutonomousAgent to a
location indicated by the customer")
(termFormat EnglishLanguage DeliveryService "delivery service")
(=>
(and
(instance ?D DeliveryService)
(agent ?D ?AGENT))
(capability DeliveryService agent ?AGENT))
;; (deliveryRegion ?AGENT ?REGION)
(instance deliveryRegion BinaryPredicate)
(documentation deliveryRegion EnglishLanguage "(&%deliveryRegion ?AGENT
?REGION ?DELIVERY) means that ?AGENT only does a &%DeliveryService if the
destination is within ?REGION")
(domain deliveryRegion 1 AutonomousAgent)
(domain deliveryRegion 2 GeographicArea)
(=>
(deliveryRegion ?AGENT ?REGION)
(capability DeliveryService agent ?AGENT))
;; the probability of an agent being capable of a delivery service is less
;; if the location is outside of the delivery region
(=>
(and
(instance ?D DeliveryService)
(destination ?D ?LOC1)
(deliveryRegion ?AGENT ?REGION)
(conditionalProbability
(located ?LOC1 ?REGION) (agent ?D ?AGENT) ?NUMBER1)
(conditionalProbability
(not (located ?LOC1 ?REGION)) (agent ?D ?AGENT) ?NUMBER2))
(lessThan ?NUMBER2 ?NUMBER1))
;; the origin and destination locations of a delivery service are not equal
(=>
(and
(instance ?D DeliveryService)
(origin ?D ?LOC1)
(destination ?D ?LOC2))
(not (equal ?LOC1 ?LOC2)))
(subclass CateringService ServiceProcess)
(documentation CateringService EnglishLanguage "&%CateringService refers
to the &%ServiceProcess of an &%AutonomousAgent to prepare food and beverage for
consumption in a location away from where the agent is located")
(termFormat EnglishLanguage CateringService "catering")
;; a restaurant has to be capable of CateringService for an instance of
;; CateringService to exist
(=>
(and
(instance ?P CateringService)
(instance ?P ?CLASS)
(agent ?P ?REST))
(capability ?CLASS agent ?REST))
(=>
(and
(instance ?C CateringService)
(agent ?C ?AGENT)
(destination ?C ?CUST)
(located ?AGENT ?LOC1)
(customer ?CUST ?AGENT)
(exists (?S ?FOOD ?E)
(and
(instance ?S Cooking)
(agent ?S ?AGENT)
(result ?S ?FOOD)
(patient ?C ?FOOD)
(instance ?E Eating)
(agent ?E ?CUST)
(eventLocated ?E ?LOC2))))
(not (equal ?LOC1 ?LOC2)))
(subclass FoodPickup CateringService)
(documentation FoodPickup EnglishLanguage "&%FoodPickup is a type of
&%CateringService where the customer has to pick up the food from the
agent's location with the intent of eating it somewhere else.")
(termFormat EnglishLanguage FoodPickup "food pickup")
(=>
(and
(instance ?P FoodPickup)
(agent ?P ?AGENT)
(destination ?P ?CUST)
(patient ?P ?FOOD))
(and
(instance ?FOOD (FoodForFn Human))
(exists (?LOC ?T ?G)
(and
(located ?AGENT ?LOC)
(instance ?T Translocation)
(agent ?T ?CUST)
(destination ?T ?LOC)
(instance ?G Getting)
(origin ?G ?AGENT)
(destination ?G ?CUST)
(patient ?G ?FOOD)))))
(subclass DriveThru FoodPickup)
(documentation DriveThru EnglishLanguage "&%DriveThru is a type of
&%FoodPickup where the customer uses a vehicle to drive thru a driveway
and take the food from a window")
(termFormat EnglishLanguage DriveThru "Drive-thru")
;; ----------------------------------------------------------------------------
;; Reservations
;; ----------------------------------------------------------------------------
(subclass Reservation Agreement)
(documentation Reservation EnglishLanguage "a &%Reservation is a type of
&%Agreement between 2 agents that some resource offered by the one agent
is allotted for use or consumption by another at a specific bounded time")
(termFormat EnglishLanguage Reservation "reservation")
(=>
(instance ?R Reservation)
(exists (?P)
(and
(instance ?P Reserving)
(result ?P ?R))))
(instance reservingEntity BinaryPredicate)
(documentation reservingEntity EnglishLanguage "(&%reservingEntity ?ENTITY
?RESERVE) means that ?ENTITY is the &%AutonomousAgent reserving a particular resource
indicated by ?RESERVE")
(domain reservingEntity 1 AutonomousAgent)
(domain reservingEntity 2 Reservation)
(=>
(reservingEntity ?ENTITY ?RESERVE)
(exists (?P)
(and
(instance ?P Reserving)
(agent ?P ?ENTITY)
(result ?P ?RESERVE))))
(instance reservationChannel BinaryPredicate)
(documentation reservationChannel EnglishLanguage "(&%reservationChannel
?ENTITY ?RESERVE) means that ?ENTITY was used by the &%reservingEntity in
order to create the reservation, like an intermediary agent.")
(domain reservationChannel 1 Physical)
(domain reservationChannel 2 Reservation)
(=>
(reservationChannel ?ENTITY ?RESERVE)
(exists (?P)
(and
(instance ?P Reserving)
(instrument ?P ?ENTITY)
(result ?P ?RESERVE))))
(instance fulfillingEntity BinaryPredicate)
(documentation fulfillingEntity EnglishLanguage "(&%fulfillingEntity
?ENTITY ?RESERVE) means that ?ENTITY is the &%AutonomousAgent who will execute the
agreement")
(domain fulfillingEntity 1 AutonomousAgent)
(domain fulfillingEntity 2 Reservation)
(=>
(fulfillingEntity ?ENTITY ?RESERVE)
(exists (?P)
(and
(instance ?P Reserving)
(destination ?P ?ENTITY)
(result ?P ?RESERVE))))
(instance reservationStart BinaryPredicate)
(documentation reservationStart EnglishLanguage "(&%reservationStart ?TIME
?RESERVE) means that the use of a resource or consumption of a service
which is the object of ?RESERVE starts at ?TIME")
(domain reservationStart 1 TimePoint)
(domain reservationStart 2 Reservation)
(instance reservationEnd BinaryPredicate)
(documentation reservationEnd EnglishLanguage "(&%reservationEnd ?TIME
?RESERVE) means that the use of a resource or consumption of a service
which is the object of ?RESERVE is expected to end at ?TIME")
(domain reservationEnd 1 TimePoint)
(domain reservationEnd 2 Reservation)
(=>
(and
(reservationStart ?TIME1 ?R)
(reservationEnd ?TIME2 ?R)
(reservingEntity ?CUST ?R)
(fulfillingEntity ?AGENT ?R))
(modalAttribute
(holdsDuring
(TimeIntervalFn ?TIME1 ?TIME2)
(exists (?P)
(and
(instance ?P IntentionalProcess)
(agent ?P ?AGENT)
(destination ?P ?CUST)))) Likely))
(instance numberOfCustomers BinaryPredicate)
(documentation numberOfCustomers EnglishLanguage "(&%numberOfCustomers ?NUM
?RESERVE) refers to the number of patrons the reservation is for.")
(domain numberOfCustomers 1 PositiveInteger)
(domain numberOfCustomers 2 Reservation)
(=>
(and
(numberOfCustomers ?NUM ?RESERVE)
(fulfillingEntity ?AGENT ?RESERVE)
(reservingEntity ?CUST ?RESERVE))
(exists (?GRP)
(and
(potentialCustomer ?GRP ?AGENT)
(instance ?GRP GroupOfPeople)
(member ?CUST ?GRP)
(memberCount ?GRP ?NUM))))
(subclass DiningReservation Reservation)
(documentation DiningReservation EnglishLanguage "a &%DiningReservation is
a type of &%Reservation intended to reserve seats at a &%Restaurant")
(termFormat EnglishLanguage DiningReservation "dining reservation")
(=>
(instance ?R DiningReservation)
(exists (?AGENT)
(and
(fulfillingEntity ?AGENT ?R)
(instance ?AGENT Restaurant))))
(subclass Reserving Committing)
(documentation Reserving EnglishLanguage "&%Reserving is a type of
&%Committing that dedicates a specific object or service to a destination
resource or service for a specific time interval")
(termFormat EnglishLanguage Reserving "reserving")
(=>
(and
(instance ?R Reserving)
(agent ?R ?CUST)
(destination ?R ?AGENT))
(potentialCustomer ?CUST ?AGENT))
;; axiom for 'Requires Reservation' --> if a restaurant requires
;; reservation, then the probability of a potentialCustomer becoming a
;; customer if a reservation exists is higher
(=>
(and
(instance ?AGENT AutonomousAgent)
(potentialCustomer ?CUST ?AGENT)
(modalAttribute
(and
(instance ?R Reserving)
(destination ?R ?AGENT)) Necessity)
(conditionalProbability
(exists (?RES1)
(and
(instance ?RES1 Reservation)
(reservingEntity ?CUST ?RES1)
(fulfillingEntity ?AGENT ?RES1)))
(customer ?CUST ?AGENT) ?NUM1)
(conditionalProbability
(not
(exists (?RES2)
(and
(instance ?RES2 Reservation)
(reservingEntity ?CUST ?RES2)
(fulfillingEntity ?AGENT ?RES2))))
(customer ?CUST ?AGENT) ?NUM2))
(lessThan ?NUM2 ?NUM1))
;; ----------------------------------------------------------------------------
;; General Concepts
;; ----------------------------------------------------------------------------
(instance potentialCustomer BinaryPredicate)
(documentation potentialCustomer EnglishLanguage "(&%potentialCustomer ?CUST ?AGENT) means
that it is a possibility for ?CUST to participate in a financial transaction
with ?AGENT in exchange for goods or services")
(domain potentialCustomer 1 CognitiveAgent)
(domain potentialCustomer 2 AutonomousAgent)
(=>
(potentialCustomer ?CUST ?AGENT)
(exists (?P ?SELLING)
(and
(instance ?SELLING Selling)
(agent ?SELLING ?AGENT)
(patient ?SELLING ?P)
(inScopeOfInterest ?CUST ?P))))
(=>
(potentialCustomer ?CUST ?AGENT)
(modalAttribute
(customer ?CUST ?AGENT) Possibility))
(instance Chef SkilledOccupation)
(documentation Chef EnglishLanguage "&%Chef refers to the &%Profession
of cooking food")
(termFormat EnglishLanguage Chef "chef")
(=>
(attribute ?X Chef)
(occupation ?X
(OccupationFn Cooking)))
(subclass BoosterChair Chair)
(documentation BoosterChair EnglishLanguage "&%BoosterChair is a &%Chair that
is made for children")
(termFormat EnglishLanguage BoosterChair "booster chair")
(=>
(and
(instance ?BC BoosterChair)
(instance ?H HumanChild))
(hasPurposeForAgent ?BC
(and
(attribute ?H Sitting)
(eventLocated ?H ?BC)) ?H))
;; KJN: Moving all of this to Mid-level-ontology.kif as it seems more appropriate there.
;;(subclass Disability DiseaseOrSyndrome)
;; english definition taken from Wikipedia
;;(documentation Disability EnglishLanguage "&%Disability is a class of
;;&%DiseaseOrSyndrome that describes impairments, activity limitations or participation
;;restriction that may be physical, cognitive, mental, sensory, emotional,
;;developmental or some combination")
;;(termFormat EnglishLanguage Disability "disability")
;;(subclass PhysicalDisability Disability)
;; english definition taken from Wikipedia
;;(documentation PhysicalDisability EnglishLanguage "&%PhysicalDisability is any
;;impairment that limits the physical function of limbs or fine or gross motor ability,
;;or limit the facets of daily living")
;;(termFormat EnglishLanguage PhysicalDisability "physical disability")
;;(subclass SensoryDisability Disability)
;; english definition taken from Wikipedia
;;(documentation SensoryDisability EnglishLanguage "&%SensoryDisability is any
;;impairement of one of the five senses")
;;(termFormat EnglishLanguage SensoryDisability "sensory disability")
;;(instance Blind SensoryDisability)
;; add predicate for objects of contests in cases where what is being judged is not
;; physical
(instance contestObject TernaryPredicate)
(documentation contestObject EnglishLanguage "(&%contestObject ?CONTEST ?OBJ ?AGENT)
refers to the ?OBJ entered by ?AGENT in a ?CONTEST in cases where winning is based
on judging an &%Object instead of some physical process between opponents")
(domain contestObject 1 Contest)
(domain contestObject 2 Object)
(domain contestObject 3 AutonomousAgent)
(=>
(contestObject ?CONTEST ?OBJ ?AGENT)
(and
(contestParticipant ?CONTEST ?AGENT)
(exists (?MAKE ?JUDGE ?PROC ?AFTR)
(and
(instance ?MAKE Making)
(result ?MAKE ?OBJ)
(agent ?MAKE ?AGENT)
(instance ?PROC Judging)
(agent ?PROC ?JUDGE)
(patient ?PROC ?OBJ)
(result ?PROC (subjectiveAttribute ?OBJ ?AFTR ?JUDGE))
(subProcess ?PROC ?CONTEST)))))
;; axiom for contest attribute Won
(=>
(and
(subjectiveAttribute ?X Won ?JUDGE)
(instance ?X (FoodForFn Human)))
(exists (?CONTEST ?AGENT ?PROC)
(and
(contestObject ?CONTEST ?X ?AGENT)
(instance ?PROC Judging)
(agent ?PROC ?JUDGE)
(subProcess ?PROC ?CONTEST))))
;; add the notion of availability to capability
(instance capabilityDuring QuaternaryPredicate)
(documentation capabilityDuring EnglishLanguage "(&%capabilityDuring ?PROCESS ?ROLE
?OBJ ?TIMEINT) means that ?OBJ has the ability to play the role of ?ROLE in the
process ?PROCESS during the time indicated by ?TIMEINT")
(termFormat EnglishLanguage capabilityDuring "capable during")
(domainSubclass capabilityDuring 1 Process)
(domain capabilityDuring 2 CaseRole)
(domain capabilityDuring 3 Object)
(domainSubclass capabilityDuring 4 TimeInterval)
(=>
(capabilityDuring ?PROCESS ?ROLE ?OBJ ?TIMEINT)
(exists (?TIME)
(and
(instance ?TIME ?TIMEINT)
(holdsDuring ?TIME
(capability ?PROCESS ?ROLE ?OBJ)))))
;; ----------------------------------------------------------------------------
;; Other Features
;; ----------------------------------------------------------------------------
(subclass View VisualContentBearingPhysical)
(documentation View EnglishLanguage "&%View refers to the patient of a
&%Seeing process")
(termFormat EnglishLanguage View "view")
;; a view represents some physical thing (could be a process, such as "view of the
;; manufacturing process" if a person is sitting at an office overseeing a factory, or
;; could be objects such as "view of the casino" or, the more common "view of the
;; outdoors"
(=>
(instance ?VIEW View)
(exists (?ENTITY)
(and
(instance ?ENTITY Physical)
(represents ?VIEW ?ENTITY))))
(instance OpenLayout RelationalAttribute)
(documentation OpenLayout EnglishLanguage "&%OpenLayout refers to different
functional areas that are adjacent to each other and are visible from one
area to another")
(termFormat EnglishLanguage OpenLayout "open layout")
(=>
(attribute ?ROOM OpenLayout)
(and
(instance ?ROOM Room)
(exists (?R1 ?R2 ?H)
(and
(instance ?R1 Region)
(instance ?R2 Region)
(located ?R1 ?ROOM)
(located ?R2 ?ROOM)
(not (equal ?R1 ?R2))
(orientation ?R1 ?R2 Adjacent)
(exists (?P1 ?P2)
(and
(instance ?P1 Process)
(instance ?P2 Process)
(hasPurpose ?R1 ?P1)
(hasPurpose ?R2 ?P2)))
(=>
(and
(instance ?H AutonomousAgent)
(located ?H ?R2))
(and
(capability Seeing agent ?H)
(capability Seeing patient ?R1)))))))
(subclass PlayArea Region)
(documentation PlayArea EnglishLanguage "&%PlayArea refers to a &%Region
where children engage in recreational activities")
(termFormat EnglishLanguage PlayArea "playground")
(=>
(instance ?P PlayArea)
(hasPurpose ?P
(exists (?K ?REC)
(and
(instance ?REC RecreationOrExercise)
(eventLocated ?REC ?P)
(instance ?K HumanChild)
(agent ?REC ?K)))))
;; ----------------------------------------------------------------------------
;; Descriptors / Attributes
;; ----------------------------------------------------------------------------