Showing
1 changed file
with
480 additions
and
225 deletions
... | @@ -20,126 +20,72 @@ | ... | @@ -20,126 +20,72 @@ |
20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
21 | spin:rule | 21 | spin:rule |
22 | [ rdf:type sp:Construct ; | 22 | [ rdf:type sp:Construct ; |
23 | - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | 23 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from productVolume/installation where the installation is a field"^^xsd:string ; |
24 | - sp:templates ([ sp:object _:b1 ; | 24 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
25 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
26 | - sp:subject | ||
27 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
28 | - ] | ||
29 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
30 | - sp:predicate rdf:type ; | ||
31 | - sp:subject _:b1 | ||
32 | - ] [ sp:object | ||
33 | - [ sp:varName "operator"^^xsd:string | ||
34 | - ] ; | ||
35 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
36 | - sp:subject _:b1 | ||
37 | - ]) ; | ||
38 | - sp:where ([ sp:object | ||
39 | - [ sp:varName "contextRef"^^xsd:string | ||
40 | - ] ; | ||
41 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
42 | - sp:subject spin:_this | ||
43 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
44 | sp:predicate rdf:type ; | 25 | sp:predicate rdf:type ; |
45 | sp:subject | 26 | sp:subject |
46 | - [ sp:varName "contextRef"^^xsd:string | 27 | + [ sp:varName "productionReport"^^xsd:string |
47 | - ] | ||
48 | - ] [ sp:object | ||
49 | - [ sp:varName "operatorRef"^^xsd:string | ||
50 | - ] ; | ||
51 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
52 | - sp:subject | ||
53 | - [ sp:varName "contextRef"^^xsd:string | ||
54 | - ] | ||
55 | - ] [ sp:object | ||
56 | - [ sp:varName "operatorRef"^^xsd:string | ||
57 | - ] ; | ||
58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
59 | - sp:subject | ||
60 | - [ sp:varName "operator"^^xsd:string | ||
61 | ] | 28 | ] |
62 | ] [ sp:object spin:_this ; | 29 | ] [ sp:object spin:_this ; |
63 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 30 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
64 | sp:subject | 31 | sp:subject |
65 | [ sp:varName "productionReport"^^xsd:string | 32 | [ sp:varName "productionReport"^^xsd:string |
66 | ] | 33 | ] |
67 | - ] [ sp:object | 34 | + ]) ; |
68 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 35 | + sp:where ([ sp:object |
69 | - ] ; | ||
70 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
71 | - sp:subject | ||
72 | - [ sp:varName "productionReport"^^xsd:string | ||
73 | - ] | ||
74 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
75 | - sp:predicate rdf:type ; | ||
76 | - sp:subject | ||
77 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
78 | - ] | ||
79 | - ]) | ||
80 | - ] ; | ||
81 | - spin:rule | ||
82 | - [ rdf:type sp:Construct ; | ||
83 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | ||
84 | - sp:templates ([ sp:object | ||
85 | [ sp:varName "intervalIdentifier"^^xsd:string | 36 | [ sp:varName "intervalIdentifier"^^xsd:string |
86 | ] ; | 37 | ] ; |
87 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 38 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
88 | sp:subject spin:_this | 39 | sp:subject spin:_this |
89 | ] [ sp:object | 40 | ] [ sp:object |
90 | - [ sp:varName "date"^^xsd:string | 41 | + [ sp:varName "productVolumeRef"^^xsd:string |
91 | - ] ; | ||
92 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
93 | - sp:subject spin:_this | ||
94 | - ] [ sp:object | ||
95 | - [ sp:varName "dateEnd"^^xsd:string | ||
96 | - ] ; | ||
97 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
98 | - sp:subject spin:_this | ||
99 | - ]) ; | ||
100 | - sp:where ([ sp:object | ||
101 | - [ sp:varName "contextRef"^^xsd:string | ||
102 | ] ; | 42 | ] ; |
103 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 43 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
104 | sp:subject spin:_this | 44 | sp:subject spin:_this |
105 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 45 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
106 | sp:predicate rdf:type ; | 46 | sp:predicate rdf:type ; |
107 | sp:subject | 47 | sp:subject |
108 | - [ sp:varName "contextRef"^^xsd:string | 48 | + [ sp:varName "productVolumeRef"^^xsd:string |
109 | ] | 49 | ] |
110 | ] [ sp:object | 50 | ] [ sp:object |
111 | - [ sp:varName "date"^^xsd:string | 51 | + [ sp:varName "installationRef"^^xsd:string |
112 | ] ; | 52 | ] ; |
113 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 53 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
114 | sp:subject | 54 | sp:subject |
115 | - [ sp:varName "contextRef"^^xsd:string | 55 | + [ sp:varName "productVolumeRef"^^xsd:string |
56 | + ] | ||
57 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
58 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
59 | + sp:subject | ||
60 | + [ sp:varName "installationRef"^^xsd:string | ||
116 | ] | 61 | ] |
117 | - ] [ rdf:type sp:NotExists ; | ||
118 | - sp:elements ([ sp:object | ||
119 | - [ sp:varName "dateStart"^^xsd:string | ||
120 | - ] ; | ||
121 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
122 | - sp:subject | ||
123 | - [ sp:varName "contextRef"^^xsd:string | ||
124 | - ] | ||
125 | - ]) | ||
126 | ] [ sp:object | 62 | ] [ sp:object |
127 | - [ sp:varName "dateEnd"^^xsd:string | 63 | + [ sp:varName "installationRef"^^xsd:string |
128 | ] ; | 64 | ] ; |
129 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 65 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
130 | sp:subject | 66 | sp:subject |
131 | - [ sp:varName "contextRef"^^xsd:string | 67 | + [ sp:varName "installation"^^xsd:string |
132 | ] | 68 | ] |
133 | ] [ rdf:type sp:Bind ; | 69 | ] [ rdf:type sp:Bind ; |
134 | sp:expression | 70 | sp:expression |
135 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 71 | + [ rdf:type spl:object ; |
136 | - sp:arg1 [ sp:varName "date"^^xsd:string | 72 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string |
137 | ] ; | 73 | ] ; |
138 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 74 | + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> |
75 | + ] ; | ||
76 | + sp:variable | ||
77 | + [ sp:varName "normalizedInstallationName"^^xsd:string | ||
78 | + ] | ||
79 | + ] [ rdf:type sp:Bind ; | ||
80 | + sp:expression | ||
81 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
82 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
83 | + ] ; | ||
84 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
139 | ] | 85 | ] |
140 | ] ; | 86 | ] ; |
141 | sp:variable | 87 | sp:variable |
142 | - [ sp:varName "intervalIdentifier"^^xsd:string | 88 | + [ sp:varName "productionReport"^^xsd:string |
143 | ] | 89 | ] |
144 | ]) | 90 | ]) |
145 | ] ; | 91 | ] ; |
... | @@ -201,52 +147,6 @@ | ... | @@ -201,52 +147,6 @@ |
201 | ] ; | 147 | ] ; |
202 | spin:rule | 148 | spin:rule |
203 | [ rdf:type sp:Construct ; | 149 | [ rdf:type sp:Construct ; |
204 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | ||
205 | - sp:templates ([ sp:object "noDate" ; | ||
206 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
207 | - sp:subject spin:_this | ||
208 | - ]) ; | ||
209 | - sp:where ([ sp:object | ||
210 | - [ sp:varName "contextRef"^^xsd:string | ||
211 | - ] ; | ||
212 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
213 | - sp:subject spin:_this | ||
214 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
215 | - sp:predicate rdf:type ; | ||
216 | - sp:subject | ||
217 | - [ sp:varName "contextRef"^^xsd:string | ||
218 | - ] | ||
219 | - ] [ rdf:type sp:NotExists ; | ||
220 | - sp:elements ([ sp:object | ||
221 | - [ sp:varName "dateEnd"^^xsd:string | ||
222 | - ] ; | ||
223 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
224 | - sp:subject | ||
225 | - [ sp:varName "contextRef"^^xsd:string | ||
226 | - ] | ||
227 | - ]) | ||
228 | - ] [ rdf:type sp:NotExists ; | ||
229 | - sp:elements ([ sp:object | ||
230 | - [ sp:varName "date"^^xsd:string | ||
231 | - ] ; | ||
232 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
233 | - sp:subject | ||
234 | - [ sp:varName "contextRef"^^xsd:string | ||
235 | - ] | ||
236 | - ]) | ||
237 | - ] [ rdf:type sp:NotExists ; | ||
238 | - sp:elements ([ sp:object | ||
239 | - [ sp:varName "dateStart"^^xsd:string | ||
240 | - ] ; | ||
241 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
242 | - sp:subject | ||
243 | - [ sp:varName "contextRef"^^xsd:string | ||
244 | - ] | ||
245 | - ]) | ||
246 | - ]) | ||
247 | - ] ; | ||
248 | - spin:rule | ||
249 | - [ rdf:type sp:Construct ; | ||
250 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 150 | rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; |
251 | sp:templates ([ sp:object | 151 | sp:templates ([ sp:object |
252 | [ sp:varName "date"^^xsd:string | 152 | [ sp:varName "date"^^xsd:string |
... | @@ -303,20 +203,13 @@ | ... | @@ -303,20 +203,13 @@ |
303 | ] ; | 203 | ] ; |
304 | spin:rule | 204 | spin:rule |
305 | [ rdf:type sp:Construct ; | 205 | [ rdf:type sp:Construct ; |
306 | - rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | 206 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; |
307 | sp:templates ([ sp:object | 207 | sp:templates ([ sp:object |
308 | - [ sp:varName "month"^^xsd:string | 208 | + [ sp:varName "contextFacility"^^xsd:string |
309 | - ] ; | ||
310 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
311 | - sp:subject | ||
312 | - [ sp:varName "productionReport"^^xsd:string | ||
313 | - ] | ||
314 | - ] [ sp:object | ||
315 | - [ sp:varName "title"^^xsd:string | ||
316 | ] ; | 209 | ] ; |
317 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 210 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
318 | sp:subject | 211 | sp:subject |
319 | - [ sp:varName "productionReport"^^xsd:string | 212 | + [ sp:varName "productionFacility"^^xsd:string |
320 | ] | 213 | ] |
321 | ]) ; | 214 | ]) ; |
322 | sp:where ([ sp:object | 215 | sp:where ([ sp:object |
... | @@ -329,144 +222,151 @@ | ... | @@ -329,144 +222,151 @@ |
329 | sp:subject | 222 | sp:subject |
330 | [ sp:varName "contextRef"^^xsd:string | 223 | [ sp:varName "contextRef"^^xsd:string |
331 | ] | 224 | ] |
332 | - ] [ rdf:type sp:Optional ; | 225 | + ] [ sp:object |
333 | - sp:elements ([ sp:object | 226 | + [ sp:varName "contectFacilityRef"^^xsd:string |
334 | - [ sp:varName "month"^^xsd:string | 227 | + ] ; |
335 | - ] ; | 228 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
336 | - sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; | 229 | + sp:subject |
337 | - sp:subject | 230 | + [ sp:varName "contextRef"^^xsd:string |
338 | - [ sp:varName "contextRef"^^xsd:string | 231 | + ] |
339 | - ] | 232 | + ] [ sp:object |
340 | - ]) | 233 | + [ sp:varName "contextFacilityRef"^^xsd:string |
341 | - ] [ rdf:type sp:Optional ; | 234 | + ] ; |
342 | - sp:elements ([ sp:object | 235 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
343 | - [ sp:varName "titleRef"^^xsd:string | 236 | + sp:subject |
344 | - ] ; | 237 | + [ sp:varName "contextFacility"^^xsd:string |
345 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | 238 | + ] |
346 | - sp:subject | ||
347 | - [ sp:varName "contextRef"^^xsd:string | ||
348 | - ] | ||
349 | - ] [ sp:object | ||
350 | - [ sp:varName "title"^^xsd:string | ||
351 | - ] ; | ||
352 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
353 | - sp:subject | ||
354 | - [ sp:varName "titleRef"^^xsd:string | ||
355 | - ] | ||
356 | - ]) | ||
357 | ] [ sp:object spin:_this ; | 239 | ] [ sp:object spin:_this ; |
358 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 240 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
359 | sp:subject | 241 | sp:subject |
360 | [ sp:varName "productionReport"^^xsd:string | 242 | [ sp:varName "productionReport"^^xsd:string |
361 | ] | 243 | ] |
244 | + ] [ sp:object | ||
245 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
246 | + ] ; | ||
247 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
248 | + sp:subject | ||
249 | + [ sp:varName "productionReport"^^xsd:string | ||
250 | + ] | ||
251 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
252 | + sp:predicate rdf:type ; | ||
253 | + sp:subject | ||
254 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
255 | + ] | ||
256 | + ] [ sp:object | ||
257 | + [ sp:varName "productionFacility"^^xsd:string | ||
258 | + ] ; | ||
259 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
260 | + sp:subject | ||
261 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
262 | + ] | ||
362 | ]) | 263 | ]) |
363 | ] ; | 264 | ] ; |
364 | spin:rule | 265 | spin:rule |
365 | [ rdf:type sp:Construct ; | 266 | [ rdf:type sp:Construct ; |
366 | - rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ; | 267 | + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; |
367 | - sp:templates ([ sp:object _:b2 ; | 268 | + sp:templates ([ sp:object _:b1 ; |
368 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | 269 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
369 | sp:subject | 270 | sp:subject |
370 | - [ sp:varName "productionReport"^^xsd:string | 271 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
371 | ] | 272 | ] |
372 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 273 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
373 | sp:predicate rdf:type ; | 274 | sp:predicate rdf:type ; |
374 | - sp:subject _:b2 | 275 | + sp:subject _:b1 |
375 | ] [ sp:object | 276 | ] [ sp:object |
376 | - [ sp:varName "installation"^^xsd:string | 277 | + [ sp:varName "operator"^^xsd:string |
377 | ] ; | 278 | ] ; |
378 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 279 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
379 | - sp:subject _:b2 | 280 | + sp:subject _:b1 |
380 | ]) ; | 281 | ]) ; |
381 | sp:where ([ sp:object | 282 | sp:where ([ sp:object |
382 | [ sp:varName "contextRef"^^xsd:string | 283 | [ sp:varName "contextRef"^^xsd:string |
383 | ] ; | 284 | ] ; |
384 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 285 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
385 | sp:subject spin:_this | 286 | sp:subject spin:_this |
386 | - ] [ sp:object spin:_this ; | ||
387 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
388 | - sp:subject | ||
389 | - [ sp:varName "productionReport"^^xsd:string | ||
390 | - ] | ||
391 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 287 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
392 | sp:predicate rdf:type ; | 288 | sp:predicate rdf:type ; |
393 | sp:subject | 289 | sp:subject |
394 | [ sp:varName "contextRef"^^xsd:string | 290 | [ sp:varName "contextRef"^^xsd:string |
395 | ] | 291 | ] |
396 | ] [ sp:object | 292 | ] [ sp:object |
397 | - [ sp:varName "installationRef"^^xsd:string | 293 | + [ sp:varName "operatorRef"^^xsd:string |
398 | ] ; | 294 | ] ; |
399 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 295 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
400 | sp:subject | 296 | sp:subject |
401 | [ sp:varName "contextRef"^^xsd:string | 297 | [ sp:varName "contextRef"^^xsd:string |
402 | ] | 298 | ] |
403 | ] [ sp:object | 299 | ] [ sp:object |
404 | - [ sp:varName "installationRef"^^xsd:string | 300 | + [ sp:varName "operatorRef"^^xsd:string |
405 | ] ; | 301 | ] ; |
406 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 302 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
407 | sp:subject | 303 | sp:subject |
408 | - [ sp:varName "installation"^^xsd:string | 304 | + [ sp:varName "operator"^^xsd:string |
305 | + ] | ||
306 | + ] [ sp:object spin:_this ; | ||
307 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
308 | + sp:subject | ||
309 | + [ sp:varName "productionReport"^^xsd:string | ||
310 | + ] | ||
311 | + ] [ sp:object | ||
312 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
313 | + ] ; | ||
314 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
315 | + sp:subject | ||
316 | + [ sp:varName "productionReport"^^xsd:string | ||
317 | + ] | ||
318 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
319 | + sp:predicate rdf:type ; | ||
320 | + sp:subject | ||
321 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
409 | ] | 322 | ] |
410 | ]) | 323 | ]) |
411 | ] ; | 324 | ] ; |
412 | spin:rule | 325 | spin:rule |
413 | [ rdf:type sp:Construct ; | 326 | [ rdf:type sp:Construct ; |
414 | - rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | 327 | + rdfs:comment "STEP 10001q Set the submitting installation"^^xsd:string ; |
415 | - sp:templates ([ sp:object | 328 | + sp:templates ([ sp:object _:b2 ; |
416 | - [ sp:varName "contextFacility"^^xsd:string | 329 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
417 | - ] ; | ||
418 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
419 | sp:subject | 330 | sp:subject |
420 | - [ sp:varName "productionFacility"^^xsd:string | 331 | + [ sp:varName "productionReport"^^xsd:string |
421 | ] | 332 | ] |
333 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
334 | + sp:predicate rdf:type ; | ||
335 | + sp:subject _:b2 | ||
336 | + ] [ sp:object | ||
337 | + [ sp:varName "installation"^^xsd:string | ||
338 | + ] ; | ||
339 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
340 | + sp:subject _:b2 | ||
422 | ]) ; | 341 | ]) ; |
423 | sp:where ([ sp:object | 342 | sp:where ([ sp:object |
424 | [ sp:varName "contextRef"^^xsd:string | 343 | [ sp:varName "contextRef"^^xsd:string |
425 | ] ; | 344 | ] ; |
426 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 345 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
427 | sp:subject spin:_this | 346 | sp:subject spin:_this |
347 | + ] [ sp:object spin:_this ; | ||
348 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
349 | + sp:subject | ||
350 | + [ sp:varName "productionReport"^^xsd:string | ||
351 | + ] | ||
428 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 352 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
429 | sp:predicate rdf:type ; | 353 | sp:predicate rdf:type ; |
430 | sp:subject | 354 | sp:subject |
431 | [ sp:varName "contextRef"^^xsd:string | 355 | [ sp:varName "contextRef"^^xsd:string |
432 | ] | 356 | ] |
433 | ] [ sp:object | 357 | ] [ sp:object |
434 | - [ sp:varName "contectFacilityRef"^^xsd:string | 358 | + [ sp:varName "installationRef"^^xsd:string |
435 | ] ; | 359 | ] ; |
436 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 360 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
437 | sp:subject | 361 | sp:subject |
438 | [ sp:varName "contextRef"^^xsd:string | 362 | [ sp:varName "contextRef"^^xsd:string |
439 | ] | 363 | ] |
440 | ] [ sp:object | 364 | ] [ sp:object |
441 | - [ sp:varName "contextFacilityRef"^^xsd:string | 365 | + [ sp:varName "installationRef"^^xsd:string |
442 | ] ; | 366 | ] ; |
443 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 367 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
444 | sp:subject | 368 | sp:subject |
445 | - [ sp:varName "contextFacility"^^xsd:string | 369 | + [ sp:varName "installation"^^xsd:string |
446 | - ] | ||
447 | - ] [ sp:object spin:_this ; | ||
448 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
449 | - sp:subject | ||
450 | - [ sp:varName "productionReport"^^xsd:string | ||
451 | - ] | ||
452 | - ] [ sp:object | ||
453 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
454 | - ] ; | ||
455 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
456 | - sp:subject | ||
457 | - [ sp:varName "productionReport"^^xsd:string | ||
458 | - ] | ||
459 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
460 | - sp:predicate rdf:type ; | ||
461 | - sp:subject | ||
462 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
463 | - ] | ||
464 | - ] [ sp:object | ||
465 | - [ sp:varName "productionFacility"^^xsd:string | ||
466 | - ] ; | ||
467 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
468 | - sp:subject | ||
469 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
470 | ] | 370 | ] |
471 | ]) | 371 | ]) |
472 | ] ; | 372 | ] ; |
... | @@ -528,7 +428,132 @@ | ... | @@ -528,7 +428,132 @@ |
528 | ] ; | 428 | ] ; |
529 | spin:rule | 429 | spin:rule |
530 | [ rdf:type sp:Construct ; | 430 | [ rdf:type sp:Construct ; |
531 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from productVolume/installation where the installation is a field"^^xsd:string ; | 431 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
432 | + sp:templates ([ sp:object | ||
433 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
434 | + ] ; | ||
435 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
436 | + sp:subject spin:_this | ||
437 | + ] [ sp:object | ||
438 | + [ sp:varName "date"^^xsd:string | ||
439 | + ] ; | ||
440 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
441 | + sp:subject spin:_this | ||
442 | + ] [ sp:object | ||
443 | + [ sp:varName "dateEnd"^^xsd:string | ||
444 | + ] ; | ||
445 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
446 | + sp:subject spin:_this | ||
447 | + ]) ; | ||
448 | + sp:where ([ sp:object | ||
449 | + [ sp:varName "contextRef"^^xsd:string | ||
450 | + ] ; | ||
451 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
452 | + sp:subject spin:_this | ||
453 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
454 | + sp:predicate rdf:type ; | ||
455 | + sp:subject | ||
456 | + [ sp:varName "contextRef"^^xsd:string | ||
457 | + ] | ||
458 | + ] [ sp:object | ||
459 | + [ sp:varName "date"^^xsd:string | ||
460 | + ] ; | ||
461 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
462 | + sp:subject | ||
463 | + [ sp:varName "contextRef"^^xsd:string | ||
464 | + ] | ||
465 | + ] [ rdf:type sp:NotExists ; | ||
466 | + sp:elements ([ sp:object | ||
467 | + [ sp:varName "dateStart"^^xsd:string | ||
468 | + ] ; | ||
469 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
470 | + sp:subject | ||
471 | + [ sp:varName "contextRef"^^xsd:string | ||
472 | + ] | ||
473 | + ]) | ||
474 | + ] [ sp:object | ||
475 | + [ sp:varName "dateEnd"^^xsd:string | ||
476 | + ] ; | ||
477 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
478 | + sp:subject | ||
479 | + [ sp:varName "contextRef"^^xsd:string | ||
480 | + ] | ||
481 | + ] [ rdf:type sp:Bind ; | ||
482 | + sp:expression | ||
483 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
484 | + sp:arg1 [ sp:varName "date"^^xsd:string | ||
485 | + ] ; | ||
486 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
487 | + ] | ||
488 | + ] ; | ||
489 | + sp:variable | ||
490 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
491 | + ] | ||
492 | + ]) | ||
493 | + ] ; | ||
494 | + spin:rule | ||
495 | + [ rdf:type sp:Construct ; | ||
496 | + rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; | ||
497 | + sp:templates ([ sp:object | ||
498 | + [ sp:varName "month"^^xsd:string | ||
499 | + ] ; | ||
500 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ; | ||
501 | + sp:subject | ||
502 | + [ sp:varName "productionReport"^^xsd:string | ||
503 | + ] | ||
504 | + ] [ sp:object | ||
505 | + [ sp:varName "title"^^xsd:string | ||
506 | + ] ; | ||
507 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
508 | + sp:subject | ||
509 | + [ sp:varName "productionReport"^^xsd:string | ||
510 | + ] | ||
511 | + ]) ; | ||
512 | + sp:where ([ sp:object | ||
513 | + [ sp:varName "contextRef"^^xsd:string | ||
514 | + ] ; | ||
515 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
516 | + sp:subject spin:_this | ||
517 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
518 | + sp:predicate rdf:type ; | ||
519 | + sp:subject | ||
520 | + [ sp:varName "contextRef"^^xsd:string | ||
521 | + ] | ||
522 | + ] [ rdf:type sp:Optional ; | ||
523 | + sp:elements ([ sp:object | ||
524 | + [ sp:varName "month"^^xsd:string | ||
525 | + ] ; | ||
526 | + sp:predicate <http://www.epim.no/schemas/mprml/1#month> ; | ||
527 | + sp:subject | ||
528 | + [ sp:varName "contextRef"^^xsd:string | ||
529 | + ] | ||
530 | + ]) | ||
531 | + ] [ rdf:type sp:Optional ; | ||
532 | + sp:elements ([ sp:object | ||
533 | + [ sp:varName "titleRef"^^xsd:string | ||
534 | + ] ; | ||
535 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
536 | + sp:subject | ||
537 | + [ sp:varName "contextRef"^^xsd:string | ||
538 | + ] | ||
539 | + ] [ sp:object | ||
540 | + [ sp:varName "title"^^xsd:string | ||
541 | + ] ; | ||
542 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
543 | + sp:subject | ||
544 | + [ sp:varName "titleRef"^^xsd:string | ||
545 | + ] | ||
546 | + ]) | ||
547 | + ] [ sp:object spin:_this ; | ||
548 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
549 | + sp:subject | ||
550 | + [ sp:varName "productionReport"^^xsd:string | ||
551 | + ] | ||
552 | + ]) | ||
553 | + ] ; | ||
554 | + spin:rule | ||
555 | + [ rdf:type sp:Construct ; | ||
556 | + rdfs:comment "STEP 10001o Create the ProductionReport - unable to find a name"^^xsd:string ; | ||
532 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 557 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; |
533 | sp:predicate rdf:type ; | 558 | sp:predicate rdf:type ; |
534 | sp:subject | 559 | sp:subject |
... | @@ -545,6 +570,126 @@ | ... | @@ -545,6 +570,126 @@ |
545 | ] ; | 570 | ] ; |
546 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 571 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; |
547 | sp:subject spin:_this | 572 | sp:subject spin:_this |
573 | + ] [ rdf:type sp:NotExists ; | ||
574 | + sp:elements ([ sp:object | ||
575 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
576 | + ] ; | ||
577 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
578 | + sp:subject spin:_this | ||
579 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
580 | + sp:predicate rdf:type ; | ||
581 | + sp:subject | ||
582 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
583 | + ] | ||
584 | + ] [ sp:object | ||
585 | + [ sp:varName "installationRef"^^xsd:string | ||
586 | + ] ; | ||
587 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
588 | + sp:subject | ||
589 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
590 | + ] | ||
591 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
592 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
593 | + sp:subject | ||
594 | + [ sp:varName "installationRef"^^xsd:string | ||
595 | + ] | ||
596 | + ]) | ||
597 | + ] [ rdf:type sp:NotExists ; | ||
598 | + sp:elements ([ sp:object | ||
599 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
600 | + ] ; | ||
601 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
602 | + sp:subject spin:_this | ||
603 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
604 | + sp:predicate rdf:type ; | ||
605 | + sp:subject | ||
606 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
607 | + ] | ||
608 | + ] [ sp:object | ||
609 | + [ sp:varName "installationRefx"^^xsd:string | ||
610 | + ] ; | ||
611 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
612 | + sp:subject | ||
613 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
614 | + ] | ||
615 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
616 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
617 | + sp:subject | ||
618 | + [ sp:varName "installationRefx"^^xsd:string | ||
619 | + ] | ||
620 | + ]) | ||
621 | + ] [ rdf:type sp:Bind ; | ||
622 | + sp:expression | ||
623 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
624 | + sp:arg1 "installation-not-specified" ; | ||
625 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
626 | + ] | ||
627 | + ] ; | ||
628 | + sp:variable | ||
629 | + [ sp:varName "productionReport"^^xsd:string | ||
630 | + ] | ||
631 | + ]) | ||
632 | + ] ; | ||
633 | + spin:rule | ||
634 | + [ rdf:type sp:Construct ; | ||
635 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | ||
636 | + sp:templates ([ sp:object "noDate" ; | ||
637 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
638 | + sp:subject spin:_this | ||
639 | + ]) ; | ||
640 | + sp:where ([ sp:object | ||
641 | + [ sp:varName "contextRef"^^xsd:string | ||
642 | + ] ; | ||
643 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
644 | + sp:subject spin:_this | ||
645 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
646 | + sp:predicate rdf:type ; | ||
647 | + sp:subject | ||
648 | + [ sp:varName "contextRef"^^xsd:string | ||
649 | + ] | ||
650 | + ] [ rdf:type sp:NotExists ; | ||
651 | + sp:elements ([ sp:object | ||
652 | + [ sp:varName "dateEnd"^^xsd:string | ||
653 | + ] ; | ||
654 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
655 | + sp:subject | ||
656 | + [ sp:varName "contextRef"^^xsd:string | ||
657 | + ] | ||
658 | + ]) | ||
659 | + ] [ rdf:type sp:NotExists ; | ||
660 | + sp:elements ([ sp:object | ||
661 | + [ sp:varName "date"^^xsd:string | ||
662 | + ] ; | ||
663 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
664 | + sp:subject | ||
665 | + [ sp:varName "contextRef"^^xsd:string | ||
666 | + ] | ||
667 | + ]) | ||
668 | + ] [ rdf:type sp:NotExists ; | ||
669 | + sp:elements ([ sp:object | ||
670 | + [ sp:varName "dateStart"^^xsd:string | ||
671 | + ] ; | ||
672 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
673 | + sp:subject | ||
674 | + [ sp:varName "contextRef"^^xsd:string | ||
675 | + ] | ||
676 | + ]) | ||
677 | + ]) | ||
678 | + ] ; | ||
679 | + spin:rule | ||
680 | + [ rdf:type sp:Construct ; | ||
681 | + rdfs:comment "STEP 10001p Create the ProductionReport - check that different installations are not specified"^^xsd:string ; | ||
682 | + sp:templates ([ sp:object "Error - different installations specified for different parts of the same report" ; | ||
683 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
684 | + sp:subject | ||
685 | + [ sp:varName "productionReport"^^xsd:string | ||
686 | + ] | ||
687 | + ]) ; | ||
688 | + sp:where ([ sp:object | ||
689 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
690 | + ] ; | ||
691 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
692 | + sp:subject spin:_this | ||
548 | ] [ sp:object | 693 | ] [ sp:object |
549 | [ sp:varName "productVolumeRef"^^xsd:string | 694 | [ sp:varName "productVolumeRef"^^xsd:string |
550 | ] ; | 695 | ] ; |
... | @@ -562,18 +707,128 @@ | ... | @@ -562,18 +707,128 @@ |
562 | sp:subject | 707 | sp:subject |
563 | [ sp:varName "productVolumeRef"^^xsd:string | 708 | [ sp:varName "productVolumeRef"^^xsd:string |
564 | ] | 709 | ] |
565 | - ] [ sp:object | 710 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
711 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
712 | + sp:subject | ||
566 | [ sp:varName "installationRef"^^xsd:string | 713 | [ sp:varName "installationRef"^^xsd:string |
714 | + ] | ||
715 | + ] [ sp:object | ||
716 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
717 | + ] ; | ||
718 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
719 | + sp:subject spin:_this | ||
720 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
721 | + sp:predicate rdf:type ; | ||
722 | + sp:subject | ||
723 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
724 | + ] | ||
725 | + ] [ sp:object | ||
726 | + [ sp:varName "installationRefx"^^xsd:string | ||
567 | ] ; | 727 | ] ; |
728 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
729 | + sp:subject | ||
730 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
731 | + ] | ||
732 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
733 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
734 | + sp:subject | ||
735 | + [ sp:varName "installationRefx"^^xsd:string | ||
736 | + ] | ||
737 | + ] [ rdf:type sp:NotExists ; | ||
738 | + sp:elements ([ sp:object | ||
739 | + [ sp:varName "installationRef"^^xsd:string | ||
740 | + ] ; | ||
741 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
742 | + sp:subject | ||
743 | + [ sp:varName "installation"^^xsd:string | ||
744 | + ] | ||
745 | + ] [ sp:object | ||
746 | + [ sp:varName "installationRefx"^^xsd:string | ||
747 | + ] ; | ||
748 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
749 | + sp:subject | ||
750 | + [ sp:varName "installation"^^xsd:string | ||
751 | + ] | ||
752 | + ]) | ||
753 | + ] [ sp:object spin:_this ; | ||
568 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 754 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
569 | sp:subject | 755 | sp:subject |
570 | - [ sp:varName "installation"^^xsd:string | 756 | + [ sp:varName "productionReport"^^xsd:string |
757 | + ] | ||
758 | + ]) | ||
759 | + ] ; | ||
760 | + spin:rule | ||
761 | + [ rdf:type sp:Construct ; | ||
762 | + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation where the installation is a field"^^xsd:string ; | ||
763 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
764 | + sp:predicate rdf:type ; | ||
765 | + sp:subject | ||
766 | + [ sp:varName "productionReport"^^xsd:string | ||
767 | + ] | ||
768 | + ] [ sp:object spin:_this ; | ||
769 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
770 | + sp:subject | ||
771 | + [ sp:varName "productionReport"^^xsd:string | ||
772 | + ] | ||
773 | + ]) ; | ||
774 | + sp:where ([ sp:object | ||
775 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
776 | + ] ; | ||
777 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
778 | + sp:subject spin:_this | ||
779 | + ] [ sp:object | ||
780 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
781 | + ] ; | ||
782 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
783 | + sp:subject spin:_this | ||
784 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
785 | + sp:predicate rdf:type ; | ||
786 | + sp:subject | ||
787 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
788 | + ] | ||
789 | + ] [ sp:object | ||
790 | + [ sp:varName "installationRef"^^xsd:string | ||
791 | + ] ; | ||
792 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
793 | + sp:subject | ||
794 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
571 | ] | 795 | ] |
572 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 796 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
573 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 797 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
574 | sp:subject | 798 | sp:subject |
575 | [ sp:varName "installationRef"^^xsd:string | 799 | [ sp:varName "installationRef"^^xsd:string |
576 | ] | 800 | ] |
801 | + ] [ rdf:type sp:NotExists ; | ||
802 | + sp:elements ([ sp:object | ||
803 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
804 | + ] ; | ||
805 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
806 | + sp:subject spin:_this | ||
807 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
808 | + sp:predicate rdf:type ; | ||
809 | + sp:subject | ||
810 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
811 | + ] | ||
812 | + ] [ sp:object | ||
813 | + [ sp:varName "installationRefx"^^xsd:string | ||
814 | + ] ; | ||
815 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
816 | + sp:subject | ||
817 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
818 | + ] | ||
819 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
820 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
821 | + sp:subject | ||
822 | + [ sp:varName "installationRefx"^^xsd:string | ||
823 | + ] | ||
824 | + ]) | ||
825 | + ] [ sp:object | ||
826 | + [ sp:varName "installationRef"^^xsd:string | ||
827 | + ] ; | ||
828 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
829 | + sp:subject | ||
830 | + [ sp:varName "installation"^^xsd:string | ||
831 | + ] | ||
577 | ] [ rdf:type sp:Bind ; | 832 | ] [ rdf:type sp:Bind ; |
578 | sp:expression | 833 | sp:expression |
579 | [ rdf:type spl:object ; | 834 | [ rdf:type spl:object ; |
... | @@ -600,5 +855,5 @@ | ... | @@ -600,5 +855,5 @@ |
600 | 855 | ||
601 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 856 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> |
602 | rdf:type owl:Ontology ; | 857 | rdf:type owl:Ontology ; |
603 | - 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 858 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ; |
604 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 859 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment