-
Notifications
You must be signed in to change notification settings - Fork 73
/
Catalog.kif
529 lines (463 loc) · 16.8 KB
/
Catalog.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
;; ============================================================================
;; REARDEN COMMERCE, INC.
;; Catalog and Selling Ontology
;; ============================================================================
;; Created by: Karen Joy Nomorosa (karen.nomorosa [at] reardencommerce [dot] com)
;; Created on: August 3, 2011
;; Last modified:
;; Modified by: Karen Joy Nomorosa (karen.nomorosa [at] reardencommerce [dot] com)
;; Description: This ontology describes different concepts related to Catalogs,
;; selling and buying
;; 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
;; ============================================================================
;; CATALOG
;; =============================================================================
(subclass Catalog Proposition)
(documentation Catalog EnglishLanguage "a &%Catalog is a &%Proposition of the
classes of resources that an agent provides or offers")
(termFormat EnglishLanguage Catalog "catalog")
(=>
(instance ?CATALOG Catalog)
(exists (?X)
(and
(instance ?X AutonomousAgent)
(offers ?X ?CATALOG))))
;; (catalogItem ?OBJ ?CATALOG)
(instance catalogItem BinaryPredicate)
(instance catalogItem PartialValuedRelation)
(documentation catalogItem EnglishLanguage "(&%catalogItem ?OBJ ?CATALOG) means that
an instance of ?OBJ is a member of ?CATALOG")
(domainSubclass catalogItem 1 Entity)
(domain catalogItem 2 Catalog)
(=>
(and
(offers ?AGENT ?CATALOG)
(catalogItem ?OBJ ?CATALOG)
(subclass ?OBJ Physical))
(modalAttribute
(exists (?S ?X)
(and
(instance ?X ?OBJ)
(instance ?S Selling)
(agent ?S ?AGENT)
(patient ?S ?X))) Possibility))
(=>
(and
(offers ?AGENT ?CATALOG)
(catalogItem ?PROP ?CATALOG)
(subclass ?PROP Proposition))
(modalAttribute
(exists (?P ?S ?X)
(and
(instance ?P ?PROP)
(realization ?X ?P)
(instance ?S Selling)
(patient ?S ?X)
(agent ?S ?AGENT))) Possibility))
;; (offers ?AGENT ?CATALOG)
(documentation offers EnglishLanguage "(&%offers ?AGENT ?CATALOG) means that
?AGENT offers items of ?CATALOG to its customers")
(instance offers BinaryPredicate)
(domain offers 1 AutonomousAgent)
(domain offers 2 Abstract)
(termFormat EnglishLanguage offers "offers")
;; if an agent offers a process as a catalog item, then that agent is capable of
;; being an agent in that process
(=>
(and
(offers ?AGENT ?CATALOG)
(catalogItem ?CLASS ?CATALOG)
(subclass ?CLASS Process))
(capability ?CLASS agent ?AGENT))
;; if an agent offers an object as a catalog item, then that agent is capable of being
;; an agent in a process that has that object as the patient (such as selling or
;; cooking or serving)
(=>
(and
(offers ?AGENT ?CATALOG)
(catalogItem ?CLASS ?CATALOG)
(subclass ?CLASS Object)
(instance ?PROCESSINST ?PROCESS)
(subclass ?PROCESS Process)
(instance ?OBJ ?CLASS)
(patient ?PROCESSINST ?OBJ))
(capability ?PROCESS agent ?AGENT))
(=>
(and
(offers ?AGENT ?ATTR)
(instance ?ATTR Attribute))
(modalAttribute
(exists (?OBJ ?SELL)
(and
(instance ?SELL Selling)
(attribute ?OBJ ?ATTR)
(patient ?SELL ?OBJ)
(agent ?SELL ?AGENT))) Possibility))
;; (offersAtTime ?AGENT ?CATALOG ?TIMEINT)
(documentation offersAtTime EnglishLanguage "(%&offersAtTime ?AGENT ?CATALOG ?TIMEINT)
means that ?AGENT offers items of ?CATALOG to its customer only during the specified
?TIMEINT")
(instance offersAtTime TernaryPredicate)
(domain offersAtTime 1 AutonomousAgent)
(domain offersAtTime 2 Entity)
(domain offersAtTime 3 TimeInterval)
(=>
(and
(offersAtTime ?AGENT ?CATALOG ?TIMEINT)
(catalogItem ?CLASS ?CATALOG)
(subclass ?CLASS Process)
(instance ?TIMEINT ?TIME)
(subclass ?TIME TimeInterval))
(capabilityDuring ?CLASS agent ?AGENT ?TIME))
(=>
(and
(offersAtTime ?AGENT ?CATALOG ?TIMEINT)
(catalogItem ?CLASS ?CATALOG)
(subclass ?CLASS Object)
(instance ?PROCESSINSTANCE ?PROCESS)
(subclass ?PROCESS Process)
(instance ?OBJ ?CLASS)
(patient ?PROCESSINSTANCE ?OBJ)
(instance ?TIMEINT ?TIME)
(subclass ?TIME TimeInterval))
(capabilityDuring ?PROCESS agent ?AGENT ?TIME))
(=>
(and
(offersAtTime ?AGENT ?ATTR ?TIMEINT)
(instance ?ATTR Attribute))
(holdsDuring ?TIMEINT
(offers ?AGENT ?ATTR)))
;; ============================================================================
;; PRICING
;; ============================================================================
(instance propositionOwner BinaryPredicate)
(documentation propositionOwner EnglishLanguage "(&%propositionOwner ?AGENT ?PROP)
means that &%CognitiveAgent ?AGENT was the one who conceptualized or created the
&%Proposition ?PROP")
(termFormat EnglishLanguage propositionOwner "proposition owner")
(domain propositionOwner 1 CognitiveAgent)
(domain propositionOwner 2 Proposition)
(=>
(and
(instance ?CREATE Creation)
(result ?CREATE ?PROP)
(instance ?PROP Proposition)
(agent ?CREATE ?AGENT))
(propositionOwner ?AGENT ?PROP))
;; ---------------------------------------------------------------------------------
;; Pricing Scheme
;; ---------------------------------------------------------------------------------
(subclass PricingScheme Proposition)
(documentation PricingScheme EnglishLanguage "&%PricingScheme refers to the conditions
attached to the price of a product of service")
(termFormat EnglishLanguage PricingScheme "pricing scheme")
(=>
(instance ?PS PricingScheme)
(exists (?AGENT ?CREATE)
(and
(instance ?CREATE Creation)
(result ?CREATE ?PS)
(agent ?CREATE ?AGENT))))
(instance priceRange QuaternaryPredicate)
(documentation priceRange EnglishLanguage "(&%priceRange ?OBJ ?MIN ?MAX ?AGENT)
means that &%AutonomousAgent ?AGENT attaches range of possible &%productPrice for ?OBJ with
minimum ?MIN and maximum ?MAX")
(termFormat EnglishLanguage priceRange "price range")
(domainSubclass priceRange 1 Entity)
(domain priceRange 2 CurrencyMeasure)
(domain priceRange 3 CurrencyMeasure)
(domain priceRange 4 AutonomousAgent)
;(=>
; (and
; (priceRange ?ENT
; (MeasureFn ?MIN ?U)
; (MeasureFn ?MAX ?U) ?AGENT)
; (instance ?U UnitOfCurrency))
; (exists (?NUM ?PRICE ?PS)
; (and
; (lessThanOrEqualTo ?NUM ?MAX)
; (greaterThanOrEqualTo ?NUM ?MIN)
; (equal ?PRICE
; (MeasureFn ?NUM ?U))
; (or
; (publishedPrice ?ENT ?PRICE ?AGENT ?PS)
; (productPrice ?ENT ?PRICE ?AGENT)
; (unitPrice ?ENT ?PRICE ?AGENT ?PS)))))
(instance validFor BinaryPredicate)
(documentation validFor EnglishLanguage "(&%validFor ?SCHEME ?AGENT) means that
&%CurrencyMeasure that &%PricingScheme refers to applies to &%AutonomousAgent ?AGENT")
(termFormat EnglishLanguage validFor "valid for")
(domain validFor 1 PricingScheme)
(domainSubclass validFor 2 AutonomousAgent)
(instance validityPeriod BinaryPredicate)
(documentation validityPeriod EnglishLanguage "(&%validityPeriod ?SCHEME ?TIMEINT) means
that the &%CurrencyMeasure that &%PricingScheme refers to is valid for the given
&%TimeInterval")
(termFormat EnglishLanguage validityPeriod "validity period")
(domain validityPeriod 1 PricingScheme)
(domain validityPeriod 2 TimeInterval)
(instance validPaymentType BinaryPredicate)
(documentation validPaymentType EnglishLanguage "(&%validPaymentType ?SCHEME ?PAYMENT)
means that the &%CurrencyMeasure that &%PricingScheme refers to is valid for the given
&%Payment class")
(termFormat EnglishLanguage validPaymentType "valid payment type")
(domain validPaymentType 1 PricingScheme)
(domainSubclass validPaymentType 2 Payment)
(instance pricePolicy BinaryPredicate)
(documentation pricePolicy EnglishLanguage "(&%pricePolicy ?SCHEME ?POLICY) describes
the &%Policy ?POLICY attached to the given rate with the ?SCHEME")
(termFormat EnglishLanguage pricePolicy "rate policy")
(domain pricePolicy 1 PricingScheme)
(domain pricePolicy 2 Policy)
;; ---------------------------------------------------------------------------------
;; Pricing Relationships
;; ---------------------------------------------------------------------------------
(instance negotiatedPrice TernaryPredicate)
(documentation negotiatedPrice EnglishLanguage "(&%negotiatedPrice ?ENT ?PRICE ?AGREE)
means that according to &%Agreement ?AGREE - which is agreed upon by seller and buyer -
the &%CurrencyMeasure ?PRICE is given to &%Entity ?ENT")
(domainSubclass negotiatedPrice 1 Physical)
(domain negotiatedPrice 2 CurrencyMeasure)
(domain negotiatedPrice 3 Agreement)
;;
;; KBache.checkDisjpoint - issues with Entity and Class in the 2nd argument of immediateInstance is noted
;; and not considered as errors by Adam Pease for the axioms below.
;;
(=>
(and
(negotiatedPrice ?ENT ?PRICE ?AGREE)
(partyToAgreement ?SELLER ?AGREE)
(partyToAgreement ?BUYER ?AGREE))
(modalAttribute
(exists (?S ?ITEM)
(and
(instance ?S Selling)
(patient ?S ?ITEM)
(immediateInstance ?ITEM ?ENT)
(agent ?S ?SELLER)
(destination ?S ?BUYER)
(transactionAmount ?S ?PRICE))) Promise))
;;
;; 16th January 2022
;; The follow codes are commented out because ?ENT specified as Proposition is a disjunct of Physical in the first argument for negotiatedPrice
;;
;;(=>
;; (and
;; (negotiatedPrice ?ENT ?PRICE ?AGREE)
;; (partyToAgreement ?SELLER ?AGREE)
;; (partyToAgreement ?BUYER ?AGREE)
;; (subclass ?ENT Proposition))
;; (modalAttribute
;; (=>
;; (and
;; (immediateInstance ?ITEM ?ENT)
;; (realization ?PROCESS ?ITEM)
;; (instance ?S Selling)
;; (patient ?S ?PROCESS)
;; (agent ?S ?SELLER)
;; (destination ?S ?BUYER))
;; (transactionAmount ?S ?PRICE)) Promise))
(=>
(and
(negotiatedPrice ?ENT ?PRICE ?AGREE)
(partyToAgreement ?SELLER ?AGREE)
(partyToAgreement ?BUYER ?AGREE))
(agreementClause
(exists (?B ?ITEM)
(and
(instance ?B Buying)
(patient ?B ?ITEM)
(immediateInstance ?ITEM ?ENT)
(agent ?B ?BUYER)
(origin ?B ?SELLER)
(transactionAmount ?B ?PRICE))) Obligation ?AGREE ?SELLER))
(instance publishedPrice QuaternaryPredicate)
(documentation publishedPrice EnglishLanguage "(&%publishedPrice ?ENT ?PRICE ?AGENT ?PS)
means that the &%CurrencyMeasure ?PRICE is given by &%AutonomousAgent ?AGENT to &%Entity ?ENT,
based on conditions outlined in &%PricingScheme ?PS")
(termFormat EnglishLanguage publishedPrice "published price")
(domainSubclass publishedPrice 1 Entity)
(domain publishedPrice 2 CurrencyMeasure)
(domain publishedPrice 3 CognitiveAgent)
(domain publishedPrice 4 PricingScheme)
(=>
(and
(instance ?B Buying)
(patient ?B ?ITEM)
(origin ?B ?AGENT)
(or
(publishedPrice ?ENT ?PRICE ?AGENT ?PS)
(unitPrice ?ENT ?QUANT ?AGENT ?PS))
(subclass ?ENT Physical)
(immediateInstance ?ITEM ?ENT)
(validPaymentType ?PS ?PAY))
(modalAttribute
(exists (?PAYMENT)
(and
(instance ?PAYMENT ?PAY)
(subProcess ?PAYMENT ?B))) Likely))
(=>
(and
(or
(publishedPrice ?ENT ?PRICE ?AGENT ?PS)
(unitPrice ?ENT ?QUANT ?AGENT ?PS))
(subclass ?ENT Physical)
(immediateInstance ?ITEM ?ENT)
(validFor ?PS ?CUSTCLASS)
(instance ?CUSTOMER ?CUSTCLASS))
(modalAttribute
(=>
(and
(instance ?B Buying)
(agent ?B ?CUSTOMER)
(origin ?B ?AGENT)
(patient ?B ?ITEM))
(transactionAmount ?B ?PRICE)) Likely))
(=>
(and
(or
(publishedPrice ?ENT ?PRICE ?AGENT ?PS)
(unitPrice ?ENT ?QUANT ?AGENT ?PS))
(subclass ?ENT Physical)
(immediateInstance ?ITEM ?ENT)
(validityPeriod ?PS ?TIMEINT))
(holdsDuring ?TIMEINT
(modalAttribute
(=>
(and
(instance ?S Selling)
(agent ?S ?AGENT)
(patient ?S ?ITEM))
(transactionAmount ?S ?PRICE)) Likely)))
(instance unitPrice QuaternaryPredicate)
(documentation unitPrice EnglishLanguage "(&%unitPrice ?ENT ?QUANT ?AGENT ?PS) is meant
for objects that are not sold by the piece but by a certain unit of measure, for
instance, vegetables that are sold by the pound. &%FunctionQuantity ?QUANT, in this
case, refers to (&%PerFn &%CurrencyMeasure (&%MeasureFn &%RealNumber &%UnitOfMeasure)),
which reads something like X amount of money per Y unit. This can be attached to
a &%PricingScheme ?PS by &%CognitiveAgent ?AGENT")
(domainSubclass unitPrice 1 Entity)
(domain unitPrice 2 FunctionQuantity)
(domain unitPrice 3 CognitiveAgent)
(domain unitPrice 4 PricingScheme)
(=>
(unitPrice ?ENT ?QUANT ?AGENT ?PS)
(exists (?MEAS ?AMT ?UOM)
(and
(equal ?QUANT (PerFn ?MEAS (MeasureFn ?AMT ?UOM)))
(instance ?MEAS CurrencyMeasure))))
(instance productPrice TernaryPredicate)
(documentation productPrice EnglishLanguage "(&%productPrice ?ENT ?QUANT ?AGENT) means
that &%CognitiveAgent ?AGENT sells items of type &%Entity ?ENT for &%CurrencyMeasure
?QUANT")
(termFormat EnglishLanguage productPrice "product price")
(domainSubclass productPrice 1 Entity)
(domain productPrice 2 CurrencyMeasure)
(domain productPrice 3 CognitiveAgent)
(=>
(productPrice ?ENT ?PRICE ?AGENT)
(modalAttribute
(=>
(and
(instance ?S Selling)
(immediateInstance ?I ?ENT)
(patient ?S ?I)
(agent ?S ?AGENT))
(transactionAmount ?S ?PRICE)) Likely))
(=>
(and
(productPrice ?ENT
(MeasureFn ?PRICE1 ?U) ?AGENT)
(instance ?U UnitOfCurrency)
(publishedPrice ?ENT
(MeasureFn ?PRICE2 ?U) ?AGENT ?PS)
(validFor ?PS ?CUSTCLASS)
(instance ?ITEM ?ENT)
(instance ?B Buying)
(immediateInstance ?CUST ?CUSTCLASS)
(agent ?B ?CUST)
(origin ?B ?AGENT)
(lessThan ?PRICE2 ?PRICE1))
(modalAttribute
(transactionAmount ?B ?PRICE1) Likely))
(instance rentalPrice QuaternaryPredicate)
(documentation rentalPrice EnglishLanguage "(&%rentalPrice ?OBJ ?PRICE ?AGENT ?PS)
means that the &%CurrencyMeasure ?PRICE is paid for the use of &%Physical ?OBJ.
&%CognitiveAgent ?AGENT sets this price with conditions stipulated in &%PricingScheme
?PS")
(termFormat EnglishLanguage rentalPrice "rental price")
(domainSubclass rentalPrice 1 Physical)
(domain rentalPrice 2 FunctionQuantity)
(domain rentalPrice 3 CognitiveAgent)
(domain rentalPrice 4 PricingScheme)
(=>
(rentalPrice ?OBJ ?QUANT ?AGENT ?PS)
(exists (?DURATION ?CURR)
(and
(instance ?DURATION TimeDuration)
(instance ?CURR CurrencyMeasure)
(equal ?QUANT (PerFn ?CURR ?DURATION)))))
(=>
(and
(rentalPrice ?OBJ ?QUANT ?AGENT ?PS)
(equal ?QUANT (PerFn ?PRICE
(measure ?TIME ?U)))
(instance ?U UnitOfDuration)
(immediateInstance ?ITEM ?OBJ)
(instance ?R Renting)
(patient ?R ?ITEM)
(agent ?R ?CUSTOMER)
(time ?R ?TIMEINT))
(forall (?X)
(=>
(exists (?DURATION)
(and
(during ?TIMEINT ?X)
(instance ?X TimeInterval)
(duration ?X
(MeasureFn ?DURATION ?U))
(lessThanOrEqualTo ?DURATION ?TIME)))
(exists (?P)
(and
(instance ?P Payment)
(destination ?P ?AGENT)
(agent ?P ?CUSTOMER)
(transactionAmount ?P ?PRICE))))))
(instance contractedRentalPrice TernaryPredicate)
(documentation contractedRentalPrice EnglishLanguage "(&%contractedRentalPrice ?OBJ
?PRICE ?AGREEMENT) means that the conditions of rental of &%Physical ?OBJ
is stipulated in &%Agreement ?AGREEMENT entered into by &%CognitiveAgent ?AGENT with
a customer.")
(termFormat EnglishLanguage contractedRentalPrice "contracted rental price")
(domainSubclass contractedRentalPrice 1 Physical)
(domain contractedRentalPrice 2 FunctionQuantity)
(domain contractedRentalPrice 3 Agreement)
(=>
(contractedRentalPrice ?OBJ ?QUANT ?AGREE)
(exists (?DURATION ?CURR)
(and
(instance ?CURR CurrencyMeasure)
(instance ?DURATION TimeDuration)
(equal ?QUANT (PerFn ?CURR ?DURATION)))))
(=>
(contractedRentalPrice ?OBJ ?QUANT ?AGREE)
(exists (?SELLER ?CUSTOMER)
(and
(partyToAgreement ?SELLER ?AGREE)
(partyToAgreement ?CUSTOMER ?AGREE)
(modalAttribute
(exists (?R ?O)
(and
(instance ?R Renting)
(instance ?O ?OBJ)
(patient ?R ?O)
(agent ?R ?SELLER)
(destination ?R ?CUSTOMER))) Obligation))))