-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathle_en.pl
More file actions
2565 lines (2182 loc) · 112 KB
/
le_en.pl
File metadata and controls
2565 lines (2182 loc) · 112 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
% A cured database of Document Examples for Logical English
:- module(le_en, [en/3]).
%1
en('1_cgt_assets_and_exemptions_3', 'This example covers CGT assets and exemptions.', "the target language is: prolog.
the templates are:
*an asset* costed *an amount* to acquire.
*a thing* meets the definition of plant and equipment under Division 43 of the Income Tax Act.
*an asset* is used soley for taxable income generating purposes.
*an asset* is used purely for personal use purposes.
*an award* was secured for valour or brave conduct.
*an asset* was bought.
*an asset* was secured in exchange for *an other asset*.
*an asset* has been secured through a game or a competition.
*an asset* corresponds to compensation or damages.
*an asset* was received for an injury at *a place* of *a taxpayer*.
*an asset* was received for an injury at *a place* of *a taxpayer* s relative.
*an asset* was received under an Unlawful Termination Assistance Scheme.
*an asset* was received under an alternative Dispute Resolution Assistance Scheme.
*an asset* was received under an M4/M5 Cashback Scheme.
*an asset* was received under a scheme established under legislation by an Australian Government agency or a foreign government agency.
*an asset* was received under a scheme established under legislation by a local government body.
*an asset* was received under a scheme established under legislation by a foreign government agency.
*an asset* is an interest in *a fund*.
*a fund* has *a number* of members.
*an asset* is being transferred because of a relationship breakdown.
*an asset* was created in *an agreement*.
*an asset* was ended in *an agreement*.
*an asset* arose from the maturity of *a policy*.
*an instrument* is an annuity instrument for *an asset*.
*an asset* of *a taxpayer* is a CGT exempt asset.
*an asset* is for surrender of *a policy*.
*a taxpayer* is the original beneficial owner of *a policy*.
*an asset* is held in a pooled development fund.
*an asset* is held in certain venture capital entity.
*an asset* is held in an early stage venture capital limited partnership.
*an asset* was gifted through a will to a deductible gift recipient beneficiary.
*an asset* belongs to *a person*.
*a person* was a resident of Norfolk Island at *a date*.
*an asset* was acquired at *a date*.
*a thing* is a share or a unit or similar investments.
*a thing* is a rental property plant or equipment.
*an asset* is used for the purchase of items for personal consumption.
*an arrangement* for *an asset* is *a state*.
the ontology is:
% A CGT asset is:
% (a) any kind of property; or
% (b) a legal or equitable right that is not property.
a thing is a CGT asset
if the thing is a property
or the thing is a legal right
or the thing is an equitable right
and it is not the case that
the thing is a property.
% List of assets - List of CGT assets and exemptions - https://www.ato.gov.au/Individuals/Capital-gains-tax/List-of-cgt-assets-and-exemptions/
% Real estate assets
% Shares, units & similar investments
% Personal use assets
% Collectables assets
% Intangible assets
% Foreign currency assets
% Depreciating assets
% Award & payout assets
a thing is a property
if the thing is a real state asset
or the thing is a share or a unit or similar investments
or the thing is a personal use asset
or the thing is a collectable asset
or the thing is an intangible asset
or the thing is a foreign currency asset
or the thing is a depreciating asset
or the thing is an award or payout asset.
% Real estate assets list
% Main residence
% Granny flat
% Vacant land
% Business premises
% Rental properties
% Holiday houses
% Hobby farms
% Farms
a thing is a real state asset
if the thing is a main residence
or the thing is a granny flat
or the thing is a vacant land
or the thing is a business premise
or the thing is a holiday house
or the thing is a hobby farm
or the thing is a farm.
% Main residence is a CGT exempt asset if it is used purely for personal use.
an asset is a CGT exempt asset
if the asset is used purely for personal use purposes
and the asset is a main residence.
% Granny flat is a CGT exempt asset if an eligible granny flat arrangement is created, varied or terminated.
an asset is a CGT exempt asset
if the asset is a granny flat
and an arrangement for the asset is created
or the arrangement for the asset is varied
or the arrangement for the asset is terminated
and the arrangement is a granny flat arrangement.
% Shares, units & similar investments assets list
% Shares
% Units
% Convertible notes
% Rights to aquire shares or units
% Options to acquire shares or units
% Stapled securities
% Cryptocurrencies
a thing is a share or a unit or similar investments
if the thing is a share
or the thing is a unit
or the thing is a convertible note
or the thing is a right to acquire shares or units
or the thing is an option to acquire shares or units
or the thing is a stapled security
or the thing is a cryptocurrency.
% Cryptocurrency is a CGT exempt asset if it is used for the purchase of items for personal consumption.
an asset is a CGT exempt asset
if the asset is a cryptocurrency
and the asset is used for the purchase of items for personal consumption.
% Personal use assets list
% boats
% furniture
% electrical goods
% household items
% option or right to acquire a personal use asset
% An IOU / loan to family member
% An IOU / loan to family friend
% An IOU related to a personal use asset
a thing is a personal use asset
if the thing is a boat
or the thing is a furniture
or the thing is an electrical good
or the thing is a household item
or the thing is an option or right to acquire a personal use asset
or the thing is an IOU as a loan to a family member
or the thing is an IOU as a loan to a family friend
or the thing is an IOU related to a personal use asset.
% A personal use asset is not a CGT exempt asset if the asset cost the person $10,000 or more to acquire.
an asset is a CGT exempt asset
if the asset is a personal use asset
and the asset costed an amount to acquire
and the amount < 10000.
% Collectables assets list
% artwork
% jewellery
% antiques
% rare coins
% rare medallions
% rare stamps
% rare folios
% rare manuscripts
% rare books
a thing is a collectable asset
if the thing is an artwork
or the thing is a jewellery
or the thing is an antique
or the thing is a rare coin
or the thing is a rare medallion
or the thing is a rare stamp
or the thing is a rare folio
or the thing is a manuscript
or the thing is a book.
% If an entity makes a capital loss on disposal of a collectable then that loss can only be offset against a capital gain on the disposal of a collectable.
% Intangibles assets list
% Leases
% goodwill
% licences
% contractual rights
a thing is a intangible asset
if the thing is a lease
or the thing is a goodwill
or the thing is a license
or the thing is a contractual right.
% Depreciating assets list
% business equipment
% plant and equipment found in a rental property
a thing is a depreciating asset
if the thing is a business equipment
or the thing is a rental property plant or equipment.
% Plant and equipment is rental property plant and equipment if it is a removable asset in a rental property
% and it meets the definition of plant and equipment under Division 43 of the Income Tax Act.
a thing is a rental property plant or equipment
if the thing is a removable asset in a rental property
and the thing meets the definition of plant and equipment under Division 43 of the Income Tax Act.
% A depreciating asset is CGT exempt asset if it is used soley for taxable income generating purposes.
an asset is a CGT exempt asset
if the asset is a depreciating asset
and the asset is used soley for taxable income generating purposes.
% A motor vehicle is a CGT exempt asset if it is used purely for personal use purposes.
an asset is a CGT exempt asset
if the asset is a motor vehicle
and the asset is used purely for personal use purposes.
% A motor cycle is a CGT exempt asset if it is used purely for personal use purposes.
an asset is a CGT exempt asset
if the asset is a motor cycle
and the asset is used purely for personal use purposes.
% An award is a CGT exempt asset if it was secured for valour or brave conduct.
% An award is not a CGT exempt asset if it was bought or if it was secured in exchange for another asset.
an asset is a CGT exempt asset
if the asset is an award
and the asset was secured for valour or brave conduct
and it is not the case that
the asset was bought
or the asset was secured in exchange for another asset.
% Gambling winnings are a CGT exempt asset if they are secured through a game or a competition.
an asset is a CGT exempt asset
if the asset is a gambling winning
and the asset has been secured through a game or a competition.
% Compensation or damages is a CGT exempt asset if received for an injury you or your relative suffered at work.
% Compensation or damages is a CGT exempt asset if received for an injury you or your relative suffered anywhere.
% Compensation or damages is a CGT exempt asset if received under an Unlawful Termination Assistance Scheme.
% Compensation or damages is a CGT exempt asset if received under an alternative Dispute Resolution Assistance Scheme.
% Compensation or damages is a CGT exempt asset if received under an M4/M5 Cashback Scheme.
% Compensation or damages is a CGT exempt asset if received under a scheme established under legislation by an Australian Government agency,
% or a foreign government agency.
an asset is a CGT exempt asset
if the asset corresponds to compensation or damages
and the asset was received for an injury at a place of a taxpayer
or the asset was received for an injury at place of the taxpayer s relative
or the asset was received under an Unlawful Termination Assistance Scheme
or the asset was received under an alternative Dispute Resolution Assistance Scheme
or the asset was received under an M4/M5 Cashback Scheme
or the asset was received under a scheme established under legislation by an Australian Government agency or a foreign government agency.
% Receipt of compensation or damages is a CGT exempt asset if received under a scheme established under legislation by a local government body.
% Receipt of compensation or damages is a CGT exempt asset if received under a scheme established under legislation by a foreign government agency.
an asset is a CGT exempt asset
if the asset is a receipt for compensation or damages
and the asset was received under a scheme established under legislation by a local government body
or the asset was received under a scheme established under legislation by a foreign government agency.
% An interest in one small super fund (a complying fund that has less than 5 members) is a CGT exempt asset if
% the rights are transferred to another because of a relationship breakdown between spouses or former spouses.
an asset is a CGT exempt asset
if the asset is an interest in a super fund
and the super fund has a number of members
and the number < 5
and the asset is being transferred because of a relationship breakdown.
% Rights are a CGT exempt asset if created or ended in a superannuation agreement.
an asset is a CGT exempt asset
if the asset is a right
and the asset was created in an agreement
or the asset was ended in the agreement
and the agreement is a superannuation agreement.
% A payout under a general insurance policy is a CGT exempt asset if it arises from the maturity of the policy.
% A payout under a life insurance policy is a CGT exempt asset if it arises from the maturity of the policy.
an asset is a CGT exempt asset
if the asset is a payout
and the asset arose from the maturity of a policy
and the policy is a general insurance policy for the asset
or the policy is a life insurance policy for the asset.
% A payout under an annuity instrument is a CGT exempt asset if it arises from the maturity of the instrument.
an asset is a CGT exempt asset
if the asset is a payout
and the asset arose from the maturity of an instrument
and the instrument is an annuity instrument for the asset.
% A payment for surrender of an insurance policy is a CGT exempt asset where you are the original beneficial owner of the policy.
an asset of a taxpayer is a CGT exempt asset
if the asset is a payment
and the asset is for surrender of an insurance policy
and the taxpayer is the original beneficial owner of the policy.
% A share is a CGT exempt asset if held in a pooled development fund.
% A share is a CGT exempt asset if held in certain venture capital entity.
% A share is a CGT exempt asset if held in an early stage venture capital limited partnership.
an asset is a CGT exempt asset
if the asset is a share
and the asset is held in a pooled development fund
or the asset is held in certain venture capital entity
or the asset is held in an early stage venture capital limited partnership.
% A gift is a CGT exempt asset if gifted through a will to a deductible gift recipient beneficiary.
an asset is a CGT exempt asset
if the asset is a gift
and asset was gifted through a will to a deductible gift recipient beneficiary.
% An asset is a CGT exempt asset if held by a person who was a resident of Norfolk Island before 24 October 2015
% and the asset was acquired on Norfolk Island before 24 October 2015.
an asset is a CGT exempt asset
if the asset belongs to a person
and the person was a resident of Norfolk Island at a date
and the date is before 2015-10-24.
% An asset is a CGT exempt asset if the asset was acquired on or before 19 September 1985.
an asset is a CGT exempt asset
if the asset was acquired at a date
and the date is before or equal to 1985-09-19.
scenario Colin is:
asset one belongs to Colin.
Colin was a resident of Norfolk Island at 2000-01-01.
asset two was acquired at 1985-09-19.
% Check if your assets are subject to CGT, exempt, or pre-date CGT.
query one is:
which thing is a CGT asset.
query two is:
which asset is a CGT exempt asset.
query three is:
which asset is a pre-date CGT asset.
").
% end of en('1_cgt_assets_and_exemptions_3', ...
%2
en('1_net_asset_value_test_3', 'This example covers the maximum net asset value test.', "the target language is: prolog.
the templates are:
*an asset* has *a type* of liability that costs *an amount*,
*an amount* is a provision on *an asset* s liabilities of some type that is in *a set*,
*a first amount* is the market value of *an asset* at *a date*,
*an asset* is an earnout cgt asset valued at *a value* according to other legislation,
*an asset* is an earnout cgt asset valued at *a value*,
*a tax payer* satisfies maximum net asset value test at *a date*,
*a person* has cgt assets net value of *a value* at *a date*,
*a person* has relevant asset *an asset*,
*a person* owns *an asset*,
*a taxpayer* is connected to *a connection* according to other legislation,
*a person* is connected to *a connection*,
*a taxpayer* is affiliated with *an affiliate* at *a time* according to other legislation,
*a taxpayer* is affiliated with *an affiliate* at *a time*,
*a person* is affiliated with *an affiliate*,
*an asset* is used in business of *a person*,
*a person* has to exclude asset *an asset*,
*a value* is the net value of *an asset* at *a date*,
*an asset* belongs to *a connection*,
*an asset* is solely for personal use by *a person*,
it is for home use for private purposes only including incidental income producing,
*an asset* is part of rights to amounts or assets of super fund or approved deposit fund,
*an asset* is life insurance for *a person*,
*an asset* is used in business of *a taxpayer* according to other legislation,
*a person* owns *an asset* according to other legislation,
*an asset* is share in company of *a connection* according to other legislation,
*an asset* is of interest in trust of *a connection* according to other legislation,
*an asset* is a cgt asset according to other legislation.
the ontology is:
An asset is a cgt asset
if the asset is a cgt asset according to other legislation.
the knowledge base 1_net_asset_value_test_3 includes:
A tax payer satisfies maximum net asset value test at a date
if the tax payer has cgt assets net value of a value at the date
and the value =< 6000000.
A person has cgt assets net value of a value at a date
if the person has relevant asset an asset X
and a value Y is the net value of X at the date
and the value is the sum of each partial such that
the person has relevant asset an asset
and the asset is a cgt asset
and it is not the case that
the person has to exclude asset the asset
and the partial is the net value of the asset at the date.
A person has relevant asset an asset
if the person owns the asset.
A person has relevant asset an asset
if the person is connected to a connection
and the connection owns the asset.
A person has relevant asset an asset
if the person is affiliated with an affiliate
and the affiliate owns the asset
and the asset is used in business of the person
or the person is connected to a connection C
and the asset is used in business of C
.
A person has relevant asset an asset
if the person is affiliated with an affiliate
and the affiliate is connected to an affiliate connection
and the affiliate connection owns the asset
and the asset is used in business of the person
or the person is connected to a connection C
and the asset is used in business of C
.
A person has to exclude asset an asset
if the person is connected to a connection
or the person is affiliated with an affiliate
and the affiliate is connected to the connection
and the asset belongs to the connection.
A person has to exclude asset an asset
if the person is an individual
and the asset is solely for personal use by the person
or the person is affiliated with an affiliate
and the asset is solely for personal use by the affiliate
or it is for home use for private purposes only including incidental income producing
or the asset is part of rights to amounts or assets of super fund or approved deposit fund
or the asset is life insurance for the person
.
An amount is the net value of an asset at a date
if a first amount is the market value of the asset at the date
and a second amount is the sum of each individual amount such that
the individual amount is a provision on the asset s liabilities of some type that is in [annual leave, long service leave, unearned income, tax liabilities, legally enforceable debts, legal or equitable obligations]
at the date
and the amount = the first amount - the second amount.
An amount is a provision on an asset s liabilities of some type that is in a set
if the asset has a type of liability that costs the amount
and the type is in the set.
A taxpayer owns an asset
if the taxpayer owns the asset according to other legislation.
A taxpayer is connected to a connection
if the taxpayer is connected to the connection according to other legislation.
An asset is used in business of a taxpayer
if the asset is used in business of the taxpayer according to other legislation.
A taxpayer is affiliated with an affiliate at a time
if the taxpayer is affiliated with the affiliate at the time according to other legislation.
An asset belongs to a connection
if the asset is share in company of the connection according to other legislation.
An asset belongs to a connection
if the asset is of interest in trust of the connection according to other legislation.
%a TPN is an individual at a Date
% if myDB_entities : is_an_individual_on(the TPN,the Date).
an asset is an earnout cgt asset valued at a value
if the asset is an earnout cgt asset valued at the value according to other legislation.
scenario feb 5 2021 is:
4000000 is the net value of cgt asset 1 at 2021-02-05.
andrew owns cgt asset 1.
cgt asset 1 is a cgt asset according to other legislation.
cgt asset 1 is an earnout cgt asset valued at 4000000.
andrew is affiliated with affiliate1.
affiliate1 owns cgt asset 2.
10000000 is the net value of cgt asset 2 at EARNOUT.
cgt asset 2 has annual_leave of liability that costs 2000000.
andrew is connected to entity according to other legislation.
entity owns asset3.
asset3 is a cgt asset according to other legislation.
asset3 is an earnout cgt asset valued at 2000000.
query andrew is:
andrew satisfies maximum net asset value test at which date.
query taxpayer is:
which taxpayer satisfies maximum net asset value test at which date.
query date is:
which taxpayer satisfies maximum net asset value test at 2021-02-05.
query asset is:
which asset is a cgt asset.
").
% end of en('1_net_asset_value_test_3', ...
%3
en('3_rollover_3', 'This example covers the small business restructure rollover.', "the target language is: prolog.
the templates are:
*A trust* s election ocurred,
*A trust* is the trust of a group,
*An event* rollover applies,
*An owner* / *a share*,
*An Event ID* rollover of the transfer of *an Asset* from *a Transferor* to *a Transferees List* at *a time* applies,
*an event* of transfering *an asset* from *a payer* to *a recipient* at *a date* occurs,
the small business restructure rollover applies to *an event*,
*an event* occurs at *a date*,
*an event* is a transfer of *an asset* by *a transferor* to *a transferee*,
*an event* is part of genuine restructuring according to other legislation,
*an event* meets the ultimate ownership test at *a time*,
*an event* is undertaken as part of *a trust*,
*a trust* relates to *a family group*,
*an individual* is a member of *a group*,
*an individual* is an ultimate owner of *an asset* at *a time*,
*a trust* is a family trust,
*a tax payer* is in *a transferee*,
*a time* is after *a second time*,
*a party* is a party of *an event*,
*an amount* is the aggregated turnover of *a party*,
*a party* is an eligible party,
*a previous time* is immediately before *a time*,
*an asset* is ultimately owned by *a share* with *an owner* at *a time*,
*an entity* has *a share* in *an asset* at *a time*,
*an owner* owns *an asset* at *a time* according to other legislation,
*a party* is a small business entity according to other legislation,
*a party* has affiliated with *an affiliate* according to other legislation,
*a party* is connected to *a taxpayer* according to other legislation,
*a party* is a partner in partnership with *a partnership* according to other legislation,
*an asset* is used in business of *a taxpayer* according to other legislation,
*an asset* is of type *a type* according to other legislation,
*a party* has an aggregated turnover of *an amount*,
*a party* has an aggregated turnover of *an amount* according to other legislation,
*a cost* is a rollover cost,
*an asset* costs *a cost* at *a time*,
*an owner* / *a thing* is in *a set*,
*an asset* is an eligible asset.
the ontology is:
cgt asset is an asset.
trading stock is an asset.
revenue asset is an asset.
depreciating asset is an asset.
loan to shareholder is an asset.
an asset is a type
if the type is a asset
and the asset is of type the type according to other legislation.
an asset is an active asset
if the asset is used in business of a taxpayer according to other legislation.
the knowledge base 3_rollover_3 includes:
%An Event ID rollover of the transfer of an Asset from a Transferor to a Transferees List at a Time applies
% if this information transfer_event(the Event ID,the Asset,the Time,the Transferor,the Transferees List) has been recorded
% and the Event ID rollover applies.
A tax payer is a party of an event
if the event of transfering an asset from the tax payer to a recipient at a time occurs.
A tax payer is a party of an event
if the event of transfering an asset from a somebody to a transferee at a time occurs
and the tax payer is in the transferee.
the small business restructure rollover applies to an event
if the event occurs at a time
and the event is a transfer of an asset by a transferor to a transferee
and for all cases in which
a party is a party of the event
and an amount is the aggregated turnover of the party
it is the case that
the party is an eligible party
and the amount < 10000000.
an event meets the ultimate ownership test at a time
if the event is a transfer of an asset by a transferor to a transferee
and a previous time is immediately before the time
and for all cases in which
the asset is ultimately owned by an entity with an ultimate owner at the time
and the entity has a share in the asset at the time
it is the case that
the entity is an ultimate owner of the asset at the previous time
and the entity has the share in the asset at the previous time.
an event meets the ultimate ownership test at a time
if the event is a transfer of an asset by a transferor to a transferee
and the event is undertaken as part of a trust
and the trust is a family trust
and the trust relates to a family group
and a previous time is immediately before the time
and for all cases in which
an individual is an ultimate owner of the asset at the time
it is the case that
the individual is a member of the family group
and for all cases in which
the asset is ultimately owned by an second individual with an ultimate owner at the time
it is the case that
the second individual is a member of the family group.
An asset is ultimately owned by 1 with an owner at a time
if the owner owns the asset at the time according to other legislation.
A party is an eligible party
if the party is a small business entity according to other legislation.
A party is an eligible party
if the party has affiliated with an affiliate according to other legislation
and the affiliate is a small business entity according to other legislation.
A party is an eligible party
if the party is connected to a taxpayer according to other legislation
and the taxpayer is a small business entity according to other legislation.
A party is an eligible party
if the party is a partner in partnership with a partnership according to other legislation
and the partnership is a small business entity according to other legislation.
An asset is an eligible asset
if the asset is an active asset
and the asset is a a type
and the type is in [cgt event,depreciating asset,trading stock,revenue asset].
A party has an aggregated turnover of an amount
if the party has an aggregated turnover of the amount according to other legislation.
A cost is a rollover cost
if an event occurs at a time
and the event is a transfer of an asset by a transferor to a transferee
and a previous time is immediately before the time
and the asset costs the cost at the previous time.
query one is:
the small business restructure rollover applies to which event.
query two is:
which tax payer is a party of which event.
scenario Testing is:
event 123 occurs at 2016-07-01.
event 123 is a transfer of company1 goodwill by a company1 to miguel.
company1 goodwill is an active asset.
company1 goodwill is a trading stock.
event 123 is part of genuine restructuring according to other legislation.
event 123 of transfering company1 goodwill from company1 to miguel at 2016-07-01 occurs.
miguel has an aggregated turnover of 400000 according to other legislation.
company1 has an aggregated turnover of 5300000 according to other legislation.
scenario Andrew email Feb 4 2021 is:
company1 owns company1 goodwill at a time according to other legislation.
company1 owns company1 trading_stock at a time according to other legislation.
company1 owns company1 plant and equipment at a time according to other legislation.
company1 owns company1 revenue asset at a time according to other legislation.
miguel is a partner in partnership with company1 according to other legislation.
company1 has an aggregated turnover of 5300000 according to other legislation.
andrew has an aggregated turnover of 1000000 according to other legislation.
miguel has an aggregated turnover of 500000 according to other legislation.
company1 is a small business entity according to other legislation.
andrew is a small business entity according to other legislation.
miguel is a small business entity according to other legislation.
event 123 of transfering company1 goodwill from company1 to [andrew,miguel] at 2020-07-01 occurs.
company1 owns company1 goodwill at a time according to other legislation.
company1 owns company1 trading_stock at a time according to other legislation.
company1 owns company1 plant and equipment at a time according to other legislation.
company1 owns company1 revenue asset at a time according to other legislation.
event 123 is part of genuine restructuring according to other legislation.
company1 goodwill is used in business of company1 according to other legislation.
company1 goodwill is of type trading stock.
scenario Andrew email Feb 4 2021 version 2 is:
miguel is a partner in partnership with company1 according to other legislation.
company1 has an aggregated turnover of 5300000 according to other legislation.
andrew has an aggregated turnover of 1000000 according to other legislation.
miguel has an aggregated turnover of 500000 according to other legislation.
company1 is a small business entity according to other legislation.
andrew is a small business entity according to other legislation.
miguel is a small business entity according to other legislation.
event 123 of transfering company1 goodwill from company1 to [andrew,miguel] at 2020-07-01 occurs.
").
% end of en('3_rollover_3', ...
%4
en('4_affiliates_3', 'This example covers affiliates entities for tax purposes.', "the target language is: prolog.
the predicates are:
*a term* must not be a variable,
*a term* must be nonvar,
*an entity* has affiliated with *an affiliate* at *a date*,
*a date* is not earlier than *a second date*,
% commenting out some templates for now, cf. Jacinto's email Nov 25 2025 to Miguel:
% *an affiliate* is an individual or is a company,
% *an affiliate* is a trust,
% *an affiliate* is a partnership,
% *an affiliate* is a superannuation fund,
*an affiliate* acts in accordance with directions from *an entity*,
*an affiliate* acts in concert with *an entity*,
*an affiliate* is affiliated per older legislation with *an entity*,
*an entity* is a trust according to other legislation,
% *an entity* is a partnership,
*an entity* is a partnership according to other legislation,
*an entity* is a superannuation fund according to other legislation.
the ontology is:
an entity is a trust
if the entity is a trust according to other legislation.
an entity is a partnership
if the entity is a partnership according to other legislation.
an entity is a superannuation fund
if the entity is a superannuation fund according to other legislation.
the knowledge base 4_affiliates_3 includes:
an entity has affiliated with an affiliate at a date
if the date is not earlier than 2009-01-01
and the affiliate is an individual
or the affiliate is a company
and it is not the case that
the affiliate is a trust
and it is not the case that
the affiliate is a partnership
and it is not the case that
the affiliate is a superannuation fund
and the affiliate acts in accordance with directions from the entity
or the affiliate acts in concert with the entity.
an entity has affiliated with an affiliate at a date
if the date is known
and the date is before 2009-01-01
and the affiliate is affiliated per older legislation with the entity.
a date P is not earlier than a date A
if P is A
or P is known
and A is known
and A is before P.
scenario test is:
his company is a company.
his company acts in accordance with directions from andrew.
his company is affiliated per older legislation with andrew.
query one is:
andrew has affiliated with his company at 2020-01-02.
query two is:
who affiliated with which entity at which date.
query three is:
what entity affiliated with which company at which date.
query four is:
when did which entity affiliate with which other entity.
query five is:
on what date did which entity affiliate with which company.
query six is:
is there an affiliation between which entity and which company.
query seven is:
when did the affiliation between which entity and which company begin.
").
% end of en('4_affiliates_3', ...
%5
en(augmentedsem, "This example covers augmented semantics in ontology handling", "the target language is: prolog.
the templates are:
*a label* is a label for *a description*.
the dataset ID is *a dataset*.
the dataset *a dataset* is described at *a location*.
the dataset *a dataset* can be downloaded from *a url*.
the provider of *a dataset* is *a provider*.
the platform of *a dataset* is *a platform*.
the method of delivery of *a dataset* is *a method*.
the product version of *a dataset* included here is *a date*.
the ontology is:
the dataset ID is FDIC Insured Banks.
%the dataset FDIC Insured Banks is described at https://hub.arcgis.com/datasets/geoplatform::fdic-insured-banks/about .
%the dataset FDIC Insured Banks can be downloaded from https://hub.arcgis.com/datasets/geoplatform::fdic-insured-banks/ .
the provider of FDIC Insured Banks is GeoPlatform ArcGIS Online.
the platform of FDIC Insured Banks is ArcGIS.
the method of delivery of FDIC Insured Banks is http.
the product version of FDIC Insured Banks included here is 2018-06-29:00:00.
%Column Label to Meaning Mappings:
X is a label for Latitude.
Y is a label for Longitude.
OBJECTID is a label for ID.
ACQDATE is a label for Acquisition Date.
ADDRESS is a label for Branch Address.
ADDRESS2 is a label for Street Address Line 2.
BKCLASS is a label for Institution Class.
CBSA is a label for Core Based Statistical Areas (Branch).
CBSA_DIV is a label for Metropolitan Divisions Name (Branch).
CBSA_DIV_FLG is a label for Metropolitan Divisions Flag (Branch).
CBSA_DIV_NO is a label for Metropolitan Divisions Number (Branch).
CBSA_METRO is a label for Metropolitan Division Number (Branch).
CBSA_METRO_FLG is a label for Metropolitan Division Flag (Branch).
CBSA_METRO_NAME is a label for Metropolitan Division Name (Branch).
CBSA_MICRO_FLG is a label for Micropolitan Division Flag (Branch).
CBSA_NO is a label for Core Based Statistical Area Name (Branch).
CERT is a label for Institution FDIC Certificate #. CITY is a label for Branch City.
COUNTY is a label for Branch County.
CSA is a label for Combined Statistical Area Name (Branch).
CSA_FLG is a label for Combined Statistical Area Flag (Branch).
CSA_NO is a label for Combined Statistical Area Number (Branch).
ESTYMD is a label for Branch Established Date.
FI_UNINUM is a label for FDIC UNINUM of the Owner Institution.
ID is a label for ID. LATITUDE is a label for Latitude.
LONGITUDE is a label for Longitude.
MAINOFF is a label for Main Office.
MDI_STATUS_CODE is a label for Minority Status Code.
MDI_STATUS_DESC is a label for Minority Status Description.
NAME is a label for Institution Name.
OFFNAME is a label for Office Name.
OFFNUM is a label for Branch Number.
RUNDATE is a label for Run Date.
SERVTYPE is a label for Service Type Code.
SERVTYPE_DESC is a label for Service Type Description.
STALP is a label for Branch State Abbreviation.
STCNTY is a label for State and County Number.
STNAME is a label for Branch State.
UNINUM is a label for Unique Identification Number for a Branch Office.
ZIP is a label for Branch Zip Code.
an object is of a type
if a label is a label for the type
and the object is of the label. % connection to the dataset
%Ontological Mappings:
%Spatial/Geographic Mappings (GeoSPARQL/GeoNames):
X is a geo:lat (latitude coordinate). % as in http://www.opengis.net/ont/geosparql#lat
Y is a geo:long (longitude coordinate). % as in http://www.opengis.net/ont/geosparql#long
LATITUDE is a geo:lat (latitude coordinate). % as in http://www.opengis.net/ont/geosparql#lat
LONGITUDE is a geo:long (longitude coordinate). % as in http://www.opengis.net/ont/geosparql#long
OBJECTID is a geo:SpatialObject. % as in http://www.opengis.net/ont/geosparql#SpatialObject
ADDRESS is a locn:Address. % as in http://www.w3.org/ns/locn#Address
ADDRESS2 is a locn:addressArea. % as in http://www.w3.org/ns/locn#addressArea
CITY is a gn:populatedPlace. % as in http://www.geonames.org/ontology#populatedPlace
COUNTY is a gn:administrativeDivision. % as in http://www.geonames.org/ontology#administrativeDivision
STNAME is a gn:administrativeDivision. % as in http://www.geonames.org/ontology#administrativeDivision
STALP is a gn:countryCode. % as in http://www.geonames.org/ontology#countryCode
ZIP is a locn:postCode. % as in http://www.w3.org/ns/locn#postCode
%Financial/Business Mappings (FIBO):
BKCLASS is a fibo-be-le-lp:BusinessEntity. % as in https://spec.edmcouncil.org/fibo/ontology/BE/LegalEntities/LegalPersons/BusinessEntity
NAME is a fibo-fnd-org-fm:FormalOrganization. % as in https://spec.edmcouncil.org/fibo/ontology/FND/Organizations/FormalOrganizations/FormalOrganization
CERT is a fibo-fnd-arr-id:Identifier. % as in https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/IdentifiersAndIndices/Identifier
FI_UNINUM is a fibo-fnd-arr-id:Identifier. % as in https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/IdentifiersAndIndices/Identifier
UNINUM is a fibo-fnd-arr-id:Identifier. % as in https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/IdentifiersAndIndices/Identifier
OFFNAME is a fibo-be-le-fbo:Branch. % as in https://spec.edmcouncil.org/fibo/ontology/BE/LegalEntities/FormalBusinessOrganizations/Branch
OFFNUM is a fibo-fnd-arr-id:Identifier. % as in https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/IdentifiersAndIndices/Identifier
MAINOFF is a fibo-be-le-fbo:HeadOffice. % as in https://spec.edmcouncil.org/fibo/ontology/BE/LegalEntities/FormalBusinessOrganizations/HeadOffice
SERVTYPE is a fibo-fbc-fct-fse:FinancialService. % as in https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/FinancialServicesEntities/FinancialService
SERVTYPE_DESC is a fibo-fbc-fct-fse:FinancialServiceDescription. % as in https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/FinancialServicesEntities/FinancialServiceDescription
%Temporal Mappings (W3C Time Ontology):
ACQDATE is a time:Instant. % as in http://www.w3.org/2006/time#Instant
ESTYMD is a time:Instant. % as in http://www.w3.org/2006/time#Instant
RUNDATE is a time:Instant. % as in http://www.w3.org/2006/time#Instant
%Statistical/Administrative Mappings (SDMX, Dublin Core):
CBSA is a sdmx-concept:statisticalClassification. % as in http://purl.org/linked-data/sdmx/2009/concept#statisticalClassification
CBSA_DIV is a sdmx-concept:statisticalClassification. % as in http://purl.org/linked-data/sdmx/2009/concept#statisticalClassification
CSA is a sdmx-concept:statisticalClassification. % as in http://purl.org/linked-data/sdmx/2009/concept#statisticalClassification
STCNTY is a sdmx-concept:administrativeClassification. % as in http://purl.org/linked-data/sdmx/2009/concept#administrativeClassification
%General Data Mappings (DCAT, Dublin Core):
ID is a dct:identifier. % as in http://purl.org/dc/terms/identifier
CBSA_DIV_FLG is a dcat:Dataset. % as in http://www.w3.org/ns/dcat#Dataset
CBSA_METRO_FLG is a dcat:Dataset. % as in http://www.w3.org/ns/dcat#Dataset
CBSA_MICRO_FLG is a dcat:Dataset. % as in http://www.w3.org/ns/dcat#Dataset
CSA_FLG is a dcat:Dataset. % as in http://www.w3.org/ns/dcat#Dataset
MDI_STATUS_CODE is a skos:Concept. % as in http://www.w3.org/2004/02/skos/core#Concept
MDI_STATUS_DESC is a skos:prefLabel. % as in http://www.w3.org/2004/02/skos/core#prefLabel
%Demographic/Social Mappings (FOAF, Schema.org):
MDI_STATUS_CODE is a schema:demographicGroup. % as in http://schema.org/demographicGroup
MDI_STATUS_DESC is a schema:description. % as in http://schema.org/description
query thing is:
which thing is a which type.
query label is:
which label is a label for Institution Class.
query description is:
CBSA is a label for which description.
query dataset is:
the dataset ID is which one.
query about is:
the dataset FDIC Insured Banks is described at which text.
query download is:
the dataset FDIC Insured Banks can be downloaded from which url.
query provider is:
the provider of FDIC Insured Banks is which provider.
query platform is:
the platform of FDIC Insured Banks is which platform.
query method is:
the method of delivery of FDIC Insured Banks is which method.
query version is:
the product version of FDIC Insured Banks included here is which version.
").
% end of en(augmentedsem, ...
%6
en('cgt_assets', 'This example covers CGT assets as an improvement on 1_cgt_assets_and_exemptions_3', "the target language is: prolog.
the templates are:
*an asset* costed *an amount* to acquire.
*a thing* meets the definition of plant and equipment under Division 43 of the Income Tax Act.
*an asset* is used soley for taxable income generating purposes.
*an asset* is used purely for personal use purposes.
*an award* was secured for valour or brave conduct.
*an asset* was bought.
*an asset* was secured in exchange for *an other asset*.
*an asset* has been secured through a game or a competition.
*an asset* corresponds to compensation or damages.
*an asset* was received for an injury at *a place* of *a taxpayer*.
*an asset* was received for an injury at *a place* of *a taxpayer* s relative.
*an asset* was received under an Unlawful Termination Assistance Scheme.
*an asset* was received under an alternative Dispute Resolution Assistance Scheme.
*an asset* was received under an M4/M5 Cashback Scheme.
*an asset* was received under a scheme established under legislation by an Australian Government agency or a foreign government agency.
*an asset* was received under a scheme established under legislation by a local government body.
*an asset* was received under a scheme established under legislation by a foreign government agency.
*an asset* is an interest in *a fund*.
*a fund* has *a number* of members.
*an asset* is being transferred because of a relationship breakdown.
*an asset* was created in *an agreement*.
*an asset* was ended in *an agreement*.
*an asset* arose from the maturity of *a policy*.
*an instrument* is an annuity instrument for *an asset*.
*an asset* of *a taxpayer* is a CGT exempt asset.
*an asset* is for surrender of *a policy*.
*a taxpayer* is the original beneficial owner of *a policy*.
*an asset* is held in a pooled development fund.
*an asset* is held in certain venture capital entity.
*an asset* is held in an early stage venture capital limited partnership.
*an asset* was gifted through a will to a deductible gift recipient beneficiary.
*an asset* belongs to *a person*.
*a person* was a resident of Norfolk Island at *a date*.
*an asset* was acquired at *a date*.
*a thing* is a share or a unit or similar investments.
*a thing* is a rental property plant or equipment.
*an asset* is used for the purchase of items for personal consumption.
*an arrangement* for *an asset* is *a state*.
the ontology is:
% A CGT asset is:
% (a) any kind of property; or
% (b) a legal or equitable right that is not property.
a thing is a CGT asset
if the thing is a property
or the thing is a legal right
or the thing is an equitable right
and it is not the case that
the thing is a property.
% List of assets - List of CGT assets and exemptions - https://www.ato.gov.au/Individuals/Capital-gains-tax/List-of-cgt-assets-and-exemptions/
% Real estate assets
% Shares, units & similar investments
% Personal use assets
% Collectables assets
% Intangible assets
% Foreign currency assets
% Depreciating assets
% Award & payout assets
a thing is a property
if the thing is a real state asset
or the thing is a share or a unit or similar investments
or the thing is a personal use asset
or the thing is a collectable asset
or the thing is an intangible asset
or the thing is a foreign currency asset
or the thing is a depreciating asset
or the thing is an award or payout asset.
% Real estate assets list
% Main residence
% Granny flat
% Vacant land
% Business premises
% Rental properties
% Holiday houses