David Leal

Duplicate inventories fixed

...@@ -21,13 +21,270 @@ ...@@ -21,13 +21,270 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; 24 + rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
25 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
26 + sp:predicate rdf:type ;
27 + sp:subject _:b1
28 + ] [ sp:object
29 + [ sp:varName "productionReport"^^xsd:string
30 + ] ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
32 + sp:subject _:b1
33 + ] [ sp:object
34 + [ sp:varName "name"^^xsd:string
35 + ] ;
36 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
37 + sp:subject _:b1
38 + ] [ sp:object
39 + [ sp:varName "reportPeriodType"^^xsd:string
40 + ] ;
41 + sp:predicate rdf:type ;
42 + sp:subject _:b1
43 + ] [ sp:object
44 + [ sp:varName "productVolumeRef"^^xsd:string
45 + ] ;
46 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
47 + sp:subject _:b1
48 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
49 + sp:predicate rdf:type ;
50 + sp:subject _:b2
51 + ] [ sp:object
52 + [ sp:varName "productVolumeRef"^^xsd:string
53 + ] ;
54 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
55 + sp:subject _:b2
56 + ] [ sp:object _:b3 ;
57 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
58 + sp:subject _:b2
59 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
60 + sp:predicate rdf:type ;
61 + sp:subject _:b3
62 + ] [ sp:object
63 + [] ;
64 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
65 + sp:subject _:b2
66 + ] [ sp:object
67 + [] ;
68 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
69 + sp:subject _:b3
70 + ] [ sp:object
71 + [ sp:varName "title"^^xsd:string
72 + ] ;
73 + sp:predicate <http://purl.org/dc/elements/1.1/title> ;
74 + sp:subject _:b1
75 + ]) ;
76 + sp:where ([ sp:object spin:_this ;
77 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
78 + sp:subject
79 + [ sp:varName "productionReport"^^xsd:string
80 + ]
81 + ] [ sp:object
82 + [ sp:varName "productVolumeRef"^^xsd:string
83 + ] ;
84 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
85 + sp:subject spin:_this
86 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
87 + sp:predicate rdf:type ;
88 + sp:subject
89 + [ sp:varName "productVolumeRef"^^xsd:string
90 + ]
91 + ] [ sp:object
92 + [ sp:varName "nameRef"^^xsd:string
93 + ] ;
94 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
95 + sp:subject
96 + [ sp:varName "productVolumeRef"^^xsd:string
97 + ]
98 + ] [ sp:object
99 + [ sp:varName "name"^^xsd:string
100 + ] ;
101 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
102 + sp:subject
103 + [ sp:varName "nameRef"^^xsd:string
104 + ]
105 + ] [ rdf:type sp:Optional ;
106 + sp:elements ([ sp:object
107 + [ sp:varName "periodKindRef"^^xsd:string
108 + ] ;
109 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
110 + sp:subject
111 + [ sp:varName "productVolumeRef"^^xsd:string
112 + ]
113 + ])
114 + ] [ rdf:type sp:Optional ;
115 + sp:elements ([ sp:object
116 + [ sp:varName "titleRef"^^xsd:string
117 + ] ;
118 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
119 + sp:subject
120 + [ sp:varName "productVolumeRef"^^xsd:string
121 + ]
122 + ] [ sp:object
123 + [ sp:varName "title"^^xsd:string
124 + ] ;
125 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
126 + sp:subject
127 + [ sp:varName "titleRef"^^xsd:string
128 + ]
129 + ])
130 + ] [ rdf:type sp:Bind ;
131 + sp:expression
132 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
133 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
134 + ]
135 + ] ;
136 + sp:variable
137 + [ sp:varName "reportPeriodType"^^xsd:string
138 + ]
139 + ])
140 + ] ;
141 + spin:rule
142 + [ rdf:type sp:Construct ;
143 + rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ;
144 + sp:templates ([ sp:object _:b4 ;
145 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
146 + sp:subject
147 + [ sp:varName "productVolumeReport"^^xsd:string
148 + ]
149 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
150 + sp:predicate rdf:type ;
151 + sp:subject _:b4
152 + ] [ sp:object
153 + [ sp:varName "productVolumeRef"^^xsd:string
154 + ] ;
155 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
156 + sp:subject _:b4
157 + ] [ sp:object _:b5 ;
158 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
159 + sp:subject _:b4
160 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
161 + sp:predicate rdf:type ;
162 + sp:subject _:b5
163 + ] [ sp:object _:b4 ;
164 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
165 + sp:subject
166 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
167 + ]
168 + ] [ sp:object _:b5 ;
169 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
170 + sp:subject
171 + [ sp:varName "productionFacilityToDate"^^xsd:string
172 + ]
173 + ]) ;
174 + sp:where ([ sp:object spin:_this ;
175 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
176 + sp:subject
177 + [ sp:varName "productionReport"^^xsd:string
178 + ]
179 + ] [ sp:object
180 + [ sp:varName "productVolumeRef"^^xsd:string
181 + ] ;
182 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
183 + sp:subject spin:_this
184 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
185 + sp:predicate rdf:type ;
186 + sp:subject
187 + [ sp:varName "productVolumeRef"^^xsd:string
188 + ]
189 + ] [ sp:object
190 + [ sp:varName "productVolumeRef"^^xsd:string
191 + ] ;
192 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
193 + sp:subject
194 + [ sp:varName "productVolumeReport"^^xsd:string
195 + ]
196 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
197 + sp:predicate rdf:type ;
198 + sp:subject
199 + [ sp:varName "productVolumeReport"^^xsd:string
200 + ]
201 + ] [ sp:object
202 + [ sp:varName "productVolumeRef"^^xsd:string
203 + ] ;
204 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
205 + sp:subject
206 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
207 + ]
208 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
209 + sp:predicate rdf:type ;
210 + sp:subject
211 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
212 + ]
213 + ] [ sp:object
214 + [ sp:varName "productionFacilityToDate"^^xsd:string
215 + ] ;
216 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
217 + sp:subject
218 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
219 + ]
220 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
221 + sp:predicate rdf:type ;
222 + sp:subject
223 + [ sp:varName "productionFacilityToDate"^^xsd:string
224 + ]
225 + ] [ sp:object
226 + [ sp:varName "facilityRef"^^xsd:string
227 + ] ;
228 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
229 + sp:subject
230 + [ sp:varName "productVolumeRef"^^xsd:string
231 + ]
232 + ] [ sp:object
233 + [ sp:varName "flowRef"^^xsd:string
234 + ] ;
235 + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
236 + sp:subject
237 + [ sp:varName "facilityRef"^^xsd:string
238 + ]
239 + ] [ rdf:type sp:NotExists ;
240 + sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
241 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
242 + sp:subject
243 + [ sp:varName "flowRef"^^xsd:string
244 + ]
245 + ])
246 + ] [ rdf:type sp:NotExists ;
247 + sp:elements ([ sp:object
248 + [ sp:varName "productVolumeRef"^^xsd:string
249 + ] ;
250 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
251 + sp:subject
252 + [ sp:varName "productionFlow"^^xsd:string
253 + ]
254 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
255 + sp:predicate rdf:type ;
256 + sp:subject
257 + [ sp:varName "productionFlow"^^xsd:string
258 + ]
259 + ])
260 + ])
261 + ] ;
262 + spin:rule
263 + [ rdf:type sp:Construct ;
264 + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
25 sp:templates ([ sp:object 265 sp:templates ([ sp:object
26 - [ sp:varName "contextFacility"^^xsd:string 266 + [ sp:varName "reportKind"^^xsd:string
27 ] ; 267 ] ;
28 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 268 + sp:predicate rdf:type ;
29 sp:subject 269 sp:subject
30 - [ sp:varName "productionFacility"^^xsd:string 270 + [ sp:varName "productVolumeReport"^^xsd:string
271 + ]
272 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
273 + sp:predicate rdf:type ;
274 + sp:subject
275 + [ sp:varName "reportKind"^^xsd:string
276 + ]
277 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
278 + sp:predicate rdfs:subClassOf ;
279 + sp:subject
280 + [ sp:varName "reportKind"^^xsd:string
281 + ]
282 + ] [ sp:object
283 + [ sp:varName "kind"^^xsd:string
284 + ] ;
285 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
286 + sp:subject
287 + [ sp:varName "reportKind"^^xsd:string
31 ] 288 ]
32 ]) ; 289 ]) ;
33 sp:where ([ sp:object 290 sp:where ([ sp:object
...@@ -41,96 +298,229 @@ ...@@ -41,96 +298,229 @@
41 [ sp:varName "productVolumeRef"^^xsd:string 298 [ sp:varName "productVolumeRef"^^xsd:string
42 ] 299 ]
43 ] [ sp:object 300 ] [ sp:object
44 - [ sp:varName "installationRef"^^xsd:string 301 + [ sp:varName "productVolumeRef"^^xsd:string
45 ] ; 302 ] ;
46 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 303 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
304 + sp:subject
305 + [ sp:varName "productVolumeReport"^^xsd:string
306 + ]
307 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
308 + sp:predicate rdf:type ;
309 + sp:subject
310 + [ sp:varName "productVolumeReport"^^xsd:string
311 + ]
312 + ] [ sp:object
313 + [ sp:varName "nameRef"^^xsd:string
314 + ] ;
315 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
47 sp:subject 316 sp:subject
48 [ sp:varName "productVolumeRef"^^xsd:string 317 [ sp:varName "productVolumeRef"^^xsd:string
49 ] 318 ]
50 ] [ sp:object 319 ] [ sp:object
51 - [ sp:varName "installationRef"^^xsd:string 320 + [ sp:varName "name"^^xsd:string
321 + ] ;
322 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
323 + sp:subject
324 + [ sp:varName "nameRef"^^xsd:string
325 + ]
326 + ] [ sp:object
327 + [ sp:varName "kind"^^xsd:string
328 + ] ;
329 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
330 + sp:subject
331 + [ sp:varName "productVolumeRef"^^xsd:string
332 + ]
333 + ] [ rdf:type sp:Bind ;
334 + sp:expression
335 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
336 + sp:arg1 [ sp:varName "kind"^^xsd:string
337 + ]
338 + ] ;
339 + sp:variable
340 + [ sp:varName "reportKind"^^xsd:string
341 + ]
342 + ])
343 + ] ;
344 + spin:rule
345 + [ rdf:type sp:Construct ;
346 + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ;
347 + sp:templates ([ sp:object _:b6 ;
348 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
349 + sp:subject
350 + [ sp:varName "productVolumeReport"^^xsd:string
351 + ]
352 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
353 + sp:predicate rdf:type ;
354 + sp:subject _:b6
355 + ] [ sp:object
356 + [ sp:varName "productVolumeRef"^^xsd:string
52 ] ; 357 ] ;
53 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; 358 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
359 + sp:subject _:b6
360 + ] [ sp:object _:b7 ;
361 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
362 + sp:subject _:b6
363 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
364 + sp:predicate rdf:type ;
365 + sp:subject _:b7
366 + ] [ sp:object _:b6 ;
367 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
54 sp:subject 368 sp:subject
55 - [ sp:varName "productionFacility"^^xsd:string 369 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
370 + ]
371 + ] [ sp:object _:b7 ;
372 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
373 + sp:subject
374 + [ sp:varName "productionFacilityToDate"^^xsd:string
375 + ]
376 + ]) ;
377 + sp:where ([ sp:object spin:_this ;
378 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
379 + sp:subject
380 + [ sp:varName "productionReport"^^xsd:string
56 ] 381 ]
57 ] [ sp:object 382 ] [ sp:object
58 - [ sp:varName "contextFacilityRef"^^xsd:string 383 + [ sp:varName "productVolumeRef"^^xsd:string
59 ] ; 384 ] ;
60 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 385 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
386 + sp:subject spin:_this
387 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
388 + sp:predicate rdf:type ;
61 sp:subject 389 sp:subject
62 [ sp:varName "productVolumeRef"^^xsd:string 390 [ sp:varName "productVolumeRef"^^xsd:string
63 ] 391 ]
64 ] [ sp:object 392 ] [ sp:object
65 - [ sp:varName "contextFacilityRef"^^xsd:string 393 + [ sp:varName "productVolumeRef"^^xsd:string
66 ] ; 394 ] ;
67 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; 395 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
68 sp:subject 396 sp:subject
69 - [ sp:varName "contextFacility"^^xsd:string 397 + [ sp:varName "productVolumeReport"^^xsd:string
398 + ]
399 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
400 + sp:predicate rdf:type ;
401 + sp:subject
402 + [ sp:varName "productVolumeReport"^^xsd:string
403 + ]
404 + ] [ sp:object
405 + [ sp:varName "productVolumeRef"^^xsd:string
406 + ] ;
407 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
408 + sp:subject
409 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
410 + ]
411 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
412 + sp:predicate rdf:type ;
413 + sp:subject
414 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
70 ] 415 ]
416 + ] [ sp:object
417 + [ sp:varName "productionFacilityToDate"^^xsd:string
418 + ] ;
419 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
420 + sp:subject
421 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
422 + ]
423 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
424 + sp:predicate rdf:type ;
425 + sp:subject
426 + [ sp:varName "productionFacilityToDate"^^xsd:string
427 + ]
428 + ] [ sp:object
429 + [ sp:varName "facilityRef"^^xsd:string
430 + ] ;
431 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
432 + sp:subject
433 + [ sp:varName "productVolumeRef"^^xsd:string
434 + ]
435 + ] [ sp:object
436 + [ sp:varName "flowRef"^^xsd:string
437 + ] ;
438 + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
439 + sp:subject
440 + [ sp:varName "facilityRef"^^xsd:string
441 + ]
442 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
443 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
444 + sp:subject
445 + [ sp:varName "flowRef"^^xsd:string
446 + ]
447 + ] [ rdf:type sp:NotExists ;
448 + sp:elements ([ sp:object
449 + [ sp:varName "productVolumeRef"^^xsd:string
450 + ] ;
451 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
452 + sp:subject
453 + [ sp:varName "productionInventory"^^xsd:string
454 + ]
455 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
456 + sp:predicate rdf:type ;
457 + sp:subject
458 + [ sp:varName "productionInventory"^^xsd:string
459 + ]
460 + ])
71 ]) 461 ])
72 ] ; 462 ] ;
73 spin:rule 463 spin:rule
74 [ rdf:type sp:Construct ; 464 [ rdf:type sp:Construct ;
75 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 465 + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
76 sp:templates ([ sp:object 466 sp:templates ([ sp:object
77 - [ sp:varName "dTimStart"^^xsd:string 467 + [ sp:varName "dateStart"^^xsd:string
78 ] ; 468 ] ;
79 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 469 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
80 sp:subject 470 sp:subject
81 [ sp:varName "productionFlow"^^xsd:string 471 [ sp:varName "productionFlow"^^xsd:string
82 ] 472 ]
83 ] [ sp:object 473 ] [ sp:object
84 - [ sp:varName "dTimEnd"^^xsd:string 474 + [ sp:varName "dateEnd"^^xsd:string
85 ] ; 475 ] ;
86 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 476 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
87 sp:subject 477 sp:subject
88 [ sp:varName "productionFlow"^^xsd:string 478 [ sp:varName "productionFlow"^^xsd:string
89 ] 479 ]
90 ] [ sp:object 480 ] [ sp:object
91 - [ sp:varName "dTimEnd"^^xsd:string 481 + [ sp:varName "dateEnd"^^xsd:string
92 ] ; 482 ] ;
93 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 483 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
94 sp:subject 484 sp:subject
95 [ sp:varName "productionFlowToDate"^^xsd:string 485 [ sp:varName "productionFlowToDate"^^xsd:string
96 ] 486 ]
97 ] [ sp:object 487 ] [ sp:object
98 - [ sp:varName "dTimStart"^^xsd:string 488 + [ sp:varName "dateStart"^^xsd:string
99 ] ; 489 ] ;
100 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 490 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
101 sp:subject 491 sp:subject
102 [ sp:varName "productionInventory"^^xsd:string 492 [ sp:varName "productionInventory"^^xsd:string
103 ] 493 ]
104 ] [ sp:object 494 ] [ sp:object
105 - [ sp:varName "dTimEnd"^^xsd:string 495 + [ sp:varName "dateEnd"^^xsd:string
106 ] ; 496 ] ;
107 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 497 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
108 sp:subject 498 sp:subject
109 [ sp:varName "productionInventory"^^xsd:string 499 [ sp:varName "productionInventory"^^xsd:string
110 ] 500 ]
111 ] [ sp:object 501 ] [ sp:object
112 - [ sp:varName "dTimEnd"^^xsd:string 502 + [ sp:varName "dateEnd"^^xsd:string
113 ] ; 503 ] ;
114 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 504 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
115 sp:subject 505 sp:subject
116 [ sp:varName "productionInventoryToDate"^^xsd:string 506 [ sp:varName "productionInventoryToDate"^^xsd:string
117 ] 507 ]
118 ] [ sp:object 508 ] [ sp:object
119 - [ sp:varName "dTimStart"^^xsd:string 509 + [ sp:varName "dateStart"^^xsd:string
120 ] ; 510 ] ;
121 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 511 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
122 sp:subject 512 sp:subject
123 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 513 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
124 ] 514 ]
125 ] [ sp:object 515 ] [ sp:object
126 - [ sp:varName "dTimEnd"^^xsd:string 516 + [ sp:varName "dateEnd"^^xsd:string
127 ] ; 517 ] ;
128 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 518 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
129 sp:subject 519 sp:subject
130 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 520 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
131 ] 521 ]
132 ] [ sp:object 522 ] [ sp:object
133 - [ sp:varName "dTimEnd"^^xsd:string 523 + [ sp:varName "dateEnd"^^xsd:string
134 ] ; 524 ] ;
135 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 525 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
136 sp:subject 526 sp:subject
...@@ -148,16 +538,16 @@ ...@@ -148,16 +538,16 @@
148 [ sp:varName "productVolumeRef"^^xsd:string 538 [ sp:varName "productVolumeRef"^^xsd:string
149 ] 539 ]
150 ] [ sp:object 540 ] [ sp:object
151 - [ sp:varName "dTimStart"^^xsd:string 541 + [ sp:varName "dateStart"^^xsd:string
152 ] ; 542 ] ;
153 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 543 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
154 sp:subject 544 sp:subject
155 [ sp:varName "productVolumeRef"^^xsd:string 545 [ sp:varName "productVolumeRef"^^xsd:string
156 ] 546 ]
157 ] [ sp:object 547 ] [ sp:object
158 - [ sp:varName "dTimEnd"^^xsd:string 548 + [ sp:varName "dateEnd"^^xsd:string
159 ] ; 549 ] ;
160 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 550 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
161 sp:subject 551 sp:subject
162 [ sp:varName "productVolumeRef"^^xsd:string 552 [ sp:varName "productVolumeRef"^^xsd:string
163 ] 553 ]
...@@ -237,46 +627,27 @@ ...@@ -237,46 +627,27 @@
237 ] ; 627 ] ;
238 spin:rule 628 spin:rule
239 [ rdf:type sp:Construct ; 629 [ rdf:type sp:Construct ;
240 - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; 630 + rdfs:comment """STEP 20060 Set the facility operator
241 - sp:templates ([ sp:object 631 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
242 - [ sp:varName "productionFacility"^^xsd:string 632 + sp:templates ([ sp:object _:b8 ;
243 - ] ; 633 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
244 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
245 sp:subject 634 sp:subject
246 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 635 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
247 ] 636 ]
637 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
638 + sp:predicate rdf:type ;
639 + sp:subject _:b8
248 ] [ sp:object 640 ] [ sp:object
249 - [ sp:varName "productionFacility"^^xsd:string 641 + [ sp:varName "operator"^^xsd:string
250 ] ; 642 ] ;
251 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 643 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
252 - sp:subject 644 + sp:subject _:b8
253 - [ sp:varName "productionFacilityToDate"^^xsd:string
254 - ]
255 ]) ; 645 ]) ;
256 sp:where ([ sp:object 646 sp:where ([ sp:object
257 [ sp:varName "productVolumeRef"^^xsd:string 647 [ sp:varName "productVolumeRef"^^xsd:string
258 ] ; 648 ] ;
259 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 649 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
260 sp:subject spin:_this 650 sp:subject spin:_this
261 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
262 - sp:predicate rdf:type ;
263 - sp:subject
264 - [ sp:varName "productVolumeRef"^^xsd:string
265 - ]
266 - ] [ sp:object
267 - [ sp:varName "installationRef"^^xsd:string
268 - ] ;
269 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
270 - sp:subject
271 - [ sp:varName "productVolumeRef"^^xsd:string
272 - ]
273 - ] [ sp:object
274 - [ sp:varName "installationRef"^^xsd:string
275 - ] ;
276 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
277 - sp:subject
278 - [ sp:varName "productionFacility"^^xsd:string
279 - ]
280 ] [ sp:object 651 ] [ sp:object
281 [ sp:varName "productVolumeRef"^^xsd:string 652 [ sp:varName "productVolumeRef"^^xsd:string
282 ] ; 653 ] ;
...@@ -289,137 +660,156 @@ ...@@ -289,137 +660,156 @@
289 sp:subject 660 sp:subject
290 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 661 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
291 ] 662 ]
663 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
664 + sp:predicate rdf:type ;
665 + sp:subject
666 + [ sp:varName "productVolumeRef"^^xsd:string
667 + ]
292 ] [ sp:object 668 ] [ sp:object
293 - [ sp:varName "productionFacilityToDate"^^xsd:string 669 + [ sp:varName "operatorRef"^^xsd:string
294 ] ; 670 ] ;
295 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 671 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
296 sp:subject 672 sp:subject
297 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 673 + [ sp:varName "productVolumeRef"^^xsd:string
298 ] 674 ]
299 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 675 + ] [ sp:object
300 - sp:predicate rdf:type ; 676 + [ sp:varName "operatorRef"^^xsd:string
677 + ] ;
678 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
301 sp:subject 679 sp:subject
302 - [ sp:varName "productionFacilityToDate"^^xsd:string 680 + [ sp:varName "operator"^^xsd:string
303 ] 681 ]
304 ]) 682 ])
305 ] ; 683 ] ;
306 spin:rule 684 spin:rule
307 [ rdf:type sp:Construct ; 685 [ rdf:type sp:Construct ;
308 - rdfs:comment """STEP 20060 Set the facility operator 686 + rdfs:comment "STEP 20040 Set the installation"^^xsd:string ;
309 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; 687 + sp:templates ([ sp:object
310 - sp:templates ([ sp:object _:b1 ; 688 + [ sp:varName "productionFacility"^^xsd:string
311 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; 689 + ] ;
690 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
312 sp:subject 691 sp:subject
313 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 692 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
314 ] 693 ]
315 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
316 - sp:predicate rdf:type ;
317 - sp:subject _:b1
318 ] [ sp:object 694 ] [ sp:object
319 - [ sp:varName "operator"^^xsd:string 695 + [ sp:varName "productionFacility"^^xsd:string
320 ] ; 696 ] ;
321 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 697 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
322 - sp:subject _:b1 698 + sp:subject
699 + [ sp:varName "productionFacilityToDate"^^xsd:string
700 + ]
323 ]) ; 701 ]) ;
324 sp:where ([ sp:object 702 sp:where ([ sp:object
325 [ sp:varName "productVolumeRef"^^xsd:string 703 [ sp:varName "productVolumeRef"^^xsd:string
326 ] ; 704 ] ;
327 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 705 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
328 sp:subject spin:_this 706 sp:subject spin:_this
707 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
708 + sp:predicate rdf:type ;
709 + sp:subject
710 + [ sp:varName "productVolumeRef"^^xsd:string
711 + ]
329 ] [ sp:object 712 ] [ sp:object
713 + [ sp:varName "installationRef"^^xsd:string
714 + ] ;
715 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
716 + sp:subject
330 [ sp:varName "productVolumeRef"^^xsd:string 717 [ sp:varName "productVolumeRef"^^xsd:string
718 + ]
719 + ] [ sp:object
720 + [ sp:varName "installationRef"^^xsd:string
331 ] ; 721 ] ;
332 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; 722 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
333 sp:subject 723 sp:subject
334 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 724 + [ sp:varName "productionFacility"^^xsd:string
335 ] 725 ]
336 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 726 + ] [ sp:object
337 - sp:predicate rdf:type ; 727 + [ sp:varName "productVolumeRef"^^xsd:string
728 + ] ;
729 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
338 sp:subject 730 sp:subject
339 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 731 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
340 ] 732 ]
341 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 733 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
342 sp:predicate rdf:type ; 734 sp:predicate rdf:type ;
343 sp:subject 735 sp:subject
344 - [ sp:varName "productVolumeRef"^^xsd:string 736 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
345 ] 737 ]
346 ] [ sp:object 738 ] [ sp:object
347 - [ sp:varName "operatorRef"^^xsd:string 739 + [ sp:varName "productionFacilityToDate"^^xsd:string
348 ] ; 740 ] ;
349 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 741 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
350 sp:subject 742 sp:subject
351 - [ sp:varName "productVolumeRef"^^xsd:string 743 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
352 ] 744 ]
353 - ] [ sp:object 745 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
354 - [ sp:varName "operatorRef"^^xsd:string 746 + sp:predicate rdf:type ;
355 - ] ;
356 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
357 sp:subject 747 sp:subject
358 - [ sp:varName "operator"^^xsd:string 748 + [ sp:varName "productionFacilityToDate"^^xsd:string
359 ] 749 ]
360 ]) 750 ])
361 ] ; 751 ] ;
362 spin:rule 752 spin:rule
363 [ rdf:type sp:Construct ; 753 [ rdf:type sp:Construct ;
364 - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; 754 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
365 sp:templates ([ sp:object 755 sp:templates ([ sp:object
366 - [ sp:varName "dateStart"^^xsd:string 756 + [ sp:varName "dTimStart"^^xsd:string
367 ] ; 757 ] ;
368 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 758 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
369 sp:subject 759 sp:subject
370 [ sp:varName "productionFlow"^^xsd:string 760 [ sp:varName "productionFlow"^^xsd:string
371 ] 761 ]
372 ] [ sp:object 762 ] [ sp:object
373 - [ sp:varName "dateEnd"^^xsd:string 763 + [ sp:varName "dTimEnd"^^xsd:string
374 ] ; 764 ] ;
375 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 765 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
376 sp:subject 766 sp:subject
377 [ sp:varName "productionFlow"^^xsd:string 767 [ sp:varName "productionFlow"^^xsd:string
378 ] 768 ]
379 ] [ sp:object 769 ] [ sp:object
380 - [ sp:varName "dateEnd"^^xsd:string 770 + [ sp:varName "dTimEnd"^^xsd:string
381 ] ; 771 ] ;
382 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 772 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
383 sp:subject 773 sp:subject
384 [ sp:varName "productionFlowToDate"^^xsd:string 774 [ sp:varName "productionFlowToDate"^^xsd:string
385 ] 775 ]
386 ] [ sp:object 776 ] [ sp:object
387 - [ sp:varName "dateStart"^^xsd:string 777 + [ sp:varName "dTimStart"^^xsd:string
388 ] ; 778 ] ;
389 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 779 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
390 sp:subject 780 sp:subject
391 [ sp:varName "productionInventory"^^xsd:string 781 [ sp:varName "productionInventory"^^xsd:string
392 ] 782 ]
393 ] [ sp:object 783 ] [ sp:object
394 - [ sp:varName "dateEnd"^^xsd:string 784 + [ sp:varName "dTimEnd"^^xsd:string
395 ] ; 785 ] ;
396 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 786 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
397 sp:subject 787 sp:subject
398 [ sp:varName "productionInventory"^^xsd:string 788 [ sp:varName "productionInventory"^^xsd:string
399 ] 789 ]
400 ] [ sp:object 790 ] [ sp:object
401 - [ sp:varName "dateEnd"^^xsd:string 791 + [ sp:varName "dTimEnd"^^xsd:string
402 ] ; 792 ] ;
403 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 793 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
404 sp:subject 794 sp:subject
405 [ sp:varName "productionInventoryToDate"^^xsd:string 795 [ sp:varName "productionInventoryToDate"^^xsd:string
406 ] 796 ]
407 ] [ sp:object 797 ] [ sp:object
408 - [ sp:varName "dateStart"^^xsd:string 798 + [ sp:varName "dTimStart"^^xsd:string
409 ] ; 799 ] ;
410 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 800 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
411 sp:subject 801 sp:subject
412 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 802 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
413 ] 803 ]
414 ] [ sp:object 804 ] [ sp:object
415 - [ sp:varName "dateEnd"^^xsd:string 805 + [ sp:varName "dTimEnd"^^xsd:string
416 ] ; 806 ] ;
417 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 807 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
418 sp:subject 808 sp:subject
419 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 809 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
420 ] 810 ]
421 ] [ sp:object 811 ] [ sp:object
422 - [ sp:varName "dateEnd"^^xsd:string 812 + [ sp:varName "dTimEnd"^^xsd:string
423 ] ; 813 ] ;
424 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 814 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
425 sp:subject 815 sp:subject
...@@ -437,16 +827,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -437,16 +827,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
437 [ sp:varName "productVolumeRef"^^xsd:string 827 [ sp:varName "productVolumeRef"^^xsd:string
438 ] 828 ]
439 ] [ sp:object 829 ] [ sp:object
440 - [ sp:varName "dateStart"^^xsd:string 830 + [ sp:varName "dTimStart"^^xsd:string
441 ] ; 831 ] ;
442 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 832 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
443 sp:subject 833 sp:subject
444 [ sp:varName "productVolumeRef"^^xsd:string 834 [ sp:varName "productVolumeRef"^^xsd:string
445 ] 835 ]
446 ] [ sp:object 836 ] [ sp:object
447 - [ sp:varName "dateEnd"^^xsd:string 837 + [ sp:varName "dTimEnd"^^xsd:string
448 ] ; 838 ] ;
449 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 839 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
450 sp:subject 840 sp:subject
451 [ sp:varName "productVolumeRef"^^xsd:string 841 [ sp:varName "productVolumeRef"^^xsd:string
452 ] 842 ]
...@@ -526,97 +916,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -526,97 +916,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
526 ] ; 916 ] ;
527 spin:rule 917 spin:rule
528 [ rdf:type sp:Construct ; 918 [ rdf:type sp:Construct ;
529 - rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 919 + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ;
530 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 920 + sp:templates ([ sp:object
531 - sp:predicate rdf:type ; 921 + [ sp:varName "contextFacility"^^xsd:string
532 - sp:subject _:b2
533 - ] [ sp:object
534 - [ sp:varName "productionReport"^^xsd:string
535 - ] ;
536 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
537 - sp:subject _:b2
538 - ] [ sp:object
539 - [ sp:varName "name"^^xsd:string
540 - ] ;
541 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
542 - sp:subject _:b2
543 - ] [ sp:object
544 - [ sp:varName "reportPeriodType"^^xsd:string
545 - ] ;
546 - sp:predicate rdf:type ;
547 - sp:subject _:b2
548 - ] [ sp:object _:b3 ;
549 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
550 - sp:subject _:b2
551 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
552 - sp:predicate rdf:type ;
553 - sp:subject _:b3
554 - ] [ sp:object
555 - [ sp:varName "productVolumeRef"^^xsd:string
556 - ] ;
557 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
558 - sp:subject _:b3
559 - ] [ sp:object _:b4 ;
560 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
561 - sp:subject _:b3
562 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
563 - sp:predicate rdf:type ;
564 - sp:subject _:b4
565 - ] [ sp:object _:b5 ;
566 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
567 - sp:subject _:b2
568 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
569 - sp:predicate rdf:type ;
570 - sp:subject _:b5
571 - ] [ sp:object
572 - [ sp:varName "productVolumeRef"^^xsd:string
573 - ] ;
574 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
575 - sp:subject _:b5
576 - ] [ sp:object _:b6 ;
577 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
578 - sp:subject _:b5
579 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
580 - sp:predicate rdf:type ;
581 - sp:subject _:b6
582 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
583 - sp:predicate rdf:type ;
584 - sp:subject _:b7
585 - ] [ sp:object
586 - [ sp:varName "productVolumeRef"^^xsd:string
587 - ] ;
588 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
589 - sp:subject _:b7
590 - ] [ sp:object _:b8 ;
591 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
592 - sp:subject _:b7
593 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
594 - sp:predicate rdf:type ;
595 - sp:subject _:b8
596 - ] [ sp:object _:b3 ;
597 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
598 - sp:subject _:b7
599 - ] [ sp:object _:b5 ;
600 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
601 - sp:subject _:b7
602 - ] [ sp:object _:b4 ;
603 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
604 - sp:subject _:b8
605 - ] [ sp:object _:b6 ;
606 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
607 - sp:subject _:b8
608 - ] [ sp:object
609 - [ sp:varName "title"^^xsd:string
610 ] ; 922 ] ;
611 - sp:predicate <http://purl.org/dc/elements/1.1/title> ; 923 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
612 - sp:subject _:b2
613 - ]) ;
614 - sp:where ([ sp:object spin:_this ;
615 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
616 sp:subject 924 sp:subject
617 - [ sp:varName "productionReport"^^xsd:string 925 + [ sp:varName "productionFacility"^^xsd:string
618 ] 926 ]
619 - ] [ sp:object 927 + ]) ;
928 + sp:where ([ sp:object
620 [ sp:varName "productVolumeRef"^^xsd:string 929 [ sp:varName "productVolumeRef"^^xsd:string
621 ] ; 930 ] ;
622 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 931 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -627,144 +936,37 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -627,144 +936,37 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
627 [ sp:varName "productVolumeRef"^^xsd:string 936 [ sp:varName "productVolumeRef"^^xsd:string
628 ] 937 ]
629 ] [ sp:object 938 ] [ sp:object
630 - [ sp:varName "nameRef"^^xsd:string 939 + [ sp:varName "installationRef"^^xsd:string
631 ] ; 940 ] ;
632 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 941 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
633 sp:subject 942 sp:subject
634 [ sp:varName "productVolumeRef"^^xsd:string 943 [ sp:varName "productVolumeRef"^^xsd:string
635 ] 944 ]
636 ] [ sp:object 945 ] [ sp:object
637 - [ sp:varName "name"^^xsd:string 946 + [ sp:varName "installationRef"^^xsd:string
638 - ] ;
639 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
640 - sp:subject
641 - [ sp:varName "nameRef"^^xsd:string
642 - ]
643 - ] [ rdf:type sp:Optional ;
644 - sp:elements ([ sp:object
645 - [ sp:varName "periodKindRef"^^xsd:string
646 - ] ;
647 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
648 - sp:subject
649 - [ sp:varName "productVolumeRef"^^xsd:string
650 - ]
651 - ])
652 - ] [ rdf:type sp:Optional ;
653 - sp:elements ([ sp:object
654 - [ sp:varName "titleRef"^^xsd:string
655 - ] ;
656 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
657 - sp:subject
658 - [ sp:varName "productVolumeRef"^^xsd:string
659 - ]
660 - ] [ sp:object
661 - [ sp:varName "title"^^xsd:string
662 - ] ;
663 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
664 - sp:subject
665 - [ sp:varName "titleRef"^^xsd:string
666 - ]
667 - ])
668 - ] [ rdf:type sp:Bind ;
669 - sp:expression
670 - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
671 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
672 - ]
673 - ] ;
674 - sp:variable
675 - [ sp:varName "reportPeriodType"^^xsd:string
676 - ]
677 - ])
678 - ] ;
679 - spin:rule
680 - [ rdf:type sp:Construct ;
681 - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
682 - sp:templates ([ sp:object
683 - [ sp:varName "reportKind"^^xsd:string
684 - ] ;
685 - sp:predicate rdf:type ;
686 - sp:subject
687 - [ sp:varName "productVolumeReport"^^xsd:string
688 - ]
689 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
690 - sp:predicate rdf:type ;
691 - sp:subject
692 - [ sp:varName "reportKind"^^xsd:string
693 - ]
694 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
695 - sp:predicate rdfs:subClassOf ;
696 - sp:subject
697 - [ sp:varName "reportKind"^^xsd:string
698 - ]
699 - ] [ sp:object
700 - [ sp:varName "kind"^^xsd:string
701 ] ; 947 ] ;
702 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
703 - sp:subject
704 - [ sp:varName "reportKind"^^xsd:string
705 - ]
706 - ]) ;
707 - sp:where ([ sp:object spin:_this ;
708 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; 948 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
709 sp:subject 949 sp:subject
710 - [ sp:varName "productionReport"^^xsd:string 950 + [ sp:varName "productionFacility"^^xsd:string
711 - ]
712 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
713 - sp:predicate rdf:type ;
714 - sp:subject
715 - [ sp:varName "productVolumeReport"^^xsd:string
716 - ]
717 - ] [ sp:object
718 - [ sp:varName "productionReport"^^xsd:string
719 - ] ;
720 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
721 - sp:subject
722 - [ sp:varName "productVolumeReport"^^xsd:string
723 - ]
724 - ] [ sp:object
725 - [ sp:varName "productVolumeRef"^^xsd:string
726 - ] ;
727 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
728 - sp:subject spin:_this
729 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
730 - sp:predicate rdf:type ;
731 - sp:subject
732 - [ sp:varName "productVolumeRef"^^xsd:string
733 ] 951 ]
734 ] [ sp:object 952 ] [ sp:object
735 - [ sp:varName "nameRef"^^xsd:string 953 + [ sp:varName "contextFacilityRef"^^xsd:string
736 ] ; 954 ] ;
737 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 955 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
738 sp:subject 956 sp:subject
739 [ sp:varName "productVolumeRef"^^xsd:string 957 [ sp:varName "productVolumeRef"^^xsd:string
740 ] 958 ]
741 ] [ sp:object 959 ] [ sp:object
742 - [ sp:varName "name"^^xsd:string 960 + [ sp:varName "contextFacilityRef"^^xsd:string
743 - ] ;
744 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
745 - sp:subject
746 - [ sp:varName "nameRef"^^xsd:string
747 - ]
748 - ] [ sp:object
749 - [ sp:varName "kind"^^xsd:string
750 ] ; 961 ] ;
751 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 962 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ;
752 sp:subject 963 sp:subject
753 - [ sp:varName "productVolumeRef"^^xsd:string 964 + [ sp:varName "contextFacility"^^xsd:string
754 - ]
755 - ] [ rdf:type sp:Bind ;
756 - sp:expression
757 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
758 - sp:arg1 [ sp:varName "kind"^^xsd:string
759 - ]
760 - ] ;
761 - sp:variable
762 - [ sp:varName "reportKind"^^xsd:string
763 ] 965 ]
764 ]) 966 ])
765 ] . 967 ] .
766 968
767 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 969 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
768 rdf:type owl:Ontology ; 970 rdf:type owl:Ontology ;
769 - 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> ; 971 + 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> ;
770 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 972 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......