This repository has been archived by the owner on Jan 17, 2018. It is now read-only.
forked from ontologyportal/sumo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FinancialOntology.kif
4000 lines (3406 loc) · 139 KB
/
FinancialOntology.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
;; 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 EnglishLanguage "The class &%FinancialOrganization includes,
as subclasses, &%Bank-FinancialOrganization, &%CreditUnion and &%SavingsAnLoans.")
(subclass Bank-FinancialOrganization FinancialOrganization)
(documentation Bank-FinancialOrganization EnglishLanguage "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.")
(subclass CreditUnion FinancialOrganization)
(documentation CreditUnion EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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)))
(subAttribute FinancialContract Contract)
(documentation FinancialContract EnglishLanguage "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 EnglishLanguage "A formal banking, brokerage, or business relationship
established to provide for regular services, dealings, and other financial
transactions.")
(=>
(instance ?Account FinancialAccount)
(and
(property ?Account FinancialContract)
(property ?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 EnglishLanguage "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 EnglishLanguage "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)
(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)
(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)
(equal (WhenFn ?Drawing) ?DrawingTime)
(equal (WhenFn ?Procesing) ?ProcessingTime)
(meetsTemporally ?DrawingTime ?Time)
(meetsTemporally ?Time ?ProcessingTime)
(duration ?Time ?Duration))
(lessThan ?Duration (MeasureFn 6 MonthDuration)))
(subclass PayCheck Check)
(documentation PayCheck EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "(&%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 EnglishLanguage "(&%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 EnglishLanguage "(&%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 EnglishLanguage "(&%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 EnglishLanguage "(&%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 EnglishLanguage "(&%signedBy ?Instrument ?Agent) means that ?Instrument
has been signed by ?Agent.")
(instance CurrencyFn UnaryFunction)
(domain CurrencyFn 1 FinancialAccount)
(range CurrencyFn FinancialInstrument)
(documentation CurrencyFn EnglishLanguage "A unary function that maps a &%FinancialAccount to the
currency linked to the account.")
;; Financial Activities
(subclass OpeningAnAccount FinancialTransaction)
(documentation OpeningAnAccount EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "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 EnglishLanguage "An activity of paying the amount specified on the
check from funds on deposit.")
(=>
(instance ?Processing ProcessingACheck)
(exists (?Check)
(and
(instance ?Check Check)
(patient ?Procesing ?Check))))
(=>
(instance ?Processing ProcessingACheck)
(exists (?Authorization)
(and
(instance ?Authorization AuthorizationOfTransaction)
(subProcess ?Authorization ?Processing))))
(subclass AuthorizationOfTransaction ControllingAnAccount)
(subclass AuthorizationOfTransaction RegulatoryProcess)
(subclass AuthorizationOfTransaction FinancialService)
(documentation AuthorizationOfTransaction EnglishLanguage "An activity which approves or
disapproves a transaction.")
(subclass ClosingAnAccount FinancialTransaction)
(documentation ClosingAnAccount EnglishLanguage "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 EnglishLanguage "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)
(origin ?Payment (CurrencyFn ?Account))
(instance ?Account FinancialAccount)
(transactionAmount ?Payment ?Amount)
(currentAccountBalance ?Account (ImmediatePastFn (WhenFn ?Payment)) ?Balance1)
(equal ?Balance2 (SubtractionFn ?Balance1 ?Amount)))
(currentAccountBalance ?Account (ImmediateFutureFn (WhenFn ?Payment)) ?Balance2))
(subclass Deposit FinancialTransaction)
(disjoint Deposit Withdrawal)
(documentation Deposit EnglishLanguage "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)
(time ?Deposit ?TimeOfDeposit)
(instance ?Account FinancialAccount)
(destination ?Deposit (CurrencyFn ?Account))
(transactionAmount ?Deposit ?Amount)
(currentAccountBalance ?Account (ImmediatePastFn (WhenFn ?Deposit)) ?Balance1)
(equal ?Balance2 (AdditionFn ?Balance1 ?Amount)))
(currentAccountBalance ?Account (ImmediateFutureFn (FutureFn ?Deposit)) ?Balance2))
(subclass Withdrawal FinancialTransaction)
(documentation Withdrawal EnglishLanguage "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)
(time ?Withdrawal ?TimeOfWithdrawal)
(instance ?Account FinancialAccount)
(origin ?Withdrawal ?Account)
(transactionAmount ?Withdrawal ?Amount)
(currentAccountBalance ?Account (ImmediatePastFn (WhenFn ?Withdrawal)) ?Balance1)
(equal ?Balance2 (SubtractionFn ?Balance1 ?Amount)))
(currentAccountBalance ?Account (ImmediateFutureFn (FutureFn ?Withdrawal)) ?Balance2))
(subclass Investing FinancialTransaction)
(documentation Investing EnglishLanguage "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)
(destination ?Payment ?Seller))))
(=>
(instance ?Investing Investing)
(hasPurpose ?Investing
(exists (?Profit)
(profit ?Investing ?Profit))))
(subclass AutomaticTransaction FinancialTransaction)
(documentation AutomaticTransaction EnglishLanguage "&%Transactions which occur through computer
networks and which do not require direct management.")
;; Interest and Interest Rates
(subclass Interest CurrencyMeasure)
(documentation Interest EnglishLanguage "Money paid for the use of money.")
(subclass InterestRate ConstantQuantity)
(documentation InterestRate EnglishLanguage "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 EnglishLanguage "(&%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 EnglishLanguage "(&%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
(principalAmount ?Account ?Balance)
(fixedInterestRate ?Account ?Rate)
(simpleInterest ?Account ?Amount ?Period)
(equal ?Rate-Decimal (DivisionFn (MagnitudeFn ?Rate) 100)))
(equal ?Amount (MultiplicationFn (MultiplicationFn (MagnitudeFn ?Period) ?Balance) ?Rate-Decimal)))
(instance compoundInterest TernaryPredicate)
(subrelation compoundInterest interestEarned)
(domain compoundInterest 1 FinancialAccount)
(domain compoundInterest 2 Interest)
(domain compoundInterest 3 TimeInterval)
(documentation compoundInterest EnglishLanguage "(&%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, quartely, monthly, or daily.")
(=>
(and
(principalAmount ?Account ?Balance)
(fixedInterestRate ?Account ?Rate)
(compoundInterest ?Account ?Interest ?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 InterestRate)
(domain interestRatePerPeriod 3 TimeInterval)
(documentation interestRatePerPeriod EnglishLanguage
"(interestRatePerPeriod ?ACCOUNT ?RATE ?TIME) means that ?RATE is the interest
per the period TIME divided by principal amount, expressed as a percentage")
(=>
(and
(simpleInterest ?Account ?Interest ?Period)
(principalAmount ?Account ?Principal)
(equal ?Rate-Decimal (DivisionFn ?Interest ?Principal))
(equal ?Rate (MultiplicationFn ?Rate-Decimal 100)))
(interestRatePerPeriod ?Account ?Rate ?Period))
(instance primeInterestRate BinaryPredicate)
(domain primeInterestRate 1 Day)
(domain primeInterestRate 2 InterestRate)
(documentation primeInterestRate EnglishLanguage "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 InterestRate)
(documentation currentInterestRate EnglishLanguage "(&%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 InterestRate)
(documentation fixedInterestRate EnglishLanguage "(&%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 EnglishLanguage "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 EnglishLanguage "(&%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 (KappaFn ?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)))) ?Agent))
;; Balances and payments
(instance currentAccountBalance TernaryPredicate)
(domain currentAccountBalance 1 FinancialAccount)
(domain currentAccountBalance 2 Day)
(domain currentAccountBalance 3 CurrencyMeasure)
(documentation currentAccountBalance EnglishLanguage "(&%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 EnglishLanguage "(&%minimumBalance ?Account ?ActivityType ?Amount)
means that ?Amount is the mimimum amount required by the type of
&%FinancialTransaction ?ActivityType.")
(=>
(and
(instance ?Account ?FinancialAccount)
(minimumBalance ?Account OpeningAnAccount ?Balance))
(exists (?Payment)
(and
(destination ?Payment (CurrencyFn ?Account))
(transactionAmount ?Payment ?Amount)
(greaterThanOrEqualTo ?Amount ?Balance)
(agreementEffectiveDate ?Account ?Date)
(date ?Payment ?Date))))
(=>
(and
(instance ?Account ?FinancialAccount)
(minimumBalance ?Account UsingAnAccount ?Balance)
(currentAccountBalance ?Account ?Date ?Amount)
(lessThan ?Amount ?Balance))
(exists (?Penalty)
(and
(instance ?Penalty Penalty)
(date ?Penalty ?Date)
(destination ?Penalty (CurrencyFn ?Account)))))
(instance originalBalance BinaryPredicate)
(domain originalBalance 1 FinancialAccount)
(domain originalBalance 2 CurrencyMeasure)
(documentation originalBalance EnglishLanguage "(&%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 EnglishLanguage "(&%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 EnglishLanguage "(&%periodicPayment ?Pay ?Amount ?Period) holds if
?Pay is one of the periodic payments for the amount ?Amount.")
(=>
(periodicPayment ?Account ?Amount ?Period)
(exists (?Payment)
(and
(instance ?Payment Payment)
(origin ?Payment (CurrencyFn ?Account))
(transactionAmount ?Payment ?Amount)
(frequency ?Payment ?Period))))
(instance minimumPayment TernaryPredicate)
(domain minimumPayment 1 LiabilityAccount)
(domain minimumPayment 2 CurrencyMeasure)
(domain minimumPayment 3 TimeDuration)
(documentation minimumPayment EnglishLanguage "The smallest amount which can be paid on a revolving
charge account to avoid a penalty.")
(=>
(and
(instance ?Account LiabilityAccount)
(minimumPayment ?Account ?MinPayment MonthDuration)
(exists (?Payment ?Month)
(and
(instance ?Month Month)
(destination ?Payment (CurrencyFn ?Account))
(paymentsPerPeriod ?Account ?Amount ?Month)
(lessThan ?Amount ?MinPayment))))
(exists (?Penalty)
(and
(instance ?Penalty Penalty)
(destination ?Penalty (CurrencyFn ?Account)))))
(instance overdraft TernaryPredicate)
(domain overdraft 1 FinancialAccount)
(domain overdraft 2 CurrencyMeasure)
(domain overdraft 3 Day)
(documentation overdraft EnglishLanguage "The amount by which withdrawals exceed deposits.")
(=>
(and
(currentAccountBalance ?Account ?Date (MeasureFn ?Balance UnitedStatesDollar))
(lessThan ?Balance 0)
(equal ?Overdraft (SubtractionFn 0 ?Balance)))
(overdraft ?Account (MeasureFn ?Overdraft UnitedStatesDollar) ?Date))
(instance creditLimit BinaryPredicate)
(domain creditLimit 1 CreditAccount)
(domain creditLimit 2 CurrencyMeasure)
(documentation creditLimit EnglishLanguage "(&%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 EnglishLanguage "A minimum amount that a lender is willing to loan")
(instance downPayment BinaryPredicate)
(domain downPayment 1 Loan)
(domain downPayment 2 CurrencyMeasure)
(documentation downPayment EnglishLanguage "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
(downPayment ?Loan ?Amount)
(loanForPurchase ?Loan ?Purchase)
(monetaryValue ?Purchase ?Value)
(equal ?Balance (SubtractionFn ?Value ?Amount)))
(originalBalance ?Loan ?Balance))
(subclass Prepayment Payment)
(documentation Prepayment EnglishLanguage "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 ?AmountDue ?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 EnglishLanguage "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 EnglishLanguage "An activity of a fee being charged")
(instance serviceFee TernaryPredicate)
(domain serviceFee 1 FinancialOrganization)
(domain serviceFee 2 FinancialTransaction)
(domain serviceFee 3 CurrencyMeasure)
(documentation serviceFee EnglishLanguage "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 EnglishLanguage "(&%amountCharged ?Fee ?Amount) means that ?Amount is the amount of
the fee charged.")
(subclass Penalty ChargingAFee)
(documentation Penalty EnglishLanguage "A fee charged as a penalty.")
(subclass Tax ChargingAFee)
(documentation Tax EnglishLanguage "A fee charged by a government on a product, income, or activity.")
(=>
(instance ?Tax Tax)
(exists (?Org)
(and
(instance ?Org Government)
(agent ?Tax ?Org))))
(subclass TaxReturn FormText)
(documentation TaxReturn EnglishLanguage "A &%FormText that is used for calculating the amount
of income tax owed in a given year.")
(=>
(instance ?RETURN TaxReturn)
(hasPurpose ?RETURN
(exists (?CALCULATE ?AMOUNT ?TAX)
(and
(instance ?CALCULATE Calculating)
(instrument ?CALCULATE ?RETURN)
(result ?CALCULATE ?AMOUNT)
(transactionAmount ?TAX ?AMOUNT)
(instance ?TAX Tax)))))
(subclass IncomeTax Tax)
(documentation IncomeTax EnglishLanguage "A &%Tax on annual income.")
(subclass DutyTax Tax)
(documentation DutyTax EnglishLanguage "A &%Tax that is levied on imports and/or exports.")
(=>
(and
(instance ?X DutyTax)
(refers ?X ?OBJ)
(patient ?X ?OBJ))
(exists (?T ?N1 ?N2)
(and
(instance ?T Transfer)
(patient ?T ?OBJ)
(origin ?T ?N1)
(destination ?T ?N2)
(instance ?N1 Nation)
(instance ?N2 Nation)
(not (equal ?N1 ?N2))
(earlier (WhenFn ?T) (WhenFn ?X))
(causes ?T ?X))))
;; Types of Accounts
(subclass InterestBearingAccount FinancialAccount)
(documentation InterestBearingAccount EnglishLanguage "FinancialAccounts that have a fixed or adjustable interest rate.")
(=>
(instance ?Account InterestBearingAccount)
(exists (?Rate ?Period)
(interestRatePerPeriod ?Account ?Rate ?Period)))
(subclass FixedRateAccount InterestBearingAccount)
(disjoint FixedRateAccount AdjustableRateAccount)
(documentation FixedRateAccount EnglishLanguage "An &%InterestBearingAccount in which the interest rate does not
change during the entire term of the loan.")
(<=>
(exists (?Rate)
(fixedInterestRate ?Account ?Rate))
(instance ?Account FixedRateAccount))
(subclass AdjustableRateAccount InterestBearingAccount)
(documentation AdjustableRateAccount EnglishLanguage "An &%InterestBearingAccount in which
the interest rate is adjusted periodically, usually based on a standard
market rate outside the control of the bank or savings institution, such
as that prevailing on &%TreasuryBill or the &%primeInterestRate.")
(subclass PersonalAccount FinancialAccount)
(documentation PersonalAccount EnglishLanguage "This is the class of personal accounts, as opposed to
&%CorporateAccounts.")
(<=>
(and
(accountHolder ?Account ?Agent)
(instance ?Agent Human))
(instance ?Account PersonalAccount))
(subclass JointAccount PersonalAccount)
(documentation JointAccount EnglishLanguage "An account owned by two or more people, usually sharing a household
and expenses. Each co-owner has equal access to the account. Most types of accounts, whether it's
basic checking, savings or money market, allow for joint use")
(<=>
(and
(instance ?Account PersonalAccount)
(greaterThan (CardinalityFn (KappaFn ?Agent (accountHolder ?Account ?Agent))) 1))
(instance ?Account JointAccount))
(subclass CorporateAccount FinancialAccount)
(disjoint CorporateAccount PersonalAccount)
(documentation CorporateAccount EnglishLanguage "This is the class of accounts held by corporations. This class
is disjoint with &%PersonalAccounts.")
(<=>
(and
(accountHolder ?Account ?Agent)
(instance ?Agent Corporation))
(instance ?Account CorporateAccount))
(subclass DepositAccount FinancialAccount)
(documentation DepositAccount EnglishLanguage "An account where money is deposited for checking, savings or
brokerage use.")
(subclass SavingsAccount InterestBearingAccount)
(documentation SavingsAccount EnglishLanguage "An account in a bank on which interest is usually paid and from
which withdrawals can be made usually only by presentation of a passbook or by written authorization
on a prescribed form.")
(=>
(and
(instance ?Account SavingsAccount)
(instance ?Transaction FinancialTransaction)
(origin ?Transaction (CurrencyFn ?Account)))
(exists (?Authorization)
(and
(instance ?Authorization AuthorizationOfTransaction)
(subProcess ?Authorization ?Transaction))))
(=>
(and
(instance ?Account SavingsAccount)
(accountHolder ?Account ?Agent)
(interestEarned ?Account ?Interest ?Period))
(exists (?Payment)
(and
(destination ?Payment (CurrencyFn ?Account))
(transactionAmount ?Payment ?Interest)
(destination ?Payment ?Agent))))
(subclass MoneyMarket SavingsAccount)
(documentation MoneyMarket EnglishLanguage "&%MoneyMarket is for borrowing and lending money for three years