forked from lblod/domain-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master-publicatie-gn-domain.lisp
190 lines (178 loc) · 9.52 KB
/
master-publicatie-gn-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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLICATIE GN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; this is a shared domain file, maintained in https://github.com/lblod/domain-files
(define-resource versioned-agenda ()
:class (s-prefix "ext:VersionedAgenda")
:properties `((:state :string ,(s-prefix "ext:stateString"))
(:content :string ,(s-prefix "ext:content"))
(:kind :string ,(s-prefix "ext:agendaKind")))
:has-many `((signed-resource :via ,(s-prefix "ext:signsAgenda")
:inverse t
:as "signed-resources"))
:has-one `((published-resource :via ,(s-prefix "ext:publishesAgenda")
:inverse t
:as "published-resource")
(editor-document :via ,(s-prefix "prov:wasDerivedFrom")
:as "editor-document")
(document-container :via ,(s-prefix "ext:hasVersionedAgenda")
:inverse t
:as "document-container"))
:resource-base (s-url "http://data.lblod.info/prepublished-agendas/")
:features '(include-uri)
:on-path "versioned-agendas")
(define-resource versioned-besluiten-lijst ()
:class (s-prefix "ext:VersionedBesluitenLijst")
:properties `((:state :string ,(s-prefix "ext:stateString"))
(:content :string ,(s-prefix "ext:content")))
:has-many `((signed-resource :via ,(s-prefix "ext:signsBesluitenlijst")
:inverse t
:as "signed-resources"))
:has-one `((published-resource :via ,(s-prefix "ext:publishesBesluitenlijst")
:inverse t
:as "published-resource")
(editor-document :via ,(s-prefix "prov:wasDerivedFrom")
:as "editor-document")
(document-container :via ,(s-prefix "ext:hasVersionedBesluitenLijst")
:inverse t
:as "document-container"))
:resource-base (s-url "http://data.lblod.info/prepublished-besluiten-lijsten/")
:features '(include-uri)
:on-path "versioned-besluiten-lijsten")
(define-resource versioned-notulen ()
:class (s-prefix "ext:VersionedNotulen")
:properties `((:state :string ,(s-prefix "ext:stateString"))
(:content :string ,(s-prefix "ext:content"))
(:public-content :string ,(s-prefix "ext:publicContent"))
(:public-behandelingen :uri-set ,(s-prefix "ext:publicBehandeling"))
(:kind :string ,(s-prefix "ext:notulenKind")))
:has-many `((signed-resource :via ,(s-prefix "ext:signsNotulen")
:inverse t
:as "signed-resources"))
:has-one `((published-resource :via ,(s-prefix "ext:publishesNotulen")
:inverse t
:as "published-resource")
(editor-document :via ,(s-prefix "prov:wasDerivedFrom")
:as "editor-document")
(document-container :via ,(s-prefix "ext:hasVersionedNotulen")
:inverse t
:as "document-container"))
:resource-base (s-url "http://data.lblod.info/prepublished-notulen/")
:features '(include-uri)
:on-path "versioned-notulen")
(define-resource versioned-behandeling ()
:class (s-prefix "ext:VersionedBehandeling")
:properties `((:state :string ,(s-prefix "ext:stateString"))
(:content :string ,(s-prefix "ext:content")))
:has-many `((signed-resource :via ,(s-prefix "ext:signsBehandeling")
:inverse t
:as "signed-resources"))
:has-one `((published-resource :via ,(s-prefix "ext:publishesBehandeling")
:inverse t
:as "published-resource")
(editor-document :via ,(s-prefix "prov:wasDerivedFrom")
:as "editor-document")
(document-container :via ,(s-prefix "ext:hasVersionedBehandeling")
:inverse t
:as "document-container")
(behandeling-van-agendapunt :via ,(s-prefix "ext:behandeling")
:as "behandeling"))
:resource-base (s-url "http://data.lblod.info/prepublished-behandeling/")
:features '(include-uri)
:on-path "versioned-behandelingen")
(define-resource signed-resource ()
:class (s-prefix "sign:SignedResource")
:properties `((:content :string ,(s-prefix "sign:text"))
(:hash-value :string ,(s-prefix "sign:hashValue"))
(:created-on :datetime ,(s-prefix "dct:created")))
:has-one `((blockchain-status :via ,(s-prefix "sign:status")
:as "status")
(versioned-agenda :via ,(s-prefix "ext:signsAgenda")
:as "versioned-agenda")
(versioned-besluiten-lijst :via ,(s-prefix "ext:signsBesluitenlijst")
:as "versioned-besluiten-lijst")
(versioned-notulen :via ,(s-prefix "ext:signsNotulen")
:as "versioned-notulen")
(versioned-behandeling :via ,(s-prefix "ext:signsBehandeling")
:as "versioned-behandeling")
(gebruiker :via ,(s-prefix "sign:signatory")
:as "gebruiker"))
:resource-base (s-url "http://data.lblod.info/signed-resources/")
:features '(include-uri)
:on-path "signed-resources")
(define-resource published-resource ()
:class (s-prefix "sign:PublishedResource")
:properties `((:content :string ,(s-prefix "sign:text"))
(:hash-value :string ,(s-prefix "sign:hashValue"))
(:created-on :datetime ,(s-prefix "dct:created")))
:has-one `((blockchain-status :via ,(s-prefix "sign:status")
:as "status")
(versioned-agenda :via ,(s-prefix "ext:publishesAgenda")
:as "versioned-agenda")
(versioned-besluiten-lijst :via ,(s-prefix "ext:publishesBesluitenlijst")
:as "versioned-besluiten-lijst")
(versioned-behandeling :via ,(s-prefix "ext:publishesBehandeling")
:as "versioned-behandeling")
(versioned-notulen :via ,(s-prefix "ext:publiseshNotulen")
:as "versioned-notulen")
(gebruiker :via ,(s-prefix "sign:signatory")
:as "gebruiker"))
:resource-base (s-url "http://data.lblod.info/published-resources/")
:features '(include-uri)
:on-path "published-resources")
(define-resource blockchain-status ()
:class (s-prefix "sign:BlockchainStatus")
:properties `((:title :string ,(s-prefix "dct:title"))
(:description :string ,(s-prefix "dct:description")))
:resource-base (s-url "http://data.lblod.info/blockchain-statuses/")
:features '(include-uri)
:on-path "blockchain-statuses")
(define-resource notulen ()
:class (s-prefix "ext:Notulen")
:properties `((:inhoud :string ,(s-prefix "prov:value")))
:has-one `((zitting :via ,(s-prefix "besluit:heeftNotulen")
:inverse t
:as "zitting"))
:has-many `((published-resource :via ,(s-prefix "prov:wasDerivedFrom")
:as "publications"))
:resource-base (s-url "http://data.lblod.info/id/notulen/")
:features '(include-uri)
:on-path "notulen")
(define-resource agenda ()
:class (s-prefix "ext:Agenda")
:properties `((:inhoud :string ,(s-prefix "prov:value")))
:has-one `((published-resource :via ,(s-prefix "prov:wasDerivedFrom")
:as "publication")
(zitting :via ,(s-prefix "ext:agenda")
:inverse t
:as "zitting"))
:has-many `((agendapunt :via ,(s-prefix "ext:agendaAgendapunt")
:as "agendapunten"))
:resource-base (s-url "http://data.lblod.info/id/agendas/")
:features '(include-uri)
:on-path "agendas")
(define-resource uittreksel ()
:class (s-prefix "ext:Uittreksel")
:properties `((:inhoud :string ,(s-prefix "prov:value")))
:has-one `((published-resource :via ,(s-prefix "prov:wasDerivedFrom")
:as "publication")
(behandeling-van-agendapunt :via ,(s-prefix "ext:uittrekselBvap")
:as "behandeling-van-agendapunt")
(zitting :via ,(s-prefix "ext:uittreksel")
:inverse t
:as "zitting"))
:resource-base (s-url "http://data.lblod.info/id/uittreksels/")
:features '(include-uri)
:on-path "uittreksels")
(define-resource besluitenlijst ()
:class (s-prefix "ext:Besluitenlijst")
:properties `((:inhoud :string ,(s-prefix "prov:value"))
(:publicatiedatum :date ,(s-prefix "eli:date_publication")))
:has-one `((published-resource :via ,(s-prefix "prov:wasDerivedFrom")
:as "publication")
(zitting :via ,(s-prefix "ext:besluitenlijst")
:inverse t
:as "zitting"))
:has-many `((besluit :via ,(s-prefix "ext:besluitenlijstBesluit")
:as "besluiten"))
:resource-base (s-url "http://data.lblod.info/id/besluitenlijsten/")
:features '(include-uri)
:on-path "besluitenlijsten")