This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
master-toezicht-domain.lisp
202 lines (184 loc) · 10.5 KB
/
master-toezicht-domain.lisp
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
;; Association resource which should describe properties associated with the form to use
;; now only 'validity period' is specified, but could be extended with specific bestuursorgaan/eenheid/etc..
(define-resource inzending-voor-toezicht-form-version ()
:class (s-prefix "toezicht:InzendingVoorToezichtFormVersion")
:properties `((:start :date ,(s-prefix "toezicht:inzendingVoorToezichtFormVersionStart"))
(:end :date ,(s-prefix "toezicht:inzendingVoorToezichtFormVersionEnd"))
(:description :string ,(s-prefix "dct:description"))
)
:has-one `((form-node :via ,(s-prefix "toezicht:inzendingVoorToezichtFormVersionFormNode")
:as "form-node"))
:resource-base (s-url "http://data.lblod.info/inzending-voor-toezicht-form-version/")
:features `(include-uri)
:on-path "inzending-voor-toezicht-form-versions")
(define-resource inzending-voor-toezicht ()
:class (s-prefix "toezicht:InzendingVoorToezicht") ;; subclass of nie:InformationElement > nfo:DataContainer
:properties `((:created :datetime ,(s-prefix "dct:created"))
(:modified :datetime ,(s-prefix "dct:modified"))
(:sent-date :datetime ,(s-prefix "nmo:sentDate"))
(:received-date :datetime ,(s-prefix "nmo:receivedDate"))
(:description :string ,(s-prefix "dct:description"))
(:remark :string ,(s-prefix "ext:remark"))
(:temporal-coverage :string ,(s-prefix "toezicht:temporalCoverage"))
(:business-identifier :string ,(s-prefix "toezicht:businessIdentifier"))
(:business-name :string ,(s-prefix "toezicht:businessName"))
(:date-of-entry-into-force :date ,(s-prefix "toezicht:dateOfEntryIntoForce"))
(:end-date :date ,(s-prefix "toezicht:endDate"))
(:has-extra-tax-rates :boolean ,(s-prefix "toezicht:hasExtraTaxRates"))
(:agenda-item-count :integer ,(s-prefix "toezicht:agendaItemCount"))
(:session-date :datetime ,(s-prefix "toezicht:sessionDate"))
(:decision-date-other-administration :date ,(s-prefix "toezicht:decisionDateOtherAdministration"))
(:decision-summary :string ,(s-prefix "toezicht:decisionSummary"))
(:date-handover :date ,(s-prefix "toezicht:dateHandover"))
(:text :string ,(s-prefix "toezicht:text"))
(:date-publication-webapp :date ,(s-prefix "toezicht:datePublicationWebapp"))
)
:has-one `((document-status :via ,(s-prefix "adms:status")
:as "status")
(gebruiker :via ,(s-prefix "ext:lastModifiedBy")
:as "last-modifier")
(bestuurseenheid :via ,(s-prefix "dct:subject")
:as "bestuurseenheid")
(form-solution :via ,(s-prefix "ext:hasInzendingVoorToezicht")
:inverse t
:as "form-solution")
(toezicht-inzending-type :via ,(s-prefix "dct:type")
:as "inzending-type")
(besluit-type :via ,(s-prefix "toezicht:decisionType")
:as "besluit-type")
(toezicht-regulation-type :via ,(s-prefix "toezicht:regulationType")
:as "regulation-type")
(bestuursorgaan :via ,(s-prefix "toezicht:decidedBy")
:as "bestuursorgaan")
(toezicht-document-authenticity-type :via ,(s-prefix "toezicht:authenticityType")
:as "authenticity-type")
(toezicht-account-acceptance-status :via ,(s-prefix "toezicht:accountAcceptanceStatus")
:as "account-acceptance-status")
(toezicht-delivery-report-type :via ,(s-prefix "toezicht:deliveryReportType")
:as "delivery-report-type")
(toezicht-fiscal-period :via ,(s-prefix "toezicht:fiscalPeriod")
:as "fiscal-period")
(toezicht-nomenclature :via ,(s-prefix "toezicht:nomenclature")
:as "nomenclature")
(toezicht-tax-type :via ,(s-prefix "toezicht:taxType")
:as "tax-type")
(inzending-voor-toezicht-melding :via ,(s-prefix "dct:subject")
:inverse t
:as "melding")
)
:has-many `((file :via ,(s-prefix "nie:hasPart")
:as "files")
(tax-rate :via ,(s-prefix "toezicht:taxRate")
:as "tax-rates")
(simplified-tax-rate :via ,(s-prefix "toezicht:simplifiedTaxRate")
:as "simplified-tax-rates")
(file-address :via ,(s-prefix "toezicht:fileAddress") :as "file-addresses")
)
:resource-base (s-url "http://data.lblod.info/inzendingen-voor-toezicht/")
:features `(no-pagination-defaults include-uri)
:on-path "inzendingen-voor-toezicht")
(define-resource toezicht-tax-type ()
:class (s-prefix "toezicht:TaxType")
:properties `(
(:label :string ,(s-prefix "skos:prefLabel"))
(:active :boolean ,(s-prefix "ext:isActiveToezichtCodeListEntry"))
)
:resource-base (s-url "http://data.lblod.info/toezicht-tax-types")
:features `(include-uri)
:on-path "toezicht-tax-types")
(define-resource toezicht-nomenclature ()
:class (s-prefix "toezicht:Nomenclature")
:properties `((:label :string ,(s-prefix "skos:prefLabel"))
(:code :string ,(s-prefix "toezicht:nomenclatureCode")))
:resource-base (s-url "http://data.lblod.info/toezicht-nomenclatures")
:features `(include-uri)
:on-path "toezicht-nomenclatures")
(define-resource toezicht-fiscal-period ()
:class (s-prefix "toezicht:FiscalPeriod")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:resource-base (s-url "http://data.lblod.info/toezicht-fiscal-periods")
:features `(include-uri)
:on-path "toezicht-fiscal-periods")
(define-resource toezicht-delivery-report-type ()
:class (s-prefix "toezicht:DeliveryReportType")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:resource-base (s-url "http://data.lblod.info/toezicht-delivery-report-types")
:features `(include-uri)
:on-path "toezicht-delivery-report-types")
(define-resource toezicht-account-acceptance-status ()
:class (s-prefix "toezicht:AccountAcceptanceStatus")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:resource-base (s-url "http://data.lblod.info/toezicht-account-acceptance-statuses")
:features `(include-uri)
:on-path "toezicht-account-acceptance-statuses")
(define-resource toezicht-document-authenticity-type ()
:class (s-prefix "toezicht:DocumentAuthenticityType")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:resource-base (s-url "http://data.lblod.info/toezicht-document-authenticity-types")
:features `(include-uri)
:on-path "toezicht-document-authenticity-types")
(define-resource toezicht-inzending-type ()
:class (s-prefix "toezicht:InzendingType")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:resource-base (s-url "http://data.lblod.info/toezicht-inzending-types")
:features `(include-uri)
:on-path "toezicht-inzending-types")
(define-resource besluit-type ()
:class (s-prefix "toezicht:DecisionType")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:has-many `((bestuurseenheid-classificatie-code :via ,(s-prefix "ext:decidableBy")
:as "decidable-by")
(inzending-voor-toezicht-form-version :via ,(s-prefix "toezicht:formVersionScope")
:as "form-version"))
:resource-base (s-url "http://data.lblod.info/besluit-types")
:features `(include-uri)
:on-path "besluit-types")
(define-resource toezicht-regulation-type ()
:class (s-prefix "toezicht:RegulationType")
:properties `((:label :string ,(s-prefix "skos:prefLabel"))
(:position :number ,(s-prefix "schema:position")))
:resource-base (s-url "http://data.lblod.info/toezicht-regulation-types")
:features `(include-uri)
:on-path "toezicht-regulation-types")
(define-resource tax-rate ()
:class (s-prefix "toezicht:TaxRate")
:properties `((:amount :float ,(s-prefix "toezicht:amoount"))
(:unit :string ,(s-prefix "toezicht:unit"))
(:base :string ,(s-prefix "toezicht:base"))
(:remark :string ,(s-prefix "ext:remark")))
:resource-base (s-url "http://data.lblod.info/tax-rates")
:features `(include-uri)
:on-path "tax-rates")
(define-resource simplified-tax-rate ()
:class (s-prefix "toezicht:SimplifiedTaxRate")
:properties `((:amount :string ,(s-prefix "toezicht:amoount")))
:resource-base (s-url "http://data.lblod.info/simplified-tax-rates")
:features `(include-uri)
:on-path "simplified-tax-rates")
(define-resource form-solution ()
:class (s-prefix "ext:FormSolution")
:properties `((:has-owner :string ,(s-prefix "ext:hasOwnerAsString")))
:has-one `((form-node :via ,(s-prefix "ext:hasForm")
:as "form-node")
(inzending-voor-toezicht :via ,(s-prefix "ext:hasInzendingVoorToezicht")
:as "inzending-voor-toezicht"))
:resource-base (s-url "http://data.lblod.info/form-solutions/")
:on-path "form-solutions")
(define-resource inzending-voor-toezicht-melding ()
:class (s-prefix "toezicht:InzendingVoorToezichtMelding")
:properties `((:description :string ,(s-prefix "dct:description")))
:has-one `((melding-status :via ,(s-prefix "adms:status")
:as "status")
(inzending-voor-toezicht :via ,(s-prefix "dct:subject")
:as "inzending-voor-toezicht"))
:resource-base (s-url "http://data.lblod.info/inzending-voor-toezicht-meldingen/")
:on-path "inzending-voor-toezicht-meldingen")
(define-resource melding-status ()
:class (s-prefix "toezicht:MeldingStatus")
:properties `((:label :string ,(s-prefix "skos:prefLabel")))
:has-many `((inzending-voor-toezicht-melding :via ,(s-prefix "adms:status")
:inverse t
:as "meldingen"))
:resource-base (s-url "http://data.lblod.info/melding-statuses/")
:features `(no-pagination-defaults include-uri)
:on-path "melding-statuses")