Repository navigation
Expand file tree
/
Copy pathFinancialOntology.kif
More file actions
4154 lines (3547 loc) · 162 KB
/
Copy pathFinancialOntology.kif
File metadata and controls
4154 lines (3547 loc) · 162 KB
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
;; 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 that 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 www.ontologyportal.org
;; =======================
;; Financial Organizations
;; =======================
(subclass FinancialOrganization Organization)
(documentation FinancialOrganization EnglishWrittenLanguage "The class &%FinancialOrganization includes, as subclasses, &%BankFinancialOrganization, &%CreditUnion and &%SavingsAnLoans.")
(termFormat EnglishWrittenLanguage FinancialOrganization "financial organization")
(subclass BankFinancialOrganization FinancialOrganization)
(documentation BankFinancialOrganization EnglishWrittenLanguage "An organization, chartered by a state or federal government, which does most or all of the following: receives &%Deposits, honors &%FinancialInstruments drawn on them, and pays &%Interest on them, discounts &%Notes, makes &%Loans, and invests in &%SecuredLoans, collects &%Checks, &%Drafts and &%Notes, certifies depositor's checks, and issues drafts and Cashier's checks.")
(termFormat EnglishWrittenLanguage BankFinancialOrganization "bank")
(subclass CreditUnion FinancialOrganization)
(documentation CreditUnion EnglishWrittenLanguage "Credit unions are non_profit, member_owned, financial cooperatives. They are operated entirely by and for their members. When you deposit money in a credit union, you become a member of the union because your deposit is considered partial ownership in the credit union. Many large organizations have established credit unions for their employees.")
(subclass SavingsAndLoans FinancialOrganization)
(documentation SavingsAndLoans EnglishWrittenLanguage "A federally or state chartered &%FinancialOrganization that takes &%Deposits from individuals, funds &%Mortgages, and pays &%Dividends.")
;; Financial Accounts and instruments
(subclass FinancialAsset Physical)
(documentation FinancialAsset EnglishWrittenLanguage "Any item of economic value owned by an individual or corporation, especially that which could be converted to cash. Examples are cash, securities, accounts receivable, inventory, office equipment, a house, a car, and other property.")
(=>
(instance ?Asset FinancialAsset)
(exists (?Value)
(monetaryValue ?Asset ?Value)))
(subclass FinancialContract Contract)
(documentation FinancialContract EnglishWrittenLanguage "A financial agreement between two or more parties")
;; KJN: Edit. This seems to make more sense given that every other implementation of
;; FinancialAccount treats it as a subclass rather than an attribute.
;;(subAttribute FinancialAccount Contract)
(subclass FinancialAccount Agreement)
(documentation FinancialAccount EnglishWrittenLanguage "A formal banking, brokerage, or business relationship established to provide for regular services, dealings, and other financial transactions.")
(=>
(instance ?Account FinancialAccount)
(and
(instance ?Account FinancialContract)
(instance ?Account ServiceContract)))
(=>
(instance ?Account FinancialAccount)
(exists (?Organization)
(and
(instance ?Organization FinancialOrganization)
(accountAt ?Account ?Organization))))
(=>
(and
(instance ?Account FinancialAccount)
(accountAt ?Account ?Bank))
(exists (?Activity)
(and
(instance ?Activity ControllingAnAccount)
(patient ?Activity ?Account)
(agent ?Activity ?Bank))))
(subclass Note FinancialInstrument)
(documentation Note EnglishWrittenLanguage "A legal document that obligates a borrower to repay a loan at a specified interestRate during a specified period of time or on demand")
(subclass Check FinancialInstrument)
(documentation Check EnglishWrittenLanguage "A &%FinancialInstrument drawn against deposited funds, to pay a specified amount of money to a specific person upon demand.")
(=>
(instance ?Check Check)
(exists (?Value)
(monetaryValue ?Check ?Value)))
(=>
(instance ?Check Check)
(exists (?Account)
(checkAccount ?Check ?Account)))
(=>
(and
(monetaryValue ?Check ?Amount)
(checkAccount ?Check ?Account)
(instance ?Processing ProcessingACheck)
(patient ?Processing ?Check)
(equal
(WhenFn ?Processing) ?ProcessingTime))
(exists (?Withdrawal ?WithdrawalTime)
(and
(instance ?Withdrawal Withdrawal)
(instrument ?Withdrawal ?Check)
(equal
(WhenFn ?Withdrawal) ?WithdrawalTime)
(meetsTemporally ?ProcessingTime ?WithdrawalTime)
(transactionAmount ?Withdrawal ?Amount)
(origin ?Withdrawal ?Account))))
(=>
(and
(monetaryValue ?Check ?Amount)
(instance ?Processing ProcessingACheck)
(patient ?Processing ?Check)
(destination ?Processing
(CurrencyFn ?Account))
(instance ?Account FinancialAccount)
(equal
(WhenFn ?Processing) ?ProcessingTime))
(exists (?Deposit ?DepositTime)
(and
(instance ?Deposit Deposit)
(instrument ?Deposit ?Check)
(equal
(WhenFn ?Deposit) ?DepositTime)
(meetsTemporally ?ProcessingTime ?DepositTime)
(transactionAmount ?Deposit ?Amount)
(destination ?Deposit
(CurrencyFn ?Account)))))
(=>
(and
(instance ?Check Check)
(instance ?Processing ProcessingACheck)
(patient ?Processing ?Check))
(exists (?Depositing)
(and
(instance ?Depositing DepositingACheck)
(patient ?Depositing ?Check)
(time ?Depositing
(ImmediatePastFn
(WhenFn ?Processing))))))
(=>
(and
(instance ?Depositing DepositingACheck)
(instance ?Check Check)
(agent ?Depositing ?Agent))
(signedBy ?Check ?Agent))
(=>
(and
(instance ?DRAWING DrawingACheck)
(patient ?DRAWING ?CHECK)
(instance ?PROCESSING ProcessingACheck)
(patient ?PROCESSING ?CHECK)
(instance ?TIME TimeInterval)
(meetsTemporally
(WhenFn ?DRAWING) ?TIME)
(meetsTemporally ?TIME
(WhenFn ?PROCESSING))
(instance ?DURATIONMEASURE TimeDuration)
(equal ?DURATIONMEASURE
(MeasureFn ?DURATION MonthDuration))
(duration ?TIME ?DURATIONMEASURE))
(lessThan ?DURATION 6))
(subclass PayCheck Check)
(documentation PayCheck EnglishWrittenLanguage "A check issued to an employee in payment of salary or wages")
(=>
(and
(instance ?Check PayCheck)
(issuedBy ?Check ?Organization)
(instance ?Give Giving)
(destination ?Give ?Agent))
(employs ?Agent ?Organization))
(subclass BankCard FinancialInstrument)
(documentation BankCard EnglishWrittenLanguage "A &%CreditCard or a &%DebitCard issued by a &%FinancialOrganization.")
(=>
(instance ?Card BankCard)
(exists (?Organization)
(issuedBy ?Card ?Organization)))
(=>
(and
(instance ?Card BankCard)
(issuedBy ?Card ?Bank))
(exists (?Account)
(and
(instance ?Account FinancialAccount)
(cardAccount ?Card ?Account)
(accountAt ?Account ?Bank))))
(subclass DebitCard BankCard)
(documentation DebitCard EnglishWrittenLanguage "A card which allows customers to access their funds immediately, electronically. Unlike a credit card, a debit card does not have any float.")
(=>
(and
(instance ?Card DebitCard)
(possesses ?Agent ?Card))
(exists (?Account)
(and
(instance ?Account DepositAccount)
(cardAccount ?Card ?Account)
(accountHolder ?Account ?Agent))))
(subclass CreditCard BankCard)
(documentation CreditCard EnglishWrittenLanguage "Any card that may be used repeatedly to borrow money or buy products and services on credit. Issued by banks, savings and loans, retail stores, and other businesses.")
(=>
(and
(instance ?Card CreditCard)
(possesses ?Agent ?Card))
(exists (?Account)
(and
(instance ?Account CreditCardAccount)
(cardAccount ?Card ?Account)
(accountHolder ?Account ?Agent))))
(subrelation accountAt partyToAgreement)
(instance accountAt BinaryPredicate)
(domain accountAt 1 FinancialAccount)
(domain accountAt 2 FinancialOrganization)
(documentation accountAt EnglishWrittenLanguage "(&%accountAt ?Account ?Bank) means that ?Account is a &%FinancialAccount opened in the &%FinancialOrganization ?Bank.")
(instance cardAccount BinaryPredicate)
(domain cardAccount 1 BankCard)
(domain cardAccount 2 FinancialAccount)
(documentation cardAccount EnglishWrittenLanguage "(&%cardAccount ?Card ?Account) means that ?Account is the &%FinancialAccount linked to a BankCard ?Card.")
(instance checkAccount BinaryPredicate)
(domain checkAccount 1 Check)
(domain checkAccount 2 FinancialAccount)
(documentation checkAccount EnglishWrittenLanguage "(&%checkAccount ?Check ?Account) means that ?Account is the &%FinancialAccount from which the amount specifed on the check is paid.")
(subrelation accountHolder partyToAgreement)
(instance accountHolder BinaryPredicate)
(domain accountHolder 1 FinancialAccount)
(domain accountHolder 2 CognitiveAgent)
(documentation accountHolder EnglishWrittenLanguage "(&%accountHolder ?Account ?Agent) means that ?Agent is the account holder of the &%FinancialAccount ?Account.")
;; KJN: Moving this to Mid_level_ontology as it is more general than a financial instrument
;;(instance issuedBy BinaryPredicate)
;;(domain issuedBy 1 Certificate)
;;(domain issuedBy 2 CognitiveAgent)
;;(documentation issuedBy EnglishWrittenLanguage "(&%issuedBy ?Certificate ?Agent) means that a
;;&%Certificate ?Certificate is produced and offered by ?Agent.")
;;(=>
;; (and
;; (issuedBy ?TICKET ?AGENT)
;; (instance ?TICKET Ticket)
;; (possesses ?CUST ?TICKET))
;; (confersNorm ?AGENT
;; (exists (?T)
;; (and
;; (holdsDuring ?T
;; (exists (?P)
;; (and
;; (instance ?P Process)
;; (agent ?P ?AGENT)
;; (experiencer ?P ?CUST))))) Permission)))
(instance signedBy BinaryPredicate)
(domain signedBy 1 Certificate)
(domain signedBy 2 CognitiveAgent)
(documentation signedBy EnglishWrittenLanguage "(&%signedBy ?Instrument ?Agent) means that ?Instrument has been signed by ?Agent.")
(instance CurrencyFn UnaryFunction)
(domain CurrencyFn 1 FinancialAccount)
(range CurrencyFn FinancialInstrument)
(documentation CurrencyFn EnglishWrittenLanguage "A unary function that maps a &%FinancialAccount to the currency linked to the account.")
;; Financial Activities
(subclass OpeningAnAccount FinancialTransaction)
(documentation OpeningAnAccount EnglishWrittenLanguage "An activity of opening a financial account")
(=>
(and
(instance ?Opening OpeningAnAccount)
(eventLocated ?Opening ?Bank)
(instance ?Bank FinancialOrganization)
(agent ?Opening ?Agent)
(equal
(WhenFn ?Opening) ?OpeningTime))
(exists (?Account ?AccountPeriod)
(and
(agreementPeriod ?Account ?AccountPeriod)
(meetsTemporally ?OpeningTime ?AccountPeriod)
(instance ?Account FinancialAccount)
(accountAt ?Account ?Bank)
(accountHolder ?Account ?Agent))))
(subclass UsingAnAccount FinancialTransaction)
(documentation UsingAnAccount EnglishWrittenLanguage "An activity of using a financial account")
(=>
(and
(instance ?Using UsingAnAccount)
(patient ?Using ?Account)
(accountHolder ?Account ?Agent))
(agent ?Using ?Agent))
(subclass DrawingACheck UsingAnAccount)
(documentation DrawingACheck EnglishWrittenLanguage "An activity of paying by a check.")
(=>
(and
(instance ?Drawing DrawingACheck)
(patient ?Drawing ?Check)
(agent ?Drawing ?Agent)
(checkAccount ?Check ?Account))
(accountHolder ?Account ?Agent))
(subclass DepositingACheck UsingAnAccount)
(documentation DepositingACheck EnglishWrittenLanguage "An activity of depositing a check into a &%FinancialOrganization.")
(=>
(instance ?Depositing DepositingACheck)
(exists (?Check)
(and
(instance ?Check Check)
(patient ?Depositing ?Check))))
(=>
(and
(instance ?Depositing DepositingACheck)
(patient ?Depositing ?Check)
(instance ?Check Check)
(checkAccount ?Check ?Account)
(monetaryValue ?Check ?Amount))
(exists (?Deposit)
(and
(instance ?Deposit Deposit)
(destination ?Deposit
(CurrencyFn ?Account))
(transactionAmount ?Deposit ?Amount))))
(subclass ControllingAnAccount FinancialTransaction)
(documentation ControllingAnAccount EnglishWrittenLanguage "An activity of controlling a financial account")
(=>
(and
(instance ?Controlling ControllingAnAccount)
(patient ?Controlling ?Account)
(accountAt ?Account ?Bank))
(agent ?Controlling ?Bank))
(subclass ProcessingACheck ControllingAnAccount)
(subclass ProcessingACheck AuthorizationOfTransaction)
(documentation ProcessingACheck EnglishWrittenLanguage "An activity of paying the amount specified on the check from funds on deposit.")
(=>
(instance ?Processing ProcessingACheck)
(exists (?Check)
(and
(instance ?Check Check)
(patient ?Processing ?Check))))
(=>
(instance ?Processing ProcessingACheck)
(exists (?Authorization)
(and
(instance ?Authorization AuthorizationOfTransaction)
(subProcess ?Authorization ?Processing))))
(subclass AuthorizationOfTransaction ControllingAnAccount)
(subclass AuthorizationOfTransaction RegulatoryProcess)
(subclass AuthorizationOfTransaction FinancialService)
(documentation AuthorizationOfTransaction EnglishWrittenLanguage "An activity which approves or disapproves a transaction.")
(subclass ClosingAnAccount FinancialTransaction)
(documentation ClosingAnAccount EnglishWrittenLanguage "An activity of closing a financial account")
(=>
(and
(instance ?Closing ClosingAnAccount)
(patient ?Closing ?Account))
(and
(holdsDuring
(ImmediatePastFn
(WhenFn ?Closing))
(instance ?Account FinancialAccount))
(holdsDuring
(ImmediateFutureFn
(WhenFn ?Closing))
(not
(instance ?Account FinancialAccount)))))
(subclass Payment FinancialTransaction)
(documentation Payment EnglishWrittenLanguage "The partial or complete discharge of an obligation by its settlement in the form of the transfer of funds, assets, or services equal to the monetary value of part or all of the debtor's obligation.")
(=>
(and
(instance ?PAYMENT Payment)
(instance ?ACCOUNT FinancialAccount)
(origin ?PAYMENT
(CurrencyFn ?ACCOUNT))
(instance ?CUNIT UnitOfCurrency)
(instance ?TRANSACTIONAMOUNT CurrencyMeasure)
(equal ?TRANSACTIONAMOUNT
(MeasureFn ?AMOUNT ?CUNIT))
(transactionAmount ?PAYMENT ?TRANSACTIONAMOUNT)
(instance ?BEFORETIME TimePoint)
(equal ?BEFORETIME
(EndFn
(ImmediatePastFn
(WhenFn ?PAYMENT))))
(instance ?INITIALBALANCE CurrencyMeasure)
(equal ?INITIALBALANCE
(MeasureFn ?BALANCE1 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?BEFORETIME ?INITIALBALANCE)
(equal ?BALANCE2
(SubtractionFn ?BALANCE1 ?AMOUNT)))
(exists (?AFTERTIME ?FINALBALANCE)
(and
(instance ?AFTERTIME TimePoint)
(equal ?AFTERTIME
(BeginFn
(ImmediateFutureFn
(WhenFn ?PAYMENT))))
(instance ?FINALBALANCE CurrencyMeasure)
(equal ?FINALBALANCE
(MeasureFn ?BALANCE2 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?AFTERTIME ?FINALBALANCE))))
(subclass HealthInsuranceCompany InsuranceCompany)
(documentation HealthInsuranceCompany EnglishWrittenLanguage "A &%Business that insures &%Agents against health care costs for the payment of a premium or premiums.")
(=>
(and
(instance ?I HealthInsuranceCompany)
(customer ?I ?C))
(hasPurposeForAgent ?I ?C
(exists (?D ?P)
(and
(or
(instance ?D DiagnosticProcess)
(instance ?D TherapeuticProcess))
(experiencer ?D ?C)
(instance ?P Payment)
(agent ?P ?I)
(refers ?P ?D)))))
(subclass Deposit FinancialTransaction)
(disjoint Deposit Withdrawal)
(documentation Deposit EnglishWrittenLanguage "An Activity of money being transferred into a customer's account at a financial institution.")
(=>
(instance ?Deposit Deposit)
(exists (?Account)
(destination ?Deposit
(CurrencyFn ?Account))))
(=>
(and
(instance ?DEPOSIT Deposit)
(instance ?ACCOUNT FinancialAccount)
(destination ?DEPOSIT
(CurrencyFn ?ACCOUNT))
(instance ?CUNIT UnitOfCurrency)
(instance ?DEPOSITAMOUNT CurrencyMeasure)
(equal ?DEPOSITAMOUNT
(MeasureFn ?AMOUNT ?CUNIT))
(transactionAmount ?DEPOSIT ?DEPOSITAMOUNT)
(instance ?DEPOSITSTART TimePoint)
(equal ?DEPOSITSTART
(BeginFn
(WhenFn ?DEPOSIT)))
(instance ?PREVIOUSBALANCE CurrencyMeasure)
(equal ?PREVIOUSBALANCE
(MeasureFn ?BALANCE1 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?DEPOSITSTART ?PREVIOUSBALANCE)
(equal ?BALANCE2
(AdditionFn ?BALANCE1 ?AMOUNT)))
(exists (?DEPOSITEND ?NEWBALANCE)
(and
(instance ?DEPOSITEND TimePoint)
(equal ?DEPOSITEND
(EndFn
(WhenFn ?DEPOSIT)))
(instance ?NEWBALANCE CurrencyMeasure)
(equal ?NEWBALANCE
(MeasureFn ?BALANCE2 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?DEPOSITEND ?NEWBALANCE))))
(subclass Withdrawal FinancialTransaction)
(documentation Withdrawal EnglishWrittenLanguage "An activity of money being transferred from a customer's account at a financial institution.")
(=>
(instance ?Withdrawal Withdrawal)
(exists (?Account)
(and
(instance ?Account FinancialAccount)
(origin ?Withdrawal
(CurrencyFn ?Account)))))
(=>
(and
(instance ?WITHDRAWAL Withdrawal)
(instance ?ACCOUNT FinancialAccount)
(origin ?WITHDRAWAL ?ACCOUNT)
(instance ?CUNIT UnitOfCurrency)
(instance ?TRANSACTIONAMOUNT CurrencyMeasure)
(equal ?TRANSACTIONAMOUNT
(MeasureFn ?AMOUNT ?CUNIT))
(transactionAmount ?WITHDRAWAL ?TRANSACTIONAMOUNT)
(instance ?BEFORETIME TimePoint)
(equal ?BEFORETIME
(EndFn
(ImmediatePastFn
(WhenFn ?WITHDRAWAL))))
(instance ?INITIALBALANCE CurrencyMeasure)
(equal ?INITIALBALANCE
(MeasureFn ?BALANCE1 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?BEFORETIME ?INITIALBALANCE)
(equal ?BALANCE2
(SubtractionFn ?BALANCE1 ?AMOUNT)))
(exists (?AFTERTIME ?FINALBALANCE)
(and
(instance ?AFTERTIME TimePoint)
(equal ?AFTERTIME
(BeginFn
(ImmediateFutureFn
(WhenFn ?WITHDRAWAL))))
(instance ?FINALBALANCE CurrencyMeasure)
(equal ?FINALBALANCE
(MeasureFn ?BALANCE2 ?CUNIT))
(currentAccountBalance ?ACCOUNT ?AFTERTIME ?FINALBALANCE))))
(subclass Investing FinancialTransaction)
(documentation Investing EnglishWrittenLanguage "An activity of commiting money or capital in order to gain a financial return.")
(=>
(and
(agent ?Purchase ?Buyer)
(origin ?Purchase ?Seller)
(patient ?Purchase ?Object)
(monetaryValue ?Object ?Money))
(exists (?Payment)
(and
(subProcess ?Payment ?Purchase)
(instance ?Payment Payment)
(transactionAmount ?Payment ?Money)
(origin ?Payment ?Buyer)
(destination ?Payment ?Seller))))
(=>
(instance ?Investing Investing)
(hasPurpose ?Investing
(exists (?Profit)
(profit ?Investing ?Profit))))
(subclass AutomaticTransaction FinancialTransaction)
(documentation AutomaticTransaction EnglishWrittenLanguage "&%Transactions which occur through computer networks and which do not require direct management.")
;; Interest and Interest Rates
(subclass Interest CurrencyMeasure)
(documentation Interest EnglishWrittenLanguage "Money paid for the use of money.")
; Jennie May 2021 - interest rate is a percentage, i.e. a number
;(subclass InterestRate ConstantQuantity)
;(documentation InterestRate EnglishWrittenLanguage "The usual way of calculating Interest, as a
;percentage of the sum borrowed.")
(instance interestEarned TernaryPredicate)
(domain interestEarned 1 FinancialAccount)
(domain interestEarned 2 Interest)
(domain interestEarned 3 TimeInterval)
(documentation interestEarned EnglishWrittenLanguage "(&%interestEarned ?Account ?Interest ?Period) means that ?Interest is the amount earned on the &%FinancialAccount ?Account, for the duration ?Period.")
(instance simpleInterest TernaryPredicate)
(subrelation simpleInterest interestEarned)
(domain simpleInterest 1 FinancialAccount)
(domain simpleInterest 2 Interest)
(domain simpleInterest 3 TimeInterval)
(documentation simpleInterest EnglishWrittenLanguage "(&%simpleInterest ?Account ?Amount ?Time) means that ?Amount is the interest calculated on a principal sum, not compounded on earned interest, for the duration ?Time.")
(=>
(and
(instance ?ACCOUNT FinancialAccount)
(instance ?CUNIT UnitOfCurrency)
(instance ?PRINCIPAL CurrencyMeasure)
(equal ?PRINCIPAL
(MeasureFn ?BALANCE ?CUNIT))
(principalAmount ?ACCOUNT ?PRINCIPAL)
(fixedInterestRate ?ACCOUNT ?RATE)
(instance ?INTEREST CurrencyMeasure)
(equal ?INTEREST
(MeasureFn ?AMOUNT ?CUNIT))
(simpleInterest ?ACCOUNT ?INTEREST ?PERIOD)
(equal ?RATEDECIMAL
(DivisionFn ?RATE 100)))
(equal ?AMOUNT
(MultiplicationFn ?BALANCE ?RATEDECIMAL)))
(instance compoundInterest TernaryPredicate)
(subrelation compoundInterest interestEarned)
(domain compoundInterest 1 FinancialAccount)
(domain compoundInterest 2 Interest)
(domain compoundInterest 3 TimeInterval)
(documentation compoundInterest EnglishWrittenLanguage "(&%compoundInterest ?Account ?Amount ?Time) means that ?Amount is the interest which is calculated not only on the initial principal but also the accumulated interest of prior periods. Compound interest can be calculated annually, semi_annually, quarterly, monthly, or daily.")
;(=>
; (and
; (principalAmount ?Account
; (MeasureFn ?Balance ?CUNIT))
; (fixedInterestRate ?Account ?Rate)
; (compoundInterest ?Account
; (MeasureFn ?Interest ?CUNIT) ?Period)
; (equal ?Rate_Decimal
; (DivisionFn ?Rate 100))
; (equal ?Add
; (AdditionFn 1 ?Rate_Decimal))
; (equal ?Exponent
; (ExponentiationFn ?Add
; (MagnitudeFn ?Period)))
; (equal ?Multiply
; (MultiplicationFn ?Exponent ?Balance)))
; (equal ?Interest
; (SubtractionFn ?Multiply ?Balance)))
(instance interestRatePerPeriod TernaryPredicate)
(domain interestRatePerPeriod 1 FinancialAccount)
(domain interestRatePerPeriod 2 RealNumber)
(domain interestRatePerPeriod 3 TimeInterval)
(documentation interestRatePerPeriod EnglishWrittenLanguage "(interestRatePerPeriod ?ACCOUNT ?RATE ?TIME) means that ?RATE is the interest per the period TIME divided by principal amount, expressed as a percentage")
(=>
(and
(instance ?CUNIT UnitOfCurrency)
(instance ?INTERESTMEASURE CurrencyMeasure)
(equal ?INTERESTMEASURE
(MeasureFn ?INTEREST ?CUNIT))
(simpleInterest ?ACCOUNT ?INTERESTMEASURE ?PERIOD)
(instance ?PRINCIPALMEASURE CurrencyMeasure)
(equal ?PRINCIPALMEASURE
(MeasureFn ?PRINCIPAL ?CUNIT))
(principalAmount ?ACCOUNT ?PRINCIPALMEASURE)
(equal ?RATEDECIMAL
(DivisionFn ?INTEREST ?PRINCIPAL))
(equal ?RATE
(MultiplicationFn ?RATEDECIMAL 100.0)))
(interestRatePerPeriod ?ACCOUNT ?RATE ?PERIOD))
(instance primeInterestRate BinaryPredicate)
(domain primeInterestRate 1 Day)
(domain primeInterestRate 2 Number)
(documentation primeInterestRate EnglishWrittenLanguage "The interest rate that commercial banks charge their most creditworthy borrowers, such as large corporations. The prime rate is a lagging indicator.")
(=>
(and
(instance ?Account PersonalAccount)
(currentInterestRate ?Account ?Date ?Rate)
(primeInterestRate ?Date ?PrimeRate))
(greaterThan ?Rate ?PrimeRate))
(instance currentInterestRate TernaryPredicate)
(domain currentInterestRate 1 FinancialAccount)
(domain currentInterestRate 2 Day)
(domain currentInterestRate 3 Number)
(documentation currentInterestRate EnglishWrittenLanguage "(&%currentInterestRate ?Account ?Day ?Rate) means that ?Rate is the interest rate of the Account on a specific day ?Day.")
(instance fixedInterestRate BinaryPredicate)
(domain fixedInterestRate 1 FinancialAccount)
(domain fixedInterestRate 2 Number)
(documentation fixedInterestRate EnglishWrittenLanguage "(&%fixedInterestRate ?Account ?Rate) holds if ?Rate is the interest rate that does not change during the entire term of the account.")
;; dates
(instance maturityDate BinaryPredicate)
(subrelation maturityDate agreementExpirationDate)
(domain maturityDate 1 FinancialAccount)
(domain maturityDate 2 Day)
(documentation maturityDate EnglishWrittenLanguage "The date on which the principal amount of the account becomes due and payable.")
(=>
(and
(maturityDate ?Account ?Date)
(principalAmount ?Account ?Principal))
(amountDue ?Account ?Principal ?Date))
(=>
(and
(agreementPeriod ?Account ?Period)
(finishes ?End ?Period))
(maturityDate ?Account ?End))
(instance amountDue TernaryPredicate)
(domain amountDue 1 FinancialAccount)
(domain amountDue 2 CurrencyMeasure)
(domain amountDue 3 TimePosition)
(documentation amountDue EnglishWrittenLanguage "(&%amountDue ?ACCOUNT ?AMOUNT ?DATE) means ?DATE is the date on which the amount of Money ?AMOUNT of a particular ?ACCOUNT is due and payable")
(=>
(and
(amountDue ?Account ?Amount ?DueDate)
(accountHolder ?Account ?Agent))
(holdsObligation ?Agent
(exists (?Payment)
(and
(instance ?Payment Payment)
(transactionAmount ?Payment ?Amount)
(or
(destination ?Payment
(CurrencyFn ?Account))
(origin ?Payment
(CurrencyFn ?Account)))
(date ?Payment ?Date)
(beforeOrEqual
(EndFn ?Date)
(BeginFn ?DueDate))))))
;; Balances and payments
(instance currentAccountBalance TernaryPredicate)
(domain currentAccountBalance 1 FinancialAccount)
(domain currentAccountBalance 2 TimePoint)
(domain currentAccountBalance 3 CurrencyMeasure)
(documentation currentAccountBalance EnglishWrittenLanguage "(&%currentAccountBalance ?Account ?Date ?Amount) means that ?Amount is the balance of the FinancialAccount ?Account as of the date ?Date.")
(instance minimumBalance TernaryPredicate)
(domain minimumBalance 1 FinancialAccount)
(domainSubclass minimumBalance 2 FinancialTransaction)
(domain minimumBalance 3 CurrencyMeasure)
(documentation minimumBalance EnglishWrittenLanguage "(&%minimumBalance ?Account ?ActivityType ?Amount) means that ?Amount is the mimimum amount required by the type of &%FinancialTransaction ?ActivityType.")
(=>
(and
(instance ?ACCOUNT LiabilityAccount)
(instance ?U UnitOfCurrency)
(instance ?MINIMUMMEASURE CurrencyMeasure)
(equal ?MINIMUMMEASURE
(MeasureFn ?MINPAYMENT ?U))
(minimumPayment ?ACCOUNT ?MINIMUMMEASURE MonthDuration)
(instance ?MONTH Month)
(instance ?PAYMENT Payment)
(destination ?PAYMENT
(CurrencyFn ?ACCOUNT))
(instance ?PAYMENTMEASURE CurrencyMeasure)
(equal ?PAYMENTMEASURE
(MeasureFn ?AMOUNT ?U))
(paymentsPerPeriod ?ACCOUNT ?PAYMENTMEASURE ?MONTH)
(lessThan ?AMOUNT ?MINPAYMENT))
(exists (?PENALTY)
(and
(instance ?PENALTY Penalty)
(destination ?PENALTY
(CurrencyFn ?ACCOUNT)))))
(=>
(and
(instance ?ACCOUNT FinancialAccount)
(instance ?U UnitOfCurrency)
(instance ?MINIMUMBALANCE CurrencyMeasure)
(equal ?MINIMUMBALANCE
(MeasureFn ?BALANCE ?U))
(minimumBalance ?ACCOUNT UsingAnAccount ?MINIMUMBALANCE)
(instance ?CURRENTBALANCE CurrencyMeasure)
(equal ?CURRENTBALANCE
(MeasureFn ?AMOUNT ?U))
(currentAccountBalance ?ACCOUNT ?DATE ?CURRENTBALANCE)
(lessThan ?AMOUNT ?BALANCE))
(exists (?PENALTY)
(and
(instance ?PENALTY Penalty)
(date ?PENALTY ?DATE)
(destination ?PENALTY ?ACCOUNT))))
(instance originalBalance BinaryPredicate)
(domain originalBalance 1 FinancialAccount)
(domain originalBalance 2 CurrencyMeasure)
(documentation originalBalance EnglishWrittenLanguage "(&%originalBalance ?ACCOUNT ?BALANCE) means that ?BALANCE is the balance of the account at the time the account is opened.")
(=>
(and
(agreementEffectiveDate ?Account ?Date)
(currentAccountBalance ?Account ?Date ?Balance))
(originalBalance ?Account ?Balance))
(instance principalAmount BinaryPredicate)
(domain principalAmount 1 FinancialAccount)
(domain principalAmount 2 CurrencyMeasure)
(documentation principalAmount EnglishWrittenLanguage "(&%principalAmount ?ACCOUNT ?BALANCE) means that ?BALANCE is the amount borrowed, or the part of the amount borrowed which remains unpaid (excluding interest).")
(instance periodicPayment TernaryPredicate)
(domain periodicPayment 1 FinancialAccount)
(domain periodicPayment 2 CurrencyMeasure)
(domain periodicPayment 3 TimeDuration)
(documentation periodicPayment EnglishWrittenLanguage "(&%periodicPayment ?Pay ?Amount ?Period) holds if ?Pay is one of the periodic payments for the amount ?Amount.")
(=>
(periodicPayment ?Account ?Amount ?Period)
(exists (?Payment ?Class)
(and
(instance ?Payment Payment)
(origin ?Payment
(CurrencyFn ?Account))
(transactionAmount ?Payment ?Amount)
(instance ?Payment ?Class)
(frequency ?Class ?Period))))
(instance minimumPayment TernaryPredicate)
(domain minimumPayment 1 LiabilityAccount)
(domain minimumPayment 2 CurrencyMeasure)
(domain minimumPayment 3 TimeDuration)
(documentation minimumPayment EnglishWrittenLanguage "The smallest amount which can be paid on a revolving charge account to avoid a penalty.")
(=>
(instance ?SPREAD ButterflySpread)
(exists (?CALL1 ?CALL2 ?CALL3 ?CALL4 ?PRICE1 ?PRICE2 ?PRICE3 ?PRICE4 ?U ?STRIKE1 ?STRIKE2 ?STRIKE3 ?STRIKE4)
(and
(instance ?CALL1 CallOption)
(instance ?CALL2 CallOption)
(instance ?CALL3 CallOption)
(instance ?CALL4 CallOption)
(subProcess ?CALL1 ?SPREAD)
(subProcess ?CALL2 ?SPREAD)
(subProcess ?CALL3 ?SPREAD)
(subProcess ?CALL4 ?SPREAD)
(instance ?U UnitOfCurrency)
(instance ?STRIKE1 CurrencyMeasure)
(equal ?STRIKE1
(MeasureFn ?PRICE1 ?U))
(strikePrice ?CALL1 ?STRIKE1)
(instance ?STRIKE2 CurrencyMeasure)
(equal ?STRIKE2
(MeasureFn ?PRICE2 ?U))
(strikePrice ?CALL2 ?STRIKE2)
(instance ?STRIKE3 CurrencyMeasure)
(equal ?STRIKE3
(MeasureFn ?PRICE3 ?U))
(strikePrice ?CALL3 ?STRIKE3)
(instance ?STRIKE4 CurrencyMeasure)
(equal ?STRIKE4
(MeasureFn ?PRICE4 ?U))
(strikePrice ?CALL4 ?STRIKE4)
(lessThan ?PRICE1 ?PRICE2)
(lessThan ?PRICE1 ?PRICE3)
(greaterThan ?PRICE4 ?PRICE2)
(greaterThan ?PRICE4 ?PRICE3))))
(instance overdraft TernaryPredicate)
(domain overdraft 1 FinancialAccount)
(domain overdraft 2 CurrencyMeasure)
(domain overdraft 3 Day)
(documentation overdraft EnglishWrittenLanguage "The amount by which withdrawals exceed deposits.")
(=>
(and
(instance ?BALANCEMEASURE CurrencyMeasure)
(equal ?BALANCEMEASURE
(MeasureFn ?BALANCE UnitedStatesDollar))
(currentAccountBalance ?ACCOUNT ?DATE ?BALANCEMEASURE)
(lessThan ?BALANCE 0)
(equal ?OVERDRAFTAMOUNT
(SubtractionFn 0 ?BALANCE)))
(exists (?OVERDRAFTMEASURE)
(and
(instance ?OVERDRAFTMEASURE CurrencyMeasure)
(equal ?OVERDRAFTMEASURE
(MeasureFn ?OVERDRAFTAMOUNT UnitedStatesDollar))
(overdraft ?ACCOUNT ?OVERDRAFTMEASURE ?DATE))))
(instance creditLimit BinaryPredicate)
(domain creditLimit 1 CreditAccount)
(domain creditLimit 2 CurrencyMeasure)
(documentation creditLimit EnglishWrittenLanguage "(&%creditLimit ?ACCOUNT ?AMNT) holds if ?AMNT is the maximum amount of credit that a bank or other lender will extend to a customer.")
(instance floorLoan BinaryPredicate)
(domain floorLoan 1 Loan)
(domain floorLoan 2 CurrencyMeasure)
(documentation floorLoan EnglishWrittenLanguage "A minimum amount that a lender is willing to loan")
(instance downPayment BinaryPredicate)
(domain downPayment 1 Loan)
(domain downPayment 2 CurrencyMeasure)
(documentation downPayment EnglishWrittenLanguage "The part of the purchase price paid in cash up front, reducing the amount of the loan or mortgage.")
(=>
(and
(downPayment ?Loan ?Amount)
(agreementEffectiveDate ?Loan ?Date))
(exists (?Payment)
(and
(transactionAmount ?Payment ?Amount)
(date ?Payment ?Date)
(destination ?Payment
(CurrencyFn ?Loan)))))
(=>
(and
(instance ?CUNIT UnitOfCurrency)
(instance ?DOWNPAYMENT CurrencyMeasure)
(equal ?DOWNPAYMENT
(MeasureFn ?AMOUNT ?CUNIT))
(downPayment ?LOAN ?DOWNPAYMENT)
(loanForPurchase ?LOAN ?PURCHASE)
(instance ?PURCHASEVALUE CurrencyMeasure)
(equal ?PURCHASEVALUE
(MeasureFn ?VALUE ?CUNIT))
(monetaryValue ?PURCHASE ?PURCHASEVALUE)
(equal ?BALANCE
(SubtractionFn ?VALUE ?AMOUNT)))
(exists (?ORIGINALBALANCE)
(and
(instance ?ORIGINALBALANCE CurrencyMeasure)
(equal ?ORIGINALBALANCE
(MeasureFn ?BALANCE ?CUNIT))
(originalBalance ?LOAN ?ORIGINALBALANCE))))
(subclass Prepayment Payment)
(documentation Prepayment EnglishWrittenLanguage "Prepayment is the payment of all or part of a debt prior to its due date.")
(=>
(and
(transactionAmount ?Payment ?Amount)
(date ?Payment ?Date)
(instance ?Account FinancialAccount)
(destination ?Payment
(CurrencyFn ?Account))
(amountDue ?Account ?Amount ?DueDate)
(before
(EndFn ?Date)
(BeginFn ?DueDate)))
(instance ?Payment Prepayment))
;;
;;(instance accountsBalance TernaryPredicate)
;;(domainSubclass accountsBalance 1 FinancialAccount)
;;(domain accountsBalance 2 CurrencyMeasure)
;;(domain accountsBalance 3 Day)
;;
;(=>
;; (and
;; (equal ?Total 0)
;; (forall (?Account)
;; (=>
;; (and
;; (member ?Account ?SetOfAccounts)
;; (currentAccountBalance ?Account ?Date ?Balance))
;; (and
;; (equal NewTotal (AdditionFn ?Total ?Balance))
;; (equal Total NewTotal))))
;; (accountsBalance ?SetOfAccounts ?Total ?Date))
;;
(instance netWorth TernaryPredicate)
(instance netWorth SingleValuedRelation)
(domain netWorth 1 CognitiveAgent)
(domain netWorth 2 CurrencyMeasure)
(domain netWorth 3 Day)
(documentation netWorth EnglishWrittenLanguage "Total assets minus total liabilities of an individual or company.")
(=>
(netWorth ?Agent ?Amount ?Date)
(holdsDuring ?Date
(equal ?Amount
(WealthFn ?Agent))))
;;(=>
;; (and
;; (accountsBalance
;; (KappaFn ?Assets
;; (and
;; (possesses ?Agent ?Assets)
;; (instance ?Assets DepositAccount))) ?TotalAssets ?Date)
;; (KappaFn ?Debt
;; (and
;; (accountHolder ?Debt ?Agent)
;; (instance ?Debt LiabilityAccount))) ?TotalDebt ?Date)
;; (equal ?Net (SubtractionFn ?TotalAssets ?TotalDebt))))
;; fees
(subclass ChargingAFee FinancialTransaction)
(documentation ChargingAFee EnglishWrittenLanguage "An activity of a fee being charged")
(instance serviceFee TernaryPredicate)
(domain serviceFee 1 FinancialOrganization)
(domain serviceFee 2 FinancialTransaction)
(domain serviceFee 3 CurrencyMeasure)
(documentation serviceFee EnglishWrittenLanguage "A charge to the customer levied by a &%FinancialOrganization for a &%FinancialTransaction, such as &%OpeningAnAccount or &%UsingAnAccount.")
(=>
(serviceFee ?Bank ?Action ?Amount)
(exists (?Fee)
(and
(instance ?Fee ChargingAFee)
(agent ?Fee ?Bank)
(causes ?Action ?Fee)
(amountCharged ?Fee ?Amount))))
(subrelation amountCharged transactionAmount)
(instance amountCharged BinaryPredicate)
(domain amountCharged 1 ChargingAFee)
(domain amountCharged 2 CurrencyMeasure)
(documentation amountCharged EnglishWrittenLanguage "(&%amountCharged ?Fee ?Amount) means that ?Amount is the amount of the fee charged.")