Showing
4 changed files
with
1407 additions
and
1287 deletions
... | @@ -17,65 +17,39 @@ | ... | @@ -17,65 +17,39 @@ |
17 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 17 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
18 | spin:rule | 18 | spin:rule |
19 | [ rdf:type sp:Construct ; | 19 | [ rdf:type sp:Construct ; |
20 | - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | 20 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" |
21 | Nothing is done with the namingSystem!"""^^xsd:string ; | 21 | Nothing is done with the namingSystem!"""^^xsd:string ; |
22 | sp:templates ([ sp:object spin:_this ; | 22 | sp:templates ([ sp:object spin:_this ; |
23 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 23 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
24 | sp:subject | 24 | sp:subject |
25 | - [ sp:varName "tuf"^^xsd:string | 25 | + [ sp:varName "well"^^xsd:string |
26 | ] | 26 | ] |
27 | ] [ sp:object | 27 | ] [ sp:object |
28 | - [ sp:varName "tufName"^^xsd:string | 28 | + [ sp:varName "wellName"^^xsd:string |
29 | ] ; | 29 | ] ; |
30 | sp:predicate rdfs:label ; | 30 | sp:predicate rdfs:label ; |
31 | sp:subject spin:_this | 31 | sp:subject spin:_this |
32 | ]) ; | 32 | ]) ; |
33 | - sp:where ([ rdf:type sp:Union ; | 33 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; |
34 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 34 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
35 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 35 | + sp:subject spin:_this |
36 | - sp:subject spin:_this | ||
37 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
38 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
39 | - sp:subject spin:_this | ||
40 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
41 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
42 | - sp:subject spin:_this | ||
43 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
44 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
45 | - sp:subject spin:_this | ||
46 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
47 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
48 | - sp:subject spin:_this | ||
49 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
50 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
51 | - sp:subject spin:_this | ||
52 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
53 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
54 | - sp:subject spin:_this | ||
55 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
56 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
57 | - sp:subject spin:_this | ||
58 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
59 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
60 | - sp:subject spin:_this | ||
61 | - ])) | ||
62 | ] [ sp:object | 36 | ] [ sp:object |
63 | - [ sp:varName "tufName"^^xsd:string | 37 | + [ sp:varName "wellName"^^xsd:string |
64 | ] ; | 38 | ] ; |
65 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 39 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
66 | sp:subject spin:_this | 40 | sp:subject spin:_this |
67 | ] [ rdf:type sp:NamedGraph ; | 41 | ] [ rdf:type sp:NamedGraph ; |
68 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | 42 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; |
69 | sp:predicate rdf:type ; | 43 | sp:predicate rdf:type ; |
70 | sp:subject | 44 | sp:subject |
71 | - [ sp:varName "tuf"^^xsd:string | 45 | + [ sp:varName "well"^^xsd:string |
72 | ] | 46 | ] |
73 | ] [ sp:object | 47 | ] [ sp:object |
74 | - [ sp:varName "tufName"^^xsd:string | 48 | + [ sp:varName "wellName"^^xsd:string |
75 | ] ; | 49 | ] ; |
76 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 50 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
77 | sp:subject | 51 | sp:subject |
78 | - [ sp:varName "tuf"^^xsd:string | 52 | + [ sp:varName "well"^^xsd:string |
79 | ] | 53 | ] |
80 | ]) ; | 54 | ]) ; |
81 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 55 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -123,6 +97,46 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -123,6 +97,46 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
123 | ] ; | 97 | ] ; |
124 | spin:rule | 98 | spin:rule |
125 | [ rdf:type sp:Construct ; | 99 | [ rdf:type sp:Construct ; |
100 | + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | ||
101 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
102 | + sp:templates ([ sp:object spin:_this ; | ||
103 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
104 | + sp:subject | ||
105 | + [ sp:varName "platform"^^xsd:string | ||
106 | + ] | ||
107 | + ] [ sp:object | ||
108 | + [ sp:varName "platformName"^^xsd:string | ||
109 | + ] ; | ||
110 | + sp:predicate rdfs:label ; | ||
111 | + sp:subject spin:_this | ||
112 | + ]) ; | ||
113 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
114 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
115 | + sp:subject spin:_this | ||
116 | + ] [ sp:object | ||
117 | + [ sp:varName "platformName"^^xsd:string | ||
118 | + ] ; | ||
119 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
120 | + sp:subject spin:_this | ||
121 | + ] [ rdf:type sp:NamedGraph ; | ||
122 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | ||
123 | + sp:predicate rdf:type ; | ||
124 | + sp:subject | ||
125 | + [ sp:varName "platform"^^xsd:string | ||
126 | + ] | ||
127 | + ] [ sp:object | ||
128 | + [ sp:varName "platformName"^^xsd:string | ||
129 | + ] ; | ||
130 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
131 | + sp:subject | ||
132 | + [ sp:varName "platform"^^xsd:string | ||
133 | + ] | ||
134 | + ]) ; | ||
135 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
136 | + ]) | ||
137 | + ] ; | ||
138 | + spin:rule | ||
139 | + [ rdf:type sp:Construct ; | ||
126 | rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | 140 | rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany |
127 | Nothing is done with the namingSystem!"""^^xsd:string ; | 141 | Nothing is done with the namingSystem!"""^^xsd:string ; |
128 | sp:templates ([ sp:object spin:_this ; | 142 | sp:templates ([ sp:object spin:_this ; |
... | @@ -168,39 +182,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -168,39 +182,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
168 | ] ; | 182 | ] ; |
169 | spin:rule | 183 | spin:rule |
170 | [ rdf:type sp:Construct ; | 184 | [ rdf:type sp:Construct ; |
171 | - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | 185 | + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\" |
172 | Nothing is done with the namingSystem!"""^^xsd:string ; | 186 | Nothing is done with the namingSystem!"""^^xsd:string ; |
173 | sp:templates ([ sp:object spin:_this ; | 187 | sp:templates ([ sp:object spin:_this ; |
174 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 188 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
175 | sp:subject | 189 | sp:subject |
176 | - [ sp:varName "well"^^xsd:string | 190 | + [ sp:varName "licence"^^xsd:string |
177 | ] | 191 | ] |
178 | ] [ sp:object | 192 | ] [ sp:object |
179 | - [ sp:varName "wellName"^^xsd:string | 193 | + [ sp:varName "licenceName"^^xsd:string |
180 | ] ; | 194 | ] ; |
181 | sp:predicate rdfs:label ; | 195 | sp:predicate rdfs:label ; |
182 | sp:subject spin:_this | 196 | sp:subject spin:_this |
183 | ]) ; | 197 | ]) ; |
184 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | 198 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; |
185 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 199 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
186 | sp:subject spin:_this | 200 | sp:subject spin:_this |
187 | ] [ sp:object | 201 | ] [ sp:object |
188 | - [ sp:varName "wellName"^^xsd:string | 202 | + [ sp:varName "licenceName"^^xsd:string |
189 | ] ; | 203 | ] ; |
190 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 204 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
191 | sp:subject spin:_this | 205 | sp:subject spin:_this |
192 | ] [ rdf:type sp:NamedGraph ; | 206 | ] [ rdf:type sp:NamedGraph ; |
193 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 207 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; |
194 | sp:predicate rdf:type ; | 208 | sp:predicate rdf:type ; |
195 | sp:subject | 209 | sp:subject |
196 | - [ sp:varName "well"^^xsd:string | 210 | + [ sp:varName "licence"^^xsd:string |
197 | ] | 211 | ] |
198 | ] [ sp:object | 212 | ] [ sp:object |
199 | - [ sp:varName "wellName"^^xsd:string | 213 | + [ sp:varName "licenceName"^^xsd:string |
200 | ] ; | 214 | ] ; |
201 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 215 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
202 | sp:subject | 216 | sp:subject |
203 | - [ sp:varName "well"^^xsd:string | 217 | + [ sp:varName "licence"^^xsd:string |
204 | ] | 218 | ] |
205 | ]) ; | 219 | ]) ; |
206 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 220 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -208,39 +222,150 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -208,39 +222,150 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
208 | ] ; | 222 | ] ; |
209 | spin:rule | 223 | spin:rule |
210 | [ rdf:type sp:Construct ; | 224 | [ rdf:type sp:Construct ; |
211 | - rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\" | 225 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility |
212 | Nothing is done with the namingSystem!"""^^xsd:string ; | 226 | Nothing is done with the namingSystem!"""^^xsd:string ; |
213 | sp:templates ([ sp:object spin:_this ; | 227 | sp:templates ([ sp:object spin:_this ; |
214 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 228 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
215 | sp:subject | 229 | sp:subject |
216 | - [ sp:varName "licence"^^xsd:string | 230 | + [ sp:varName "platform"^^xsd:string |
217 | ] | 231 | ] |
218 | ] [ sp:object | 232 | ] [ sp:object |
219 | - [ sp:varName "licenceName"^^xsd:string | 233 | + [ sp:varName "platformName"^^xsd:string |
220 | ] ; | 234 | ] ; |
221 | sp:predicate rdfs:label ; | 235 | sp:predicate rdfs:label ; |
222 | sp:subject spin:_this | 236 | sp:subject spin:_this |
223 | ]) ; | 237 | ]) ; |
224 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; | 238 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
225 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 239 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
226 | sp:subject spin:_this | 240 | sp:subject spin:_this |
227 | ] [ sp:object | 241 | ] [ sp:object |
228 | - [ sp:varName "licenceName"^^xsd:string | 242 | + [ sp:varName "platformName"^^xsd:string |
229 | ] ; | 243 | ] ; |
230 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 244 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
231 | sp:subject spin:_this | 245 | sp:subject spin:_this |
232 | ] [ rdf:type sp:NamedGraph ; | 246 | ] [ rdf:type sp:NamedGraph ; |
233 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; | 247 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; |
234 | sp:predicate rdf:type ; | 248 | sp:predicate rdf:type ; |
235 | sp:subject | 249 | sp:subject |
236 | - [ sp:varName "licence"^^xsd:string | 250 | + [ sp:varName "platform"^^xsd:string |
237 | ] | 251 | ] |
238 | ] [ sp:object | 252 | ] [ sp:object |
239 | - [ sp:varName "licenceName"^^xsd:string | 253 | + [ sp:varName "platformName"^^xsd:string |
240 | ] ; | 254 | ] ; |
241 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 255 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
242 | sp:subject | 256 | sp:subject |
243 | - [ sp:varName "licence"^^xsd:string | 257 | + [ sp:varName "platform"^^xsd:string |
258 | + ] | ||
259 | + ]) ; | ||
260 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
261 | + ]) | ||
262 | + ] ; | ||
263 | + spin:rule | ||
264 | + [ rdf:type sp:Construct ; | ||
265 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | ||
266 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
267 | + sp:templates ([ sp:object spin:_this ; | ||
268 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
269 | + sp:subject | ||
270 | + [ sp:varName "tuf"^^xsd:string | ||
271 | + ] | ||
272 | + ] [ sp:object | ||
273 | + [ sp:varName "tufName"^^xsd:string | ||
274 | + ] ; | ||
275 | + sp:predicate rdfs:label ; | ||
276 | + sp:subject spin:_this | ||
277 | + ]) ; | ||
278 | + sp:where ([ rdf:type sp:Union ; | ||
279 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
280 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
281 | + sp:subject spin:_this | ||
282 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
283 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
284 | + sp:subject spin:_this | ||
285 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
286 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
287 | + sp:subject spin:_this | ||
288 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
289 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
290 | + sp:subject spin:_this | ||
291 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
292 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
293 | + sp:subject spin:_this | ||
294 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
295 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
296 | + sp:subject spin:_this | ||
297 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
298 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
299 | + sp:subject spin:_this | ||
300 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
301 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
302 | + sp:subject spin:_this | ||
303 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
304 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
305 | + sp:subject spin:_this | ||
306 | + ])) | ||
307 | + ] [ sp:object | ||
308 | + [ sp:varName "tufName"^^xsd:string | ||
309 | + ] ; | ||
310 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
311 | + sp:subject spin:_this | ||
312 | + ] [ rdf:type sp:NamedGraph ; | ||
313 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | ||
314 | + sp:predicate rdf:type ; | ||
315 | + sp:subject | ||
316 | + [ sp:varName "tuf"^^xsd:string | ||
317 | + ] | ||
318 | + ] [ sp:object | ||
319 | + [ sp:varName "tufName"^^xsd:string | ||
320 | + ] ; | ||
321 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
322 | + sp:subject | ||
323 | + [ sp:varName "tuf"^^xsd:string | ||
324 | + ] | ||
325 | + ]) ; | ||
326 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
327 | + ]) | ||
328 | + ] ; | ||
329 | + spin:rule | ||
330 | + [ rdf:type sp:Construct ; | ||
331 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | ||
332 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
333 | + sp:templates ([ sp:object spin:_this ; | ||
334 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
335 | + sp:subject | ||
336 | + [ sp:varName "company"^^xsd:string | ||
337 | + ] | ||
338 | + ] [ sp:object | ||
339 | + [ sp:varName "companyName"^^xsd:string | ||
340 | + ] ; | ||
341 | + sp:predicate rdfs:label ; | ||
342 | + sp:subject spin:_this | ||
343 | + ]) ; | ||
344 | + sp:where ([ rdf:type sp:Union ; | ||
345 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
346 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
347 | + sp:subject spin:_this | ||
348 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
349 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
350 | + sp:subject spin:_this | ||
351 | + ])) | ||
352 | + ] [ sp:object | ||
353 | + [ sp:varName "companyName"^^xsd:string | ||
354 | + ] ; | ||
355 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
356 | + sp:subject spin:_this | ||
357 | + ] [ rdf:type sp:NamedGraph ; | ||
358 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | ||
359 | + sp:predicate rdf:type ; | ||
360 | + sp:subject | ||
361 | + [ sp:varName "company"^^xsd:string | ||
362 | + ] | ||
363 | + ] [ sp:object | ||
364 | + [ sp:varName "companyName"^^xsd:string | ||
365 | + ] ; | ||
366 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
367 | + sp:subject | ||
368 | + [ sp:varName "company"^^xsd:string | ||
244 | ] | 369 | ] |
245 | ]) ; | 370 | ]) ; |
246 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | 371 | sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
... | @@ -261,7 +386,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -261,7 +386,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
261 | ] [ sp:object | 386 | ] [ sp:object |
262 | [ sp:varName "facilityName"^^xsd:string | 387 | [ sp:varName "facilityName"^^xsd:string |
263 | ] ; | 388 | ] ; |
264 | - sp:predicate rdfs:label ; | 389 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
265 | sp:subject _:b1 | 390 | sp:subject _:b1 |
266 | ] [ sp:object spin:_this ; | 391 | ] [ sp:object spin:_this ; |
267 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 392 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -363,131 +488,6 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -363,131 +488,6 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
363 | ] ; | 488 | ] ; |
364 | spin:rule | 489 | spin:rule |
365 | [ rdf:type sp:Construct ; | 490 | [ rdf:type sp:Construct ; |
366 | - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | ||
367 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
368 | - sp:templates ([ sp:object spin:_this ; | ||
369 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
370 | - sp:subject | ||
371 | - [ sp:varName "platform"^^xsd:string | ||
372 | - ] | ||
373 | - ] [ sp:object | ||
374 | - [ sp:varName "platformName"^^xsd:string | ||
375 | - ] ; | ||
376 | - sp:predicate rdfs:label ; | ||
377 | - sp:subject spin:_this | ||
378 | - ]) ; | ||
379 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
380 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
381 | - sp:subject spin:_this | ||
382 | - ] [ sp:object | ||
383 | - [ sp:varName "platformName"^^xsd:string | ||
384 | - ] ; | ||
385 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
386 | - sp:subject spin:_this | ||
387 | - ] [ rdf:type sp:NamedGraph ; | ||
388 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | ||
389 | - sp:predicate rdf:type ; | ||
390 | - sp:subject | ||
391 | - [ sp:varName "platform"^^xsd:string | ||
392 | - ] | ||
393 | - ] [ sp:object | ||
394 | - [ sp:varName "platformName"^^xsd:string | ||
395 | - ] ; | ||
396 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
397 | - sp:subject | ||
398 | - [ sp:varName "platform"^^xsd:string | ||
399 | - ] | ||
400 | - ]) ; | ||
401 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
402 | - ]) | ||
403 | - ] ; | ||
404 | - spin:rule | ||
405 | - [ rdf:type sp:Construct ; | ||
406 | - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | ||
407 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
408 | - sp:templates ([ sp:object spin:_this ; | ||
409 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
410 | - sp:subject | ||
411 | - [ sp:varName "platform"^^xsd:string | ||
412 | - ] | ||
413 | - ] [ sp:object | ||
414 | - [ sp:varName "platformName"^^xsd:string | ||
415 | - ] ; | ||
416 | - sp:predicate rdfs:label ; | ||
417 | - sp:subject spin:_this | ||
418 | - ]) ; | ||
419 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
420 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
421 | - sp:subject spin:_this | ||
422 | - ] [ sp:object | ||
423 | - [ sp:varName "platformName"^^xsd:string | ||
424 | - ] ; | ||
425 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
426 | - sp:subject spin:_this | ||
427 | - ] [ rdf:type sp:NamedGraph ; | ||
428 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | ||
429 | - sp:predicate rdf:type ; | ||
430 | - sp:subject | ||
431 | - [ sp:varName "platform"^^xsd:string | ||
432 | - ] | ||
433 | - ] [ sp:object | ||
434 | - [ sp:varName "platformName"^^xsd:string | ||
435 | - ] ; | ||
436 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
437 | - sp:subject | ||
438 | - [ sp:varName "platform"^^xsd:string | ||
439 | - ] | ||
440 | - ]) ; | ||
441 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
442 | - ]) | ||
443 | - ] ; | ||
444 | - spin:rule | ||
445 | - [ rdf:type sp:Construct ; | ||
446 | - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | ||
447 | -Nothing is done with the namingSystem!"""^^xsd:string ; | ||
448 | - sp:templates ([ sp:object spin:_this ; | ||
449 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
450 | - sp:subject | ||
451 | - [ sp:varName "company"^^xsd:string | ||
452 | - ] | ||
453 | - ] [ sp:object | ||
454 | - [ sp:varName "companyName"^^xsd:string | ||
455 | - ] ; | ||
456 | - sp:predicate rdfs:label ; | ||
457 | - sp:subject spin:_this | ||
458 | - ]) ; | ||
459 | - sp:where ([ rdf:type sp:Union ; | ||
460 | - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
461 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
462 | - sp:subject spin:_this | ||
463 | - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
464 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
465 | - sp:subject spin:_this | ||
466 | - ])) | ||
467 | - ] [ sp:object | ||
468 | - [ sp:varName "companyName"^^xsd:string | ||
469 | - ] ; | ||
470 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
471 | - sp:subject spin:_this | ||
472 | - ] [ rdf:type sp:NamedGraph ; | ||
473 | - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | ||
474 | - sp:predicate rdf:type ; | ||
475 | - sp:subject | ||
476 | - [ sp:varName "company"^^xsd:string | ||
477 | - ] | ||
478 | - ] [ sp:object | ||
479 | - [ sp:varName "companyName"^^xsd:string | ||
480 | - ] ; | ||
481 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
482 | - sp:subject | ||
483 | - [ sp:varName "company"^^xsd:string | ||
484 | - ] | ||
485 | - ]) ; | ||
486 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
487 | - ]) | ||
488 | - ] ; | ||
489 | - spin:rule | ||
490 | - [ rdf:type sp:Construct ; | ||
491 | rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. | 491 | rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. |
492 | Nothing is done with the namingSystem!"""^^xsd:string ; | 492 | Nothing is done with the namingSystem!"""^^xsd:string ; |
493 | sp:templates ([ sp:object spin:_this ; | 493 | sp:templates ([ sp:object spin:_this ; |
... | @@ -540,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -540,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
540 | 540 | ||
541 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> | 541 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> |
542 | rdf:type owl:Ontology ; | 542 | rdf:type owl:Ontology ; |
543 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 543 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; |
544 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 544 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
... | @@ -6,8 +6,6 @@ | ... | @@ -6,8 +6,6 @@ |
6 | 6 | ||
7 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . | 7 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . |
8 | @prefix arg: <http://spinrdf.org/arg#> . | 8 | @prefix arg: <http://spinrdf.org/arg#> . |
9 | -@prefix npd: <http://www.reportinghub.no/ep/schema/npd#> . | ||
10 | -@prefix npdata: <http://www.reportinghub.no/ep/data/> . | ||
11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 10 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 11 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -17,25 +15,63 @@ | ... | @@ -17,25 +15,63 @@ |
17 | @prefix spl: <http://spinrdf.org/spl#> . | 15 | @prefix spl: <http://spinrdf.org/spl#> . |
18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 16 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | 17 | ||
20 | -<http://www.epim.no/schemas/mprml/1#RefNameString> | 18 | +<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> |
21 | spin:rule | 19 | spin:rule |
22 | [ rdf:type sp:Construct ; | 20 | [ rdf:type sp:Construct ; |
23 | - rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 21 | + rdfs:comment "STEP 00044 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
22 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
23 | + sp:predicate rdf:type ; | ||
24 | + sp:subject _:b1 | ||
25 | + ] [ sp:object | ||
26 | + [ sp:varName "organizationName"^^xsd:string | ||
27 | + ] ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
29 | + sp:subject _:b1 | ||
30 | + ] [ sp:object spin:_this ; | ||
31 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
32 | + sp:subject _:b1 | ||
33 | + ]) ; | ||
34 | + sp:where ([ sp:object | ||
35 | + [ sp:varName "organizationName"^^xsd:string | ||
36 | + ] ; | ||
37 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
38 | + sp:subject spin:_this | ||
39 | + ] [ rdf:type sp:NotExists ; | ||
40 | + sp:elements ([ sp:object spin:_this ; | ||
41 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
42 | + sp:subject | ||
43 | + [ sp:varName "somethingElse"^^xsd:string | ||
44 | + ] | ||
45 | + ]) | ||
46 | + ] [ rdf:type sp:NotExists ; | ||
47 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
48 | + sp:predicate rdf:type ; | ||
49 | + sp:subject | ||
50 | + [ sp:varName "organization"^^xsd:string | ||
51 | + ] | ||
52 | + ] [ sp:object | ||
53 | + [ sp:varName "organizationName"^^xsd:string | ||
54 | + ] ; | ||
55 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
56 | + sp:subject | ||
57 | + [ sp:varName "organization"^^xsd:string | ||
58 | + ] | ||
59 | + ]) | ||
60 | + ]) | ||
61 | + ] ; | ||
62 | + spin:rule | ||
63 | + [ rdf:type sp:Construct ; | ||
64 | + rdfs:comment "STEP 00043 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | ||
24 | sp:templates ([ sp:object spin:_this ; | 65 | sp:templates ([ sp:object spin:_this ; |
25 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 66 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
26 | sp:subject | 67 | sp:subject |
27 | [ sp:varName "organization"^^xsd:string | 68 | [ sp:varName "organization"^^xsd:string |
28 | ] | 69 | ] |
29 | ]) ; | 70 | ]) ; |
30 | - sp:where ([ sp:object spin:_this ; | 71 | + sp:where ([ sp:object |
31 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | ||
32 | - sp:subject | ||
33 | - [ sp:varName "something"^^xsd:string | ||
34 | - ] | ||
35 | - ] [ sp:object | ||
36 | [ sp:varName "organizationName"^^xsd:string | 72 | [ sp:varName "organizationName"^^xsd:string |
37 | ] ; | 73 | ] ; |
38 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 74 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
39 | sp:subject spin:_this | 75 | sp:subject spin:_this |
40 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 76 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
41 | sp:predicate rdf:type ; | 77 | sp:predicate rdf:type ; |
... | @@ -53,25 +89,51 @@ | ... | @@ -53,25 +89,51 @@ |
53 | ] ; | 89 | ] ; |
54 | spin:rule | 90 | spin:rule |
55 | [ rdf:type sp:Construct ; | 91 | [ rdf:type sp:Construct ; |
56 | - rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; | 92 | + rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ; |
57 | sp:templates ([ sp:object spin:_this ; | 93 | sp:templates ([ sp:object spin:_this ; |
58 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 94 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
59 | sp:subject | 95 | sp:subject |
60 | [ sp:varName "organization"^^xsd:string | 96 | [ sp:varName "organization"^^xsd:string |
61 | ] | 97 | ] |
62 | ]) ; | 98 | ]) ; |
63 | - sp:where ([ sp:object spin:_this ; | 99 | + sp:where ([ sp:object |
64 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 100 | + [ sp:varName "organizationName"^^xsd:string |
101 | + ] ; | ||
102 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
103 | + sp:subject spin:_this | ||
104 | + ] [ rdf:type sp:NamedGraph ; | ||
105 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
106 | + sp:predicate rdf:type ; | ||
107 | + sp:subject | ||
108 | + [ sp:varName "organization"^^xsd:string | ||
109 | + ] | ||
110 | + ] [ sp:object | ||
111 | + [ sp:varName "organizationName"^^xsd:string | ||
112 | + ] ; | ||
113 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
114 | + sp:subject | ||
115 | + [ sp:varName "organization"^^xsd:string | ||
116 | + ] | ||
117 | + ]) ; | ||
118 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
119 | + ]) | ||
120 | + ] ; | ||
121 | + spin:rule | ||
122 | + [ rdf:type sp:Construct ; | ||
123 | + rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ; | ||
124 | + sp:templates ([ sp:object spin:_this ; | ||
125 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
65 | sp:subject | 126 | sp:subject |
66 | - [ sp:varName "something"^^xsd:string | 127 | + [ sp:varName "organization"^^xsd:string |
67 | ] | 128 | ] |
68 | - ] [ sp:object | 129 | + ]) ; |
130 | + sp:where ([ sp:object | ||
69 | [ sp:varName "organizationName"^^xsd:string | 131 | [ sp:varName "organizationName"^^xsd:string |
70 | ] ; | 132 | ] ; |
71 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 133 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
72 | sp:subject spin:_this | 134 | sp:subject spin:_this |
73 | ] [ rdf:type sp:NamedGraph ; | 135 | ] [ rdf:type sp:NamedGraph ; |
74 | - sp:elements ([ sp:object npd:ParentCompany ; | 136 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
75 | sp:predicate rdf:type ; | 137 | sp:predicate rdf:type ; |
76 | sp:subject | 138 | sp:subject |
77 | [ sp:varName "organization"^^xsd:string | 139 | [ sp:varName "organization"^^xsd:string |
... | @@ -79,14 +141,16 @@ | ... | @@ -79,14 +141,16 @@ |
79 | ] [ sp:object | 141 | ] [ sp:object |
80 | [ sp:varName "organizationName"^^xsd:string | 142 | [ sp:varName "organizationName"^^xsd:string |
81 | ] ; | 143 | ] ; |
82 | - sp:predicate npd:name ; | 144 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
83 | sp:subject | 145 | sp:subject |
84 | [ sp:varName "organization"^^xsd:string | 146 | [ sp:varName "organization"^^xsd:string |
85 | ] | 147 | ] |
86 | ]) ; | 148 | ]) ; |
87 | - sp:graphNameNode npdata:npd | 149 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
88 | ]) | 150 | ]) |
89 | - ] ; | 151 | + ] . |
152 | + | ||
153 | +<http://www.epim.no/schemas/mprml/1#RefNameString> | ||
90 | spin:rule | 154 | spin:rule |
91 | [ rdf:type sp:Construct ; | 155 | [ rdf:type sp:Construct ; |
92 | rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; | 156 | rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; |
... | @@ -107,7 +171,7 @@ | ... | @@ -107,7 +171,7 @@ |
107 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 171 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
108 | sp:subject spin:_this | 172 | sp:subject spin:_this |
109 | ] [ rdf:type sp:NamedGraph ; | 173 | ] [ rdf:type sp:NamedGraph ; |
110 | - sp:elements ([ sp:object npd:OperatingCompany ; | 174 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
111 | sp:predicate rdf:type ; | 175 | sp:predicate rdf:type ; |
112 | sp:subject | 176 | sp:subject |
113 | [ sp:varName "organization"^^xsd:string | 177 | [ sp:varName "organization"^^xsd:string |
... | @@ -115,17 +179,17 @@ | ... | @@ -115,17 +179,17 @@ |
115 | ] [ sp:object | 179 | ] [ sp:object |
116 | [ sp:varName "organizationName"^^xsd:string | 180 | [ sp:varName "organizationName"^^xsd:string |
117 | ] ; | 181 | ] ; |
118 | - sp:predicate npd:name ; | 182 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
119 | sp:subject | 183 | sp:subject |
120 | [ sp:varName "organization"^^xsd:string | 184 | [ sp:varName "organization"^^xsd:string |
121 | ] | 185 | ] |
122 | ]) ; | 186 | ]) ; |
123 | - sp:graphNameNode npdata:npd | 187 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
124 | ]) | 188 | ]) |
125 | ] ; | 189 | ] ; |
126 | spin:rule | 190 | spin:rule |
127 | [ rdf:type sp:Construct ; | 191 | [ rdf:type sp:Construct ; |
128 | - rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 192 | + rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; |
129 | sp:templates ([ sp:object spin:_this ; | 193 | sp:templates ([ sp:object spin:_this ; |
130 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 194 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
131 | sp:subject | 195 | sp:subject |
... | @@ -133,7 +197,7 @@ | ... | @@ -133,7 +197,7 @@ |
133 | ] | 197 | ] |
134 | ]) ; | 198 | ]) ; |
135 | sp:where ([ sp:object spin:_this ; | 199 | sp:where ([ sp:object spin:_this ; |
136 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 200 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
137 | sp:subject | 201 | sp:subject |
138 | [ sp:varName "something"^^xsd:string | 202 | [ sp:varName "something"^^xsd:string |
139 | ] | 203 | ] |
... | @@ -142,37 +206,40 @@ | ... | @@ -142,37 +206,40 @@ |
142 | ] ; | 206 | ] ; |
143 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 207 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
144 | sp:subject spin:_this | 208 | sp:subject spin:_this |
145 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 209 | + ] [ rdf:type sp:NamedGraph ; |
146 | - sp:predicate rdf:type ; | 210 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; |
147 | - sp:subject | 211 | + sp:predicate rdf:type ; |
148 | - [ sp:varName "organization"^^xsd:string | 212 | + sp:subject |
149 | - ] | 213 | + [ sp:varName "organization"^^xsd:string |
150 | - ] [ sp:object | 214 | + ] |
151 | - [ sp:varName "organizationName"^^xsd:string | 215 | + ] [ sp:object |
152 | - ] ; | 216 | + [ sp:varName "organizationName"^^xsd:string |
153 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 217 | + ] ; |
154 | - sp:subject | 218 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
155 | - [ sp:varName "organization"^^xsd:string | 219 | + sp:subject |
156 | - ] | 220 | + [ sp:varName "organization"^^xsd:string |
221 | + ] | ||
222 | + ]) ; | ||
223 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
157 | ]) | 224 | ]) |
158 | ] ; | 225 | ] ; |
159 | spin:rule | 226 | spin:rule |
160 | [ rdf:type sp:Construct ; | 227 | [ rdf:type sp:Construct ; |
161 | - rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 228 | + rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
162 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 229 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
163 | sp:predicate rdf:type ; | 230 | sp:predicate rdf:type ; |
164 | - sp:subject _:b1 | 231 | + sp:subject _:b2 |
165 | ] [ sp:object | 232 | ] [ sp:object |
166 | [ sp:varName "organizationName"^^xsd:string | 233 | [ sp:varName "organizationName"^^xsd:string |
167 | ] ; | 234 | ] ; |
168 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 235 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
169 | - sp:subject _:b1 | 236 | + sp:subject _:b2 |
170 | ] [ sp:object spin:_this ; | 237 | ] [ sp:object spin:_this ; |
171 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 238 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
172 | - sp:subject _:b1 | 239 | + sp:subject _:b2 |
173 | ]) ; | 240 | ]) ; |
174 | sp:where ([ sp:object spin:_this ; | 241 | sp:where ([ sp:object spin:_this ; |
175 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | 242 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; |
176 | sp:subject | 243 | sp:subject |
177 | [ sp:varName "something"^^xsd:string | 244 | [ sp:varName "something"^^xsd:string |
178 | ] | 245 | ] |
... | @@ -206,21 +273,21 @@ | ... | @@ -206,21 +273,21 @@ |
206 | ] ; | 273 | ] ; |
207 | spin:rule | 274 | spin:rule |
208 | [ rdf:type sp:Construct ; | 275 | [ rdf:type sp:Construct ; |
209 | - rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 276 | + rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
210 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 277 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
211 | sp:predicate rdf:type ; | 278 | sp:predicate rdf:type ; |
212 | - sp:subject _:b2 | 279 | + sp:subject _:b3 |
213 | ] [ sp:object | 280 | ] [ sp:object |
214 | [ sp:varName "organizationName"^^xsd:string | 281 | [ sp:varName "organizationName"^^xsd:string |
215 | ] ; | 282 | ] ; |
216 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 283 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
217 | - sp:subject _:b2 | 284 | + sp:subject _:b3 |
218 | ] [ sp:object spin:_this ; | 285 | ] [ sp:object spin:_this ; |
219 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 286 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
220 | - sp:subject _:b2 | 287 | + sp:subject _:b3 |
221 | ]) ; | 288 | ]) ; |
222 | sp:where ([ sp:object spin:_this ; | 289 | sp:where ([ sp:object spin:_this ; |
223 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 290 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
224 | sp:subject | 291 | sp:subject |
225 | [ sp:varName "something"^^xsd:string | 292 | [ sp:varName "something"^^xsd:string |
226 | ] | 293 | ] |
... | @@ -254,7 +321,7 @@ | ... | @@ -254,7 +321,7 @@ |
254 | ] ; | 321 | ] ; |
255 | spin:rule | 322 | spin:rule |
256 | [ rdf:type sp:Construct ; | 323 | [ rdf:type sp:Construct ; |
257 | - rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; | 324 | + rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ; |
258 | sp:templates ([ sp:object spin:_this ; | 325 | sp:templates ([ sp:object spin:_this ; |
259 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 326 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
260 | sp:subject | 327 | sp:subject |
... | @@ -272,7 +339,7 @@ | ... | @@ -272,7 +339,7 @@ |
272 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 339 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
273 | sp:subject spin:_this | 340 | sp:subject spin:_this |
274 | ] [ rdf:type sp:NamedGraph ; | 341 | ] [ rdf:type sp:NamedGraph ; |
275 | - sp:elements ([ sp:object npd:OperatingCompany ; | 342 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
276 | sp:predicate rdf:type ; | 343 | sp:predicate rdf:type ; |
277 | sp:subject | 344 | sp:subject |
278 | [ sp:varName "organization"^^xsd:string | 345 | [ sp:varName "organization"^^xsd:string |
... | @@ -280,20 +347,25 @@ | ... | @@ -280,20 +347,25 @@ |
280 | ] [ sp:object | 347 | ] [ sp:object |
281 | [ sp:varName "organizationName"^^xsd:string | 348 | [ sp:varName "organizationName"^^xsd:string |
282 | ] ; | 349 | ] ; |
283 | - sp:predicate npd:name ; | 350 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
284 | sp:subject | 351 | sp:subject |
285 | [ sp:varName "organization"^^xsd:string | 352 | [ sp:varName "organization"^^xsd:string |
286 | ] | 353 | ] |
287 | ]) ; | 354 | ]) ; |
288 | - sp:graphNameNode npdata:npd | 355 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
289 | ]) | 356 | ]) |
290 | ] ; | 357 | ] ; |
291 | spin:rule | 358 | spin:rule |
292 | [ rdf:type sp:Construct ; | 359 | [ rdf:type sp:Construct ; |
293 | - rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ; | 360 | + rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; |
294 | - sp:templates () ; | 361 | + sp:templates ([ sp:object spin:_this ; |
362 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
363 | + sp:subject | ||
364 | + [ sp:varName "organization"^^xsd:string | ||
365 | + ] | ||
366 | + ]) ; | ||
295 | sp:where ([ sp:object spin:_this ; | 367 | sp:where ([ sp:object spin:_this ; |
296 | - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; | 368 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
297 | sp:subject | 369 | sp:subject |
298 | [ sp:varName "something"^^xsd:string | 370 | [ sp:varName "something"^^xsd:string |
299 | ] | 371 | ] |
... | @@ -303,7 +375,7 @@ | ... | @@ -303,7 +375,7 @@ |
303 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 375 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
304 | sp:subject spin:_this | 376 | sp:subject spin:_this |
305 | ] [ rdf:type sp:NamedGraph ; | 377 | ] [ rdf:type sp:NamedGraph ; |
306 | - sp:elements ([ sp:object npd:ParentCompany ; | 378 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
307 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
308 | sp:subject | 380 | sp:subject |
309 | [ sp:varName "organization"^^xsd:string | 381 | [ sp:varName "organization"^^xsd:string |
... | @@ -311,31 +383,31 @@ | ... | @@ -311,31 +383,31 @@ |
311 | ] [ sp:object | 383 | ] [ sp:object |
312 | [ sp:varName "organizationName"^^xsd:string | 384 | [ sp:varName "organizationName"^^xsd:string |
313 | ] ; | 385 | ] ; |
314 | - sp:predicate npd:name ; | 386 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
315 | sp:subject | 387 | sp:subject |
316 | [ sp:varName "organization"^^xsd:string | 388 | [ sp:varName "organization"^^xsd:string |
317 | ] | 389 | ] |
318 | ]) ; | 390 | ]) ; |
319 | - sp:graphNameNode npdata:npd | 391 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
320 | ]) | 392 | ]) |
321 | ] ; | 393 | ] ; |
322 | spin:rule | 394 | spin:rule |
323 | [ rdf:type sp:Construct ; | 395 | [ rdf:type sp:Construct ; |
324 | - rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ; | 396 | + rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ; |
325 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 397 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
326 | sp:predicate rdf:type ; | 398 | sp:predicate rdf:type ; |
327 | - sp:subject _:b3 | 399 | + sp:subject _:b4 |
328 | ] [ sp:object | 400 | ] [ sp:object |
329 | [ sp:varName "organizationName"^^xsd:string | 401 | [ sp:varName "organizationName"^^xsd:string |
330 | ] ; | 402 | ] ; |
331 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 403 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
332 | - sp:subject _:b3 | 404 | + sp:subject _:b4 |
333 | ] [ sp:object spin:_this ; | 405 | ] [ sp:object spin:_this ; |
334 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 406 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
335 | - sp:subject _:b3 | 407 | + sp:subject _:b4 |
336 | ]) ; | 408 | ]) ; |
337 | sp:where ([ sp:object spin:_this ; | 409 | sp:where ([ sp:object spin:_this ; |
338 | - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; | 410 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
339 | sp:subject | 411 | sp:subject |
340 | [ sp:varName "something"^^xsd:string | 412 | [ sp:varName "something"^^xsd:string |
341 | ] | 413 | ] |
... | @@ -369,7 +441,7 @@ | ... | @@ -369,7 +441,7 @@ |
369 | ] ; | 441 | ] ; |
370 | spin:rule | 442 | spin:rule |
371 | [ rdf:type sp:Construct ; | 443 | [ rdf:type sp:Construct ; |
372 | - rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; | 444 | + rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; |
373 | sp:templates ([ sp:object spin:_this ; | 445 | sp:templates ([ sp:object spin:_this ; |
374 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 446 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
375 | sp:subject | 447 | sp:subject |
... | @@ -377,7 +449,7 @@ | ... | @@ -377,7 +449,7 @@ |
377 | ] | 449 | ] |
378 | ]) ; | 450 | ]) ; |
379 | sp:where ([ sp:object spin:_this ; | 451 | sp:where ([ sp:object spin:_this ; |
380 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 452 | + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; |
381 | sp:subject | 453 | sp:subject |
382 | [ sp:varName "something"^^xsd:string | 454 | [ sp:varName "something"^^xsd:string |
383 | ] | 455 | ] |
... | @@ -386,26 +458,23 @@ | ... | @@ -386,26 +458,23 @@ |
386 | ] ; | 458 | ] ; |
387 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 459 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
388 | sp:subject spin:_this | 460 | sp:subject spin:_this |
389 | - ] [ rdf:type sp:NamedGraph ; | 461 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
390 | - sp:elements ([ sp:object npd:OperatingCompany ; | 462 | + sp:predicate rdf:type ; |
391 | - sp:predicate rdf:type ; | 463 | + sp:subject |
392 | - sp:subject | 464 | + [ sp:varName "organization"^^xsd:string |
393 | - [ sp:varName "organization"^^xsd:string | 465 | + ] |
394 | - ] | 466 | + ] [ sp:object |
395 | - ] [ sp:object | 467 | + [ sp:varName "organizationName"^^xsd:string |
396 | - [ sp:varName "organizationName"^^xsd:string | 468 | + ] ; |
397 | - ] ; | 469 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
398 | - sp:predicate npd:name ; | 470 | + sp:subject |
399 | - sp:subject | 471 | + [ sp:varName "organization"^^xsd:string |
400 | - [ sp:varName "organization"^^xsd:string | 472 | + ] |
401 | - ] | ||
402 | - ]) ; | ||
403 | - sp:graphNameNode npdata:npd | ||
404 | ]) | 473 | ]) |
405 | ] ; | 474 | ] ; |
406 | spin:rule | 475 | spin:rule |
407 | [ rdf:type sp:Construct ; | 476 | [ rdf:type sp:Construct ; |
408 | - rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | 477 | + rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; |
409 | sp:templates ([ sp:object spin:_this ; | 478 | sp:templates ([ sp:object spin:_this ; |
410 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 479 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
411 | sp:subject | 480 | sp:subject |
... | @@ -413,7 +482,7 @@ | ... | @@ -413,7 +482,7 @@ |
413 | ] | 482 | ] |
414 | ]) ; | 483 | ]) ; |
415 | sp:where ([ sp:object spin:_this ; | 484 | sp:where ([ sp:object spin:_this ; |
416 | - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | 485 | + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; |
417 | sp:subject | 486 | sp:subject |
418 | [ sp:varName "something"^^xsd:string | 487 | [ sp:varName "something"^^xsd:string |
419 | ] | 488 | ] |
... | @@ -456,7 +525,7 @@ | ... | @@ -456,7 +525,7 @@ |
456 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 525 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
457 | sp:subject spin:_this | 526 | sp:subject spin:_this |
458 | ] [ rdf:type sp:NamedGraph ; | 527 | ] [ rdf:type sp:NamedGraph ; |
459 | - sp:elements ([ sp:object npd:ParentCompany ; | 528 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; |
460 | sp:predicate rdf:type ; | 529 | sp:predicate rdf:type ; |
461 | sp:subject | 530 | sp:subject |
462 | [ sp:varName "organization"^^xsd:string | 531 | [ sp:varName "organization"^^xsd:string |
... | @@ -464,16 +533,85 @@ | ... | @@ -464,16 +533,85 @@ |
464 | ] [ sp:object | 533 | ] [ sp:object |
465 | [ sp:varName "organizationName"^^xsd:string | 534 | [ sp:varName "organizationName"^^xsd:string |
466 | ] ; | 535 | ] ; |
467 | - sp:predicate npd:name ; | 536 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
468 | sp:subject | 537 | sp:subject |
469 | [ sp:varName "organization"^^xsd:string | 538 | [ sp:varName "organization"^^xsd:string |
470 | ] | 539 | ] |
471 | ]) ; | 540 | ]) ; |
472 | - sp:graphNameNode npdata:npd | 541 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> |
542 | + ]) | ||
543 | + ] ; | ||
544 | + spin:rule | ||
545 | + [ rdf:type sp:Construct ; | ||
546 | + rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; | ||
547 | + sp:templates ([ sp:object spin:_this ; | ||
548 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
549 | + sp:subject | ||
550 | + [ sp:varName "organization"^^xsd:string | ||
551 | + ] | ||
552 | + ]) ; | ||
553 | + sp:where ([ sp:object spin:_this ; | ||
554 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | ||
555 | + sp:subject | ||
556 | + [ sp:varName "something"^^xsd:string | ||
557 | + ] | ||
558 | + ] [ sp:object | ||
559 | + [ sp:varName "organizationName"^^xsd:string | ||
560 | + ] ; | ||
561 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
562 | + sp:subject spin:_this | ||
563 | + ] [ rdf:type sp:NamedGraph ; | ||
564 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
565 | + sp:predicate rdf:type ; | ||
566 | + sp:subject | ||
567 | + [ sp:varName "organization"^^xsd:string | ||
568 | + ] | ||
569 | + ] [ sp:object | ||
570 | + [ sp:varName "organizationName"^^xsd:string | ||
571 | + ] ; | ||
572 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
573 | + sp:subject | ||
574 | + [ sp:varName "organization"^^xsd:string | ||
575 | + ] | ||
576 | + ]) ; | ||
577 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
578 | + ]) | ||
579 | + ] ; | ||
580 | + spin:rule | ||
581 | + [ rdf:type sp:Construct ; | ||
582 | + rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; | ||
583 | + sp:templates ([ sp:object spin:_this ; | ||
584 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
585 | + sp:subject | ||
586 | + [ sp:varName "organization"^^xsd:string | ||
587 | + ] | ||
588 | + ]) ; | ||
589 | + sp:where ([ sp:object spin:_this ; | ||
590 | + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; | ||
591 | + sp:subject | ||
592 | + [ sp:varName "something"^^xsd:string | ||
593 | + ] | ||
594 | + ] [ sp:object | ||
595 | + [ sp:varName "organizationName"^^xsd:string | ||
596 | + ] ; | ||
597 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
598 | + sp:subject spin:_this | ||
599 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
600 | + sp:predicate rdf:type ; | ||
601 | + sp:subject | ||
602 | + [ sp:varName "organization"^^xsd:string | ||
603 | + ] | ||
604 | + ] [ sp:object | ||
605 | + [ sp:varName "organizationName"^^xsd:string | ||
606 | + ] ; | ||
607 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
608 | + sp:subject | ||
609 | + [ sp:varName "organization"^^xsd:string | ||
610 | + ] | ||
473 | ]) | 611 | ]) |
474 | ] . | 612 | ] . |
475 | 613 | ||
476 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> | 614 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> |
477 | rdf:type owl:Ontology ; | 615 | rdf:type owl:Ontology ; |
478 | - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | 616 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; |
479 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 617 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -19,6 +19,67 @@ | ... | @@ -19,6 +19,67 @@ |
19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
20 | spin:rule | 20 | spin:rule |
21 | [ rdf:type sp:Construct ; | 21 | [ rdf:type sp:Construct ; |
22 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | ||
23 | + sp:templates ([ sp:object | ||
24 | + [ sp:varName "contextFacility"^^xsd:string | ||
25 | + ] ; | ||
26 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
27 | + sp:subject | ||
28 | + [ sp:varName "productionFacility"^^xsd:string | ||
29 | + ] | ||
30 | + ]) ; | ||
31 | + sp:where ([ sp:object | ||
32 | + [ sp:varName "contextRef"^^xsd:string | ||
33 | + ] ; | ||
34 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
35 | + sp:subject spin:_this | ||
36 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
37 | + sp:predicate rdf:type ; | ||
38 | + sp:subject | ||
39 | + [ sp:varName "contextRef"^^xsd:string | ||
40 | + ] | ||
41 | + ] [ sp:object | ||
42 | + [ sp:varName "contectFacilityRef"^^xsd:string | ||
43 | + ] ; | ||
44 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
45 | + sp:subject | ||
46 | + [ sp:varName "contextRef"^^xsd:string | ||
47 | + ] | ||
48 | + ] [ sp:object | ||
49 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
50 | + ] ; | ||
51 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
52 | + sp:subject | ||
53 | + [ sp:varName "contextFacility"^^xsd:string | ||
54 | + ] | ||
55 | + ] [ sp:object spin:_this ; | ||
56 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
57 | + sp:subject | ||
58 | + [ sp:varName "productionReport"^^xsd:string | ||
59 | + ] | ||
60 | + ] [ sp:object | ||
61 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
62 | + ] ; | ||
63 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
64 | + sp:subject | ||
65 | + [ sp:varName "productionReport"^^xsd:string | ||
66 | + ] | ||
67 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
68 | + sp:predicate rdf:type ; | ||
69 | + sp:subject | ||
70 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
71 | + ] | ||
72 | + ] [ sp:object | ||
73 | + [ sp:varName "productionFacility"^^xsd:string | ||
74 | + ] ; | ||
75 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
76 | + sp:subject | ||
77 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
78 | + ] | ||
79 | + ]) | ||
80 | + ] ; | ||
81 | + spin:rule | ||
82 | + [ rdf:type sp:Construct ; | ||
22 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 83 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; |
23 | sp:templates ([ sp:object | 84 | sp:templates ([ sp:object |
24 | [ sp:varName "date"^^xsd:string | 85 | [ sp:varName "date"^^xsd:string |
... | @@ -65,10 +126,8 @@ | ... | @@ -65,10 +126,8 @@ |
65 | ] ; | 126 | ] ; |
66 | spin:rule | 127 | spin:rule |
67 | [ rdf:type sp:Construct ; | 128 | [ rdf:type sp:Construct ; |
68 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | 129 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; |
69 | - sp:templates ([ sp:object | 130 | + sp:templates ([ sp:object "noDate" ; |
70 | - [ sp:varName "dateEnd"^^xsd:string | ||
71 | - ] ; | ||
72 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 131 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
73 | sp:subject spin:_this | 132 | sp:subject spin:_this |
74 | ]) ; | 133 | ]) ; |
... | @@ -82,13 +141,15 @@ | ... | @@ -82,13 +141,15 @@ |
82 | sp:subject | 141 | sp:subject |
83 | [ sp:varName "contextRef"^^xsd:string | 142 | [ sp:varName "contextRef"^^xsd:string |
84 | ] | 143 | ] |
85 | - ] [ sp:object | 144 | + ] [ rdf:type sp:NotExists ; |
86 | - [ sp:varName "dateEnd"^^xsd:string | 145 | + sp:elements ([ sp:object |
87 | - ] ; | 146 | + [ sp:varName "dateEnd"^^xsd:string |
88 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 147 | + ] ; |
89 | - sp:subject | 148 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
90 | - [ sp:varName "contextRef"^^xsd:string | 149 | + sp:subject |
91 | - ] | 150 | + [ sp:varName "contextRef"^^xsd:string |
151 | + ] | ||
152 | + ]) | ||
92 | ] [ rdf:type sp:NotExists ; | 153 | ] [ rdf:type sp:NotExists ; |
93 | sp:elements ([ sp:object | 154 | sp:elements ([ sp:object |
94 | [ sp:varName "date"^^xsd:string | 155 | [ sp:varName "date"^^xsd:string |
... | @@ -111,120 +172,108 @@ | ... | @@ -111,120 +172,108 @@ |
111 | ] ; | 172 | ] ; |
112 | spin:rule | 173 | spin:rule |
113 | [ rdf:type sp:Construct ; | 174 | [ rdf:type sp:Construct ; |
114 | - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; | 175 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
115 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 176 | + sp:templates ([ sp:object |
177 | + [ sp:varName "dateEnd"^^xsd:string | ||
178 | + ] ; | ||
179 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
180 | + sp:subject spin:_this | ||
181 | + ]) ; | ||
182 | + sp:where ([ sp:object | ||
183 | + [ sp:varName "contextRef"^^xsd:string | ||
184 | + ] ; | ||
185 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
186 | + sp:subject spin:_this | ||
187 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
116 | sp:predicate rdf:type ; | 188 | sp:predicate rdf:type ; |
117 | sp:subject | 189 | sp:subject |
118 | - [ sp:varName "productionReport"^^xsd:string | 190 | + [ sp:varName "contextRef"^^xsd:string |
119 | ] | 191 | ] |
120 | - ] [ sp:object spin:_this ; | 192 | + ] [ sp:object |
121 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 193 | + [ sp:varName "dateEnd"^^xsd:string |
194 | + ] ; | ||
195 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
122 | sp:subject | 196 | sp:subject |
123 | - [ sp:varName "productionReport"^^xsd:string | 197 | + [ sp:varName "contextRef"^^xsd:string |
124 | ] | 198 | ] |
125 | - ]) ; | ||
126 | - sp:where ([ sp:object | ||
127 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
128 | - ] ; | ||
129 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
130 | - sp:subject spin:_this | ||
131 | - ] [ rdf:type sp:NotExists ; | ||
132 | - sp:elements ([ sp:object | ||
133 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
134 | - ] ; | ||
135 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
136 | - sp:subject spin:_this | ||
137 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
138 | - sp:predicate rdf:type ; | ||
139 | - sp:subject | ||
140 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
141 | - ] | ||
142 | - ] [ sp:object | ||
143 | - [ sp:varName "installationRef"^^xsd:string | ||
144 | - ] ; | ||
145 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
146 | - sp:subject | ||
147 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
148 | - ] | ||
149 | - ] [ sp:object | ||
150 | - [ sp:varName "name"^^xsd:string | ||
151 | - ] ; | ||
152 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
153 | - sp:subject | ||
154 | - [ sp:varName "installationRef"^^xsd:string | ||
155 | - ] | ||
156 | - ]) | ||
157 | ] [ rdf:type sp:NotExists ; | 199 | ] [ rdf:type sp:NotExists ; |
158 | sp:elements ([ sp:object | 200 | sp:elements ([ sp:object |
159 | - [ sp:varName "productionOperationRef"^^xsd:string | 201 | + [ sp:varName "date"^^xsd:string |
160 | - ] ; | ||
161 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
162 | - sp:subject spin:_this | ||
163 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
164 | - sp:predicate rdf:type ; | ||
165 | - sp:subject | ||
166 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
167 | - ] | ||
168 | - ] [ sp:object | ||
169 | - [ sp:varName "installationRef"^^xsd:string | ||
170 | - ] ; | ||
171 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
172 | - sp:subject | ||
173 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
174 | - ] | ||
175 | - ] [ sp:object | ||
176 | - [ sp:varName "name"^^xsd:string | ||
177 | ] ; | 202 | ] ; |
178 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 203 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
179 | sp:subject | 204 | sp:subject |
180 | - [ sp:varName "installationRef"^^xsd:string | 205 | + [ sp:varName "contextRef"^^xsd:string |
181 | ] | 206 | ] |
182 | ]) | 207 | ]) |
183 | ] [ rdf:type sp:NotExists ; | 208 | ] [ rdf:type sp:NotExists ; |
184 | sp:elements ([ sp:object | 209 | sp:elements ([ sp:object |
185 | - [ sp:varName "contextRef"^^xsd:string | 210 | + [ sp:varName "dateStart"^^xsd:string |
186 | - ] ; | ||
187 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
188 | - sp:subject spin:_this | ||
189 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
190 | - sp:predicate rdf:type ; | ||
191 | - sp:subject | ||
192 | - [ sp:varName "contextRef"^^xsd:string | ||
193 | - ] | ||
194 | - ] [ sp:object | ||
195 | - [ sp:varName "installationRef"^^xsd:string | ||
196 | ] ; | 211 | ] ; |
197 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 212 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
198 | sp:subject | 213 | sp:subject |
199 | [ sp:varName "contextRef"^^xsd:string | 214 | [ sp:varName "contextRef"^^xsd:string |
200 | ] | 215 | ] |
201 | - ] [ sp:object | ||
202 | - [ sp:varName "name"^^xsd:string | ||
203 | - ] ; | ||
204 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
205 | - sp:subject | ||
206 | - [ sp:varName "installationRef"^^xsd:string | ||
207 | - ] | ||
208 | ]) | 216 | ]) |
209 | - ] [ rdf:type sp:Bind ; | 217 | + ]) |
210 | - sp:expression | 218 | + ] ; |
211 | - [ rdf:type ep-spin-lib:normalizeString ; | 219 | + spin:rule |
212 | - sp:arg1 "noInstallation" | 220 | + [ rdf:type sp:Construct ; |
221 | + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | ||
222 | + sp:templates ([ sp:object _:b1 ; | ||
223 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
224 | + sp:subject | ||
225 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
226 | + ] | ||
227 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
228 | + sp:predicate rdf:type ; | ||
229 | + sp:subject _:b1 | ||
230 | + ] [ sp:object | ||
231 | + [ sp:varName "operator"^^xsd:string | ||
213 | ] ; | 232 | ] ; |
214 | - sp:variable | 233 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
215 | - [ sp:varName "normalizedName"^^xsd:string | 234 | + sp:subject _:b1 |
235 | + ]) ; | ||
236 | + sp:where ([ sp:object | ||
237 | + [ sp:varName "contextRef"^^xsd:string | ||
238 | + ] ; | ||
239 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
240 | + sp:subject spin:_this | ||
241 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
242 | + sp:predicate rdf:type ; | ||
243 | + sp:subject | ||
244 | + [ sp:varName "contextRef"^^xsd:string | ||
216 | ] | 245 | ] |
217 | - ] [ rdf:type sp:Bind ; | 246 | + ] [ sp:object |
218 | - sp:expression | 247 | + [ sp:varName "operatorRef"^^xsd:string |
219 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
220 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | ||
221 | - ] ; | ||
222 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
223 | - ] | ||
224 | ] ; | 248 | ] ; |
225 | - sp:variable | 249 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
250 | + sp:subject | ||
251 | + [ sp:varName "contextRef"^^xsd:string | ||
252 | + ] | ||
253 | + ] [ sp:object | ||
254 | + [ sp:varName "operatorRef"^^xsd:string | ||
255 | + ] ; | ||
256 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
257 | + sp:subject | ||
258 | + [ sp:varName "operator"^^xsd:string | ||
259 | + ] | ||
260 | + ] [ sp:object spin:_this ; | ||
261 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
262 | + sp:subject | ||
263 | + [ sp:varName "productionReport"^^xsd:string | ||
264 | + ] | ||
265 | + ] [ sp:object | ||
266 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
267 | + ] ; | ||
268 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
269 | + sp:subject | ||
226 | [ sp:varName "productionReport"^^xsd:string | 270 | [ sp:varName "productionReport"^^xsd:string |
227 | ] | 271 | ] |
272 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
273 | + sp:predicate rdf:type ; | ||
274 | + sp:subject | ||
275 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
276 | + ] | ||
228 | ]) | 277 | ]) |
229 | ] ; | 278 | ] ; |
230 | spin:rule | 279 | spin:rule |
... | @@ -275,12 +324,25 @@ | ... | @@ -275,12 +324,25 @@ |
275 | ] ; | 324 | ] ; |
276 | spin:rule | 325 | spin:rule |
277 | [ rdf:type sp:Construct ; | 326 | [ rdf:type sp:Construct ; |
278 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; | 327 | + rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; |
279 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 328 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
280 | sp:predicate rdf:type ; | 329 | sp:predicate rdf:type ; |
281 | sp:subject | 330 | sp:subject |
282 | [ sp:varName "productionReport"^^xsd:string | 331 | [ sp:varName "productionReport"^^xsd:string |
283 | ] | 332 | ] |
333 | + ] [ sp:object _:b2 ; | ||
334 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
335 | + sp:subject | ||
336 | + [ sp:varName "productionReport"^^xsd:string | ||
337 | + ] | ||
338 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
339 | + sp:predicate rdf:type ; | ||
340 | + sp:subject _:b2 | ||
341 | + ] [ sp:object | ||
342 | + [ sp:varName "installation"^^xsd:string | ||
343 | + ] ; | ||
344 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
345 | + sp:subject _:b2 | ||
284 | ] [ sp:object spin:_this ; | 346 | ] [ sp:object spin:_this ; |
285 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 347 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
286 | sp:subject | 348 | sp:subject |
... | @@ -293,40 +355,85 @@ | ... | @@ -293,40 +355,85 @@ |
293 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 355 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
294 | sp:subject spin:_this | 356 | sp:subject spin:_this |
295 | ] [ sp:object | 357 | ] [ sp:object |
296 | - [ sp:varName "contextRef"^^xsd:string | 358 | + [ sp:varName "productVolumeRef"^^xsd:string |
297 | ] ; | 359 | ] ; |
298 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 360 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
299 | sp:subject spin:_this | 361 | sp:subject spin:_this |
300 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 362 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
301 | sp:predicate rdf:type ; | 363 | sp:predicate rdf:type ; |
302 | sp:subject | 364 | sp:subject |
303 | - [ sp:varName "contextRef"^^xsd:string | 365 | + [ sp:varName "productVolumeRef"^^xsd:string |
304 | ] | 366 | ] |
305 | ] [ sp:object | 367 | ] [ sp:object |
306 | [ sp:varName "installationRef"^^xsd:string | 368 | [ sp:varName "installationRef"^^xsd:string |
307 | ] ; | 369 | ] ; |
308 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 370 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
309 | sp:subject | 371 | sp:subject |
310 | - [ sp:varName "contextRef"^^xsd:string | 372 | + [ sp:varName "productVolumeRef"^^xsd:string |
311 | ] | 373 | ] |
312 | - ] [ rdf:type sp:Bind ; | 374 | + ] [ sp:object |
313 | - sp:expression | 375 | + [ sp:varName "installationRef"^^xsd:string |
314 | - [ rdf:type spl:object ; | ||
315 | - sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
316 | - ] ; | ||
317 | - sp:arg2 rdfs:label | ||
318 | ] ; | 376 | ] ; |
319 | - sp:variable | 377 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
320 | - [ sp:varName "normalizedInstallationName"^^xsd:string | 378 | + sp:subject |
379 | + [ sp:varName "installation"^^xsd:string | ||
321 | ] | 380 | ] |
322 | - ] [ rdf:type sp:Bind ; | 381 | + ] [ rdf:type sp:NotExists ; |
323 | - sp:expression | 382 | + sp:elements ([ sp:object |
324 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | 383 | + [ sp:varName "productionOperationRef"^^xsd:string |
325 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 384 | + ] ; |
326 | - ] ; | 385 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
327 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | 386 | + sp:subject spin:_this |
328 | - ] | 387 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
329 | - ] ; | 388 | + sp:predicate rdf:type ; |
389 | + sp:subject | ||
390 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
391 | + ] | ||
392 | + ] [ sp:object | ||
393 | + [ sp:varName "installationRef"^^xsd:string | ||
394 | + ] ; | ||
395 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
396 | + sp:subject | ||
397 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
398 | + ] | ||
399 | + ]) | ||
400 | + ] [ rdf:type sp:NotExists ; | ||
401 | + sp:elements ([ sp:object | ||
402 | + [ sp:varName "contextRef"^^xsd:string | ||
403 | + ] ; | ||
404 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
405 | + sp:subject spin:_this | ||
406 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
407 | + sp:predicate rdf:type ; | ||
408 | + sp:subject | ||
409 | + [ sp:varName "contextRef"^^xsd:string | ||
410 | + ] | ||
411 | + ] [ sp:object | ||
412 | + [ sp:varName "installationRef"^^xsd:string | ||
413 | + ] ; | ||
414 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
415 | + sp:subject | ||
416 | + [ sp:varName "contextRef"^^xsd:string | ||
417 | + ] | ||
418 | + ]) | ||
419 | + ] [ rdf:type sp:Bind ; | ||
420 | + sp:expression | ||
421 | + [ rdf:type spl:object ; | ||
422 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
423 | + ] ; | ||
424 | + sp:arg2 rdfs:label | ||
425 | + ] ; | ||
426 | + sp:variable | ||
427 | + [ sp:varName "normalizedInstallationName"^^xsd:string | ||
428 | + ] | ||
429 | + ] [ rdf:type sp:Bind ; | ||
430 | + sp:expression | ||
431 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
432 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
433 | + ] ; | ||
434 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
435 | + ] | ||
436 | + ] ; | ||
330 | sp:variable | 437 | sp:variable |
331 | [ sp:varName "productionReport"^^xsd:string | 438 | [ sp:varName "productionReport"^^xsd:string |
332 | ] | 439 | ] |
... | @@ -334,8 +441,10 @@ | ... | @@ -334,8 +441,10 @@ |
334 | ] ; | 441 | ] ; |
335 | spin:rule | 442 | spin:rule |
336 | [ rdf:type sp:Construct ; | 443 | [ rdf:type sp:Construct ; |
337 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | 444 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
338 | - sp:templates ([ sp:object "noDate" ; | 445 | + sp:templates ([ sp:object |
446 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
447 | + ] ; | ||
339 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 448 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
340 | sp:subject spin:_this | 449 | sp:subject spin:_this |
341 | ]) ; | 450 | ]) ; |
... | @@ -349,24 +458,13 @@ | ... | @@ -349,24 +458,13 @@ |
349 | sp:subject | 458 | sp:subject |
350 | [ sp:varName "contextRef"^^xsd:string | 459 | [ sp:varName "contextRef"^^xsd:string |
351 | ] | 460 | ] |
352 | - ] [ rdf:type sp:NotExists ; | 461 | + ] [ sp:object |
353 | - sp:elements ([ sp:object | 462 | + [ sp:varName "date"^^xsd:string |
354 | - [ sp:varName "dateEnd"^^xsd:string | 463 | + ] ; |
355 | - ] ; | 464 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
356 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 465 | + sp:subject |
357 | - sp:subject | 466 | + [ sp:varName "contextRef"^^xsd:string |
358 | - [ sp:varName "contextRef"^^xsd:string | 467 | + ] |
359 | - ] | ||
360 | - ]) | ||
361 | - ] [ rdf:type sp:NotExists ; | ||
362 | - sp:elements ([ sp:object | ||
363 | - [ sp:varName "date"^^xsd:string | ||
364 | - ] ; | ||
365 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
366 | - sp:subject | ||
367 | - [ sp:varName "contextRef"^^xsd:string | ||
368 | - ] | ||
369 | - ]) | ||
370 | ] [ rdf:type sp:NotExists ; | 468 | ] [ rdf:type sp:NotExists ; |
371 | sp:elements ([ sp:object | 469 | sp:elements ([ sp:object |
372 | [ sp:varName "dateStart"^^xsd:string | 470 | [ sp:varName "dateStart"^^xsd:string |
... | @@ -376,16 +474,47 @@ | ... | @@ -376,16 +474,47 @@ |
376 | [ sp:varName "contextRef"^^xsd:string | 474 | [ sp:varName "contextRef"^^xsd:string |
377 | ] | 475 | ] |
378 | ]) | 476 | ]) |
477 | + ] [ sp:object | ||
478 | + [ sp:varName "dateEnd"^^xsd:string | ||
479 | + ] ; | ||
480 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
481 | + sp:subject | ||
482 | + [ sp:varName "contextRef"^^xsd:string | ||
483 | + ] | ||
484 | + ] [ rdf:type sp:Bind ; | ||
485 | + sp:expression | ||
486 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
487 | + sp:arg1 [ sp:varName "date"^^xsd:string | ||
488 | + ] ; | ||
489 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
490 | + ] | ||
491 | + ] ; | ||
492 | + sp:variable | ||
493 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
494 | + ] | ||
379 | ]) | 495 | ]) |
380 | ] ; | 496 | ] ; |
381 | spin:rule | 497 | spin:rule |
382 | [ rdf:type sp:Construct ; | 498 | [ rdf:type sp:Construct ; |
383 | - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | 499 | + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; |
384 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 500 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
385 | sp:predicate rdf:type ; | 501 | sp:predicate rdf:type ; |
386 | sp:subject | 502 | sp:subject |
387 | [ sp:varName "productionReport"^^xsd:string | 503 | [ sp:varName "productionReport"^^xsd:string |
388 | ] | 504 | ] |
505 | + ] [ sp:object _:b3 ; | ||
506 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
507 | + sp:subject | ||
508 | + [ sp:varName "productionReport"^^xsd:string | ||
509 | + ] | ||
510 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
511 | + sp:predicate rdf:type ; | ||
512 | + sp:subject _:b3 | ||
513 | + ] [ sp:object | ||
514 | + [ sp:varName "installation"^^xsd:string | ||
515 | + ] ; | ||
516 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
517 | + sp:subject _:b3 | ||
389 | ] [ sp:object spin:_this ; | 518 | ] [ sp:object spin:_this ; |
390 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 519 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
391 | sp:subject | 520 | sp:subject |
... | @@ -398,57 +527,31 @@ | ... | @@ -398,57 +527,31 @@ |
398 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 527 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
399 | sp:subject spin:_this | 528 | sp:subject spin:_this |
400 | ] [ sp:object | 529 | ] [ sp:object |
401 | - [ sp:varName "productVolumeRef"^^xsd:string | 530 | + [ sp:varName "productionOperationRef"^^xsd:string |
402 | ] ; | 531 | ] ; |
403 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 532 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
404 | sp:subject spin:_this | 533 | sp:subject spin:_this |
405 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 534 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
406 | sp:predicate rdf:type ; | 535 | sp:predicate rdf:type ; |
407 | sp:subject | 536 | sp:subject |
408 | - [ sp:varName "productVolumeRef"^^xsd:string | 537 | + [ sp:varName "productionOperationRef"^^xsd:string |
409 | ] | 538 | ] |
410 | ] [ sp:object | 539 | ] [ sp:object |
411 | [ sp:varName "installationRef"^^xsd:string | 540 | [ sp:varName "installationRef"^^xsd:string |
412 | ] ; | 541 | ] ; |
413 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 542 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
414 | sp:subject | 543 | sp:subject |
415 | - [ sp:varName "productVolumeRef"^^xsd:string | 544 | + [ sp:varName "productionOperationRef"^^xsd:string |
416 | ] | 545 | ] |
417 | ] [ sp:object | 546 | ] [ sp:object |
418 | - [ sp:varName "name"^^xsd:string | 547 | + [ sp:varName "installationRef"^^xsd:string |
419 | ] ; | 548 | ] ; |
420 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 549 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
421 | sp:subject | 550 | sp:subject |
422 | - [ sp:varName "installationRef"^^xsd:string | 551 | + [ sp:varName "installation"^^xsd:string |
423 | ] | 552 | ] |
424 | ] [ rdf:type sp:NotExists ; | 553 | ] [ rdf:type sp:NotExists ; |
425 | sp:elements ([ sp:object | 554 | sp:elements ([ sp:object |
426 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
427 | - ] ; | ||
428 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
429 | - sp:subject spin:_this | ||
430 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
431 | - sp:predicate rdf:type ; | ||
432 | - sp:subject | ||
433 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
434 | - ] | ||
435 | - ] [ sp:object | ||
436 | - [ sp:varName "installationRef"^^xsd:string | ||
437 | - ] ; | ||
438 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
439 | - sp:subject | ||
440 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
441 | - ] | ||
442 | - ] [ sp:object | ||
443 | - [ sp:varName "name"^^xsd:string | ||
444 | - ] ; | ||
445 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
446 | - sp:subject | ||
447 | - [ sp:varName "installationRef"^^xsd:string | ||
448 | - ] | ||
449 | - ]) | ||
450 | - ] [ rdf:type sp:NotExists ; | ||
451 | - sp:elements ([ sp:object | ||
452 | [ sp:varName "contextRef"^^xsd:string | 555 | [ sp:varName "contextRef"^^xsd:string |
453 | ] ; | 556 | ] ; |
454 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 557 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -459,19 +562,12 @@ | ... | @@ -459,19 +562,12 @@ |
459 | [ sp:varName "contextRef"^^xsd:string | 562 | [ sp:varName "contextRef"^^xsd:string |
460 | ] | 563 | ] |
461 | ] [ sp:object | 564 | ] [ sp:object |
462 | - [ sp:varName "installationRef"^^xsd:string | 565 | + [ sp:varName "something"^^xsd:string |
463 | ] ; | 566 | ] ; |
464 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 567 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
465 | sp:subject | 568 | sp:subject |
466 | [ sp:varName "contextRef"^^xsd:string | 569 | [ sp:varName "contextRef"^^xsd:string |
467 | ] | 570 | ] |
468 | - ] [ sp:object | ||
469 | - [ sp:varName "name"^^xsd:string | ||
470 | - ] ; | ||
471 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
472 | - sp:subject | ||
473 | - [ sp:varName "installationRef"^^xsd:string | ||
474 | - ] | ||
475 | ]) | 571 | ]) |
476 | ] [ rdf:type sp:Bind ; | 572 | ] [ rdf:type sp:Bind ; |
477 | sp:expression | 573 | sp:expression |
... | @@ -498,123 +594,130 @@ | ... | @@ -498,123 +594,130 @@ |
498 | ] ; | 594 | ] ; |
499 | spin:rule | 595 | spin:rule |
500 | [ rdf:type sp:Construct ; | 596 | [ rdf:type sp:Construct ; |
501 | - rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; | 597 | + rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; |
502 | - sp:templates ([ sp:object | 598 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
503 | - [ sp:varName "reportKind"^^xsd:string | ||
504 | - ] ; | ||
505 | sp:predicate rdf:type ; | 599 | sp:predicate rdf:type ; |
506 | sp:subject | 600 | sp:subject |
507 | [ sp:varName "productionReport"^^xsd:string | 601 | [ sp:varName "productionReport"^^xsd:string |
508 | ] | 602 | ] |
509 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 603 | + ] [ sp:object _:b4 ; |
510 | - sp:predicate rdfs:subClassOf ; | 604 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
511 | - sp:subject | ||
512 | - [ sp:varName "reportKind"^^xsd:string | ||
513 | - ] | ||
514 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
515 | - sp:predicate rdf:type ; | ||
516 | - sp:subject | ||
517 | - [ sp:varName "reportKind"^^xsd:string | ||
518 | - ] | ||
519 | - ] [ sp:object | ||
520 | - [ sp:varName "kind"^^xsd:string | ||
521 | - ] ; | ||
522 | - sp:predicate rdfs:label ; | ||
523 | - sp:subject | ||
524 | - [ sp:varName "reportKind"^^xsd:string | ||
525 | - ] | ||
526 | - ] [ sp:object | ||
527 | - [ sp:varName "issueDate"^^xsd:string | ||
528 | - ] ; | ||
529 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-report#issuedAt> ; | ||
530 | sp:subject | 605 | sp:subject |
531 | [ sp:varName "productionReport"^^xsd:string | 606 | [ sp:varName "productionReport"^^xsd:string |
532 | ] | 607 | ] |
533 | - ] [ sp:object | 608 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
534 | - [ sp:varName "title"^^xsd:string | 609 | + sp:predicate rdf:type ; |
535 | - ] ; | 610 | + sp:subject _:b4 |
536 | - sp:predicate rdfs:label ; | 611 | + ] [ sp:object spin:_this ; |
612 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
537 | sp:subject | 613 | sp:subject |
538 | [ sp:varName "productionReport"^^xsd:string | 614 | [ sp:varName "productionReport"^^xsd:string |
539 | ] | 615 | ] |
540 | ]) ; | 616 | ]) ; |
541 | sp:where ([ sp:object | 617 | sp:where ([ sp:object |
542 | - [ sp:varName "contextRef"^^xsd:string | 618 | + [ sp:varName "intervalIdentifier"^^xsd:string |
543 | ] ; | 619 | ] ; |
544 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 620 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
545 | sp:subject spin:_this | 621 | sp:subject spin:_this |
546 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 622 | + ] [ rdf:type sp:NotExists ; |
547 | - sp:predicate rdf:type ; | ||
548 | - sp:subject | ||
549 | - [ sp:varName "contextRef"^^xsd:string | ||
550 | - ] | ||
551 | - ] [ rdf:type sp:Optional ; | ||
552 | sp:elements ([ sp:object | 623 | sp:elements ([ sp:object |
553 | - [ sp:varName "kind"^^xsd:string | 624 | + [ sp:varName "productVolumeRef"^^xsd:string |
554 | ] ; | 625 | ] ; |
555 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 626 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
627 | + sp:subject spin:_this | ||
628 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
629 | + sp:predicate rdf:type ; | ||
556 | sp:subject | 630 | sp:subject |
557 | - [ sp:varName "contextRef"^^xsd:string | 631 | + [ sp:varName "productVolumeRef"^^xsd:string |
632 | + ] | ||
633 | + ] [ sp:object | ||
634 | + [ sp:varName "installationRef"^^xsd:string | ||
635 | + ] ; | ||
636 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
637 | + sp:subject | ||
638 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
558 | ] | 639 | ] |
559 | ]) | 640 | ]) |
560 | - ] [ rdf:type sp:Optional ; | 641 | + ] [ rdf:type sp:NotExists ; |
561 | sp:elements ([ sp:object | 642 | sp:elements ([ sp:object |
562 | - [ sp:varName "issueDate"^^xsd:string | 643 | + [ sp:varName "productionOperationRef"^^xsd:string |
563 | ] ; | 644 | ] ; |
564 | - sp:predicate <http://www.epim.no/schemas/mprml/1#issueDate> ; | 645 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
646 | + sp:subject spin:_this | ||
647 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
648 | + sp:predicate rdf:type ; | ||
565 | sp:subject | 649 | sp:subject |
566 | - [ sp:varName "contextRef"^^xsd:string | 650 | + [ sp:varName "productionOperationRef"^^xsd:string |
651 | + ] | ||
652 | + ] [ sp:object | ||
653 | + [ sp:varName "installationRef"^^xsd:string | ||
654 | + ] ; | ||
655 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
656 | + sp:subject | ||
657 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
567 | ] | 658 | ] |
568 | ]) | 659 | ]) |
569 | - ] [ rdf:type sp:Optional ; | 660 | + ] [ rdf:type sp:NotExists ; |
570 | sp:elements ([ sp:object | 661 | sp:elements ([ sp:object |
571 | - [ sp:varName "titleRef"^^xsd:string | 662 | + [ sp:varName "contextRef"^^xsd:string |
572 | ] ; | 663 | ] ; |
573 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | 664 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
665 | + sp:subject spin:_this | ||
666 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
667 | + sp:predicate rdf:type ; | ||
574 | sp:subject | 668 | sp:subject |
575 | [ sp:varName "contextRef"^^xsd:string | 669 | [ sp:varName "contextRef"^^xsd:string |
576 | ] | 670 | ] |
577 | ] [ sp:object | 671 | ] [ sp:object |
578 | - [ sp:varName "title"^^xsd:string | 672 | + [ sp:varName "installationRef"^^xsd:string |
579 | ] ; | 673 | ] ; |
580 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 674 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
581 | sp:subject | 675 | sp:subject |
582 | - [ sp:varName "titleRef"^^xsd:string | 676 | + [ sp:varName "contextRef"^^xsd:string |
583 | ] | 677 | ] |
584 | ]) | 678 | ]) |
585 | - ] [ sp:object spin:_this ; | ||
586 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
587 | - sp:subject | ||
588 | - [ sp:varName "productionReport"^^xsd:string | ||
589 | - ] | ||
590 | ] [ rdf:type sp:Bind ; | 679 | ] [ rdf:type sp:Bind ; |
591 | sp:expression | 680 | sp:expression |
592 | [ rdf:type ep-spin-lib:normalizeString ; | 681 | [ rdf:type ep-spin-lib:normalizeString ; |
593 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 682 | + sp:arg1 "noInstallation" |
594 | - ] | ||
595 | ] ; | 683 | ] ; |
596 | sp:variable | 684 | sp:variable |
597 | - [ sp:varName "normalizedKind"^^xsd:string | 685 | + [ sp:varName "normalizedName"^^xsd:string |
598 | ] | 686 | ] |
599 | ] [ rdf:type sp:Bind ; | 687 | ] [ rdf:type sp:Bind ; |
600 | sp:expression | 688 | sp:expression |
601 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 689 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; |
602 | - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | 690 | + sp:arg1 [ sp:varName "normalizedName"^^xsd:string |
691 | + ] ; | ||
692 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
603 | ] | 693 | ] |
604 | ] ; | 694 | ] ; |
605 | sp:variable | 695 | sp:variable |
606 | - [ sp:varName "reportKind"^^xsd:string | 696 | + [ sp:varName "productionReport"^^xsd:string |
607 | ] | 697 | ] |
608 | ]) | 698 | ]) |
609 | ] ; | 699 | ] ; |
610 | spin:rule | 700 | spin:rule |
611 | [ rdf:type sp:Construct ; | 701 | [ rdf:type sp:Construct ; |
612 | - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; | 702 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; |
613 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 703 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
614 | sp:predicate rdf:type ; | 704 | sp:predicate rdf:type ; |
615 | sp:subject | 705 | sp:subject |
616 | [ sp:varName "productionReport"^^xsd:string | 706 | [ sp:varName "productionReport"^^xsd:string |
617 | ] | 707 | ] |
708 | + ] [ sp:object _:b5 ; | ||
709 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
710 | + sp:subject | ||
711 | + [ sp:varName "productionReport"^^xsd:string | ||
712 | + ] | ||
713 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
714 | + sp:predicate rdf:type ; | ||
715 | + sp:subject _:b5 | ||
716 | + ] [ sp:object | ||
717 | + [ sp:varName "installation"^^xsd:string | ||
718 | + ] ; | ||
719 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
720 | + sp:subject _:b5 | ||
618 | ] [ sp:object spin:_this ; | 721 | ] [ sp:object spin:_this ; |
619 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 722 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
620 | sp:subject | 723 | sp:subject |
... | @@ -627,48 +730,29 @@ | ... | @@ -627,48 +730,29 @@ |
627 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 730 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
628 | sp:subject spin:_this | 731 | sp:subject spin:_this |
629 | ] [ sp:object | 732 | ] [ sp:object |
630 | - [ sp:varName "productionOperationRef"^^xsd:string | 733 | + [ sp:varName "contextRef"^^xsd:string |
631 | ] ; | 734 | ] ; |
632 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 735 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
633 | sp:subject spin:_this | 736 | sp:subject spin:_this |
634 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 737 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
635 | sp:predicate rdf:type ; | 738 | sp:predicate rdf:type ; |
636 | sp:subject | 739 | sp:subject |
637 | - [ sp:varName "productionOperationRef"^^xsd:string | 740 | + [ sp:varName "contextRef"^^xsd:string |
638 | ] | 741 | ] |
639 | ] [ sp:object | 742 | ] [ sp:object |
640 | [ sp:varName "installationRef"^^xsd:string | 743 | [ sp:varName "installationRef"^^xsd:string |
641 | ] ; | 744 | ] ; |
642 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 745 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
643 | sp:subject | 746 | sp:subject |
644 | - [ sp:varName "productionOperationRef"^^xsd:string | 747 | + [ sp:varName "contextRef"^^xsd:string |
748 | + ] | ||
749 | + ] [ sp:object | ||
750 | + [ sp:varName "installationRef"^^xsd:string | ||
751 | + ] ; | ||
752 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
753 | + sp:subject | ||
754 | + [ sp:varName "installation"^^xsd:string | ||
645 | ] | 755 | ] |
646 | - ] [ rdf:type sp:NotExists ; | ||
647 | - sp:elements ([ sp:object | ||
648 | - [ sp:varName "contextRef"^^xsd:string | ||
649 | - ] ; | ||
650 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
651 | - sp:subject spin:_this | ||
652 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
653 | - sp:predicate rdf:type ; | ||
654 | - sp:subject | ||
655 | - [ sp:varName "contextRef"^^xsd:string | ||
656 | - ] | ||
657 | - ] [ sp:object | ||
658 | - [ sp:varName "installationRef"^^xsd:string | ||
659 | - ] ; | ||
660 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
661 | - sp:subject | ||
662 | - [ sp:varName "contextRef"^^xsd:string | ||
663 | - ] | ||
664 | - ] [ sp:object | ||
665 | - [ sp:varName "name"^^xsd:string | ||
666 | - ] ; | ||
667 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
668 | - sp:subject | ||
669 | - [ sp:varName "installationRef"^^xsd:string | ||
670 | - ] | ||
671 | - ]) | ||
672 | ] [ rdf:type sp:Bind ; | 756 | ] [ rdf:type sp:Bind ; |
673 | sp:expression | 757 | sp:expression |
674 | [ rdf:type spl:object ; | 758 | [ rdf:type spl:object ; |
... | @@ -694,12 +778,45 @@ | ... | @@ -694,12 +778,45 @@ |
694 | ] ; | 778 | ] ; |
695 | spin:rule | 779 | spin:rule |
696 | [ rdf:type sp:Construct ; | 780 | [ rdf:type sp:Construct ; |
697 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 781 | + rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; |
698 | sp:templates ([ sp:object | 782 | sp:templates ([ sp:object |
699 | - [ sp:varName "intervalIdentifier"^^xsd:string | 783 | + [ sp:varName "reportKind"^^xsd:string |
700 | ] ; | 784 | ] ; |
701 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 785 | + sp:predicate rdf:type ; |
702 | - sp:subject spin:_this | 786 | + sp:subject |
787 | + [ sp:varName "productionReport"^^xsd:string | ||
788 | + ] | ||
789 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | ||
790 | + sp:predicate rdfs:subClassOf ; | ||
791 | + sp:subject | ||
792 | + [ sp:varName "reportKind"^^xsd:string | ||
793 | + ] | ||
794 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
795 | + sp:predicate rdf:type ; | ||
796 | + sp:subject | ||
797 | + [ sp:varName "reportKind"^^xsd:string | ||
798 | + ] | ||
799 | + ] [ sp:object | ||
800 | + [ sp:varName "kind"^^xsd:string | ||
801 | + ] ; | ||
802 | + sp:predicate rdfs:label ; | ||
803 | + sp:subject | ||
804 | + [ sp:varName "reportKind"^^xsd:string | ||
805 | + ] | ||
806 | + ] [ sp:object | ||
807 | + [ sp:varName "issueDate"^^xsd:string | ||
808 | + ] ; | ||
809 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-report#issuedAt> ; | ||
810 | + sp:subject | ||
811 | + [ sp:varName "productionReport"^^xsd:string | ||
812 | + ] | ||
813 | + ] [ sp:object | ||
814 | + [ sp:varName "title"^^xsd:string | ||
815 | + ] ; | ||
816 | + sp:predicate rdfs:label ; | ||
817 | + sp:subject | ||
818 | + [ sp:varName "productionReport"^^xsd:string | ||
819 | + ] | ||
703 | ]) ; | 820 | ]) ; |
704 | sp:where ([ sp:object | 821 | sp:where ([ sp:object |
705 | [ sp:varName "contextRef"^^xsd:string | 822 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -711,44 +828,67 @@ | ... | @@ -711,44 +828,67 @@ |
711 | sp:subject | 828 | sp:subject |
712 | [ sp:varName "contextRef"^^xsd:string | 829 | [ sp:varName "contextRef"^^xsd:string |
713 | ] | 830 | ] |
714 | - ] [ sp:object | 831 | + ] [ rdf:type sp:Optional ; |
715 | - [ sp:varName "date"^^xsd:string | ||
716 | - ] ; | ||
717 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
718 | - sp:subject | ||
719 | - [ sp:varName "contextRef"^^xsd:string | ||
720 | - ] | ||
721 | - ] [ rdf:type sp:NotExists ; | ||
722 | sp:elements ([ sp:object | 832 | sp:elements ([ sp:object |
723 | - [ sp:varName "dateStart"^^xsd:string | 833 | + [ sp:varName "kind"^^xsd:string |
724 | ] ; | 834 | ] ; |
725 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 835 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
726 | sp:subject | 836 | sp:subject |
727 | [ sp:varName "contextRef"^^xsd:string | 837 | [ sp:varName "contextRef"^^xsd:string |
728 | ] | 838 | ] |
729 | ]) | 839 | ]) |
730 | - ] [ sp:object | 840 | + ] [ rdf:type sp:Optional ; |
731 | - [ sp:varName "dateEnd"^^xsd:string | 841 | + sp:elements ([ sp:object |
732 | - ] ; | 842 | + [ sp:varName "issueDate"^^xsd:string |
733 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 843 | + ] ; |
844 | + sp:predicate <http://www.epim.no/schemas/mprml/1#issueDate> ; | ||
845 | + sp:subject | ||
846 | + [ sp:varName "contextRef"^^xsd:string | ||
847 | + ] | ||
848 | + ]) | ||
849 | + ] [ rdf:type sp:Optional ; | ||
850 | + sp:elements ([ sp:object | ||
851 | + [ sp:varName "titleRef"^^xsd:string | ||
852 | + ] ; | ||
853 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
854 | + sp:subject | ||
855 | + [ sp:varName "contextRef"^^xsd:string | ||
856 | + ] | ||
857 | + ] [ sp:object | ||
858 | + [ sp:varName "title"^^xsd:string | ||
859 | + ] ; | ||
860 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
861 | + sp:subject | ||
862 | + [ sp:varName "titleRef"^^xsd:string | ||
863 | + ] | ||
864 | + ]) | ||
865 | + ] [ sp:object spin:_this ; | ||
866 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
734 | sp:subject | 867 | sp:subject |
735 | - [ sp:varName "contextRef"^^xsd:string | 868 | + [ sp:varName "productionReport"^^xsd:string |
736 | ] | 869 | ] |
737 | ] [ rdf:type sp:Bind ; | 870 | ] [ rdf:type sp:Bind ; |
738 | sp:expression | 871 | sp:expression |
739 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 872 | + [ rdf:type ep-spin-lib:normalizeString ; |
740 | - sp:arg1 [ sp:varName "date"^^xsd:string | 873 | + sp:arg1 [ sp:varName "kind"^^xsd:string |
741 | - ] ; | ||
742 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
743 | ] | 874 | ] |
744 | ] ; | 875 | ] ; |
745 | sp:variable | 876 | sp:variable |
746 | - [ sp:varName "intervalIdentifier"^^xsd:string | 877 | + [ sp:varName "normalizedKind"^^xsd:string |
878 | + ] | ||
879 | + ] [ rdf:type sp:Bind ; | ||
880 | + sp:expression | ||
881 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
882 | + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | ||
883 | + ] | ||
884 | + ] ; | ||
885 | + sp:variable | ||
886 | + [ sp:varName "reportKind"^^xsd:string | ||
747 | ] | 887 | ] |
748 | ]) | 888 | ]) |
749 | ] . | 889 | ] . |
750 | 890 | ||
751 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 891 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> |
752 | rdf:type owl:Ontology ; | 892 | rdf:type owl:Ontology ; |
753 | - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 893 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; |
754 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 894 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment