David Leal

MPR Start and end times inherited from context

...@@ -17,13 +17,19 @@ transhelp:derivedFrom ...@@ -17,13 +17,19 @@ transhelp:derivedFrom
17 transhelp:hasDerivedText 17 transhelp:hasDerivedText
18 rdf:type owl:DatatypeProperty . 18 rdf:type owl:DatatypeProperty .
19 19
20 +transhelp:intervalEnd
21 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
22 +
20 transhelp:intervalIdentifier 23 transhelp:intervalIdentifier
21 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 24 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
25 +
26 +transhelp:intervalStart
27 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
22 28
23 transhelp:mapsTo 29 transhelp:mapsTo
24 rdf:type rdf:Property . 30 rdf:type rdf:Property .
25 31
26 transhelp:materialClassMapsToMPREnumeration 32 transhelp:materialClassMapsToMPREnumeration
27 - rdf:type owl:InverseFunctionalProperty , owl:FunctionalProperty , owl:ObjectProperty ; 33 + rdf:type owl:ObjectProperty , owl:FunctionalProperty , owl:InverseFunctionalProperty ;
28 rdfs:label "material class maps to MPR enumeration"^^xsd:string ; 34 rdfs:label "material class maps to MPR enumeration"^^xsd:string ;
29 rdfs:subPropertyOf transhelp:mapsTo . 35 rdfs:subPropertyOf transhelp:mapsTo .
......
...@@ -22,43 +22,16 @@ ...@@ -22,43 +22,16 @@
22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 22 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
23 spin:rule 23 spin:rule
24 [ rdf:type sp:Construct ; 24 [ rdf:type sp:Construct ;
25 - rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ; 25 + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ;
26 - sp:templates ([ sp:object _:b1 ; 26 + sp:templates ([ sp:object
27 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 27 + [ sp:varName "contextFacility"^^xsd:string
28 - sp:subject
29 - [ sp:varName "productVolumeReport"^^xsd:string
30 - ]
31 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
32 - sp:predicate rdf:type ;
33 - sp:subject _:b1
34 - ] [ sp:object
35 - [ sp:varName "productVolumeRef"^^xsd:string
36 ] ; 28 ] ;
37 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 29 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
38 - sp:subject _:b1
39 - ] [ sp:object _:b2 ;
40 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
41 - sp:subject _:b1
42 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
43 - sp:predicate rdf:type ;
44 - sp:subject _:b2
45 - ] [ sp:object _:b1 ;
46 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
47 - sp:subject
48 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
49 - ]
50 - ] [ sp:object _:b2 ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
52 sp:subject 30 sp:subject
53 - [ sp:varName "productionFacilityToDate"^^xsd:string 31 + [ sp:varName "productionFacility"^^xsd:string
54 ] 32 ]
55 ]) ; 33 ]) ;
56 - sp:where ([ sp:object spin:_this ; 34 + sp:where ([ sp:object
57 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
58 - sp:subject
59 - [ sp:varName "productionReport"^^xsd:string
60 - ]
61 - ] [ sp:object
62 [ sp:varName "productVolumeRef"^^xsd:string 35 [ sp:varName "productVolumeRef"^^xsd:string
63 ] ; 36 ] ;
64 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 37 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -69,40 +42,32 @@ ...@@ -69,40 +42,32 @@
69 [ sp:varName "productVolumeRef"^^xsd:string 42 [ sp:varName "productVolumeRef"^^xsd:string
70 ] 43 ]
71 ] [ sp:object 44 ] [ sp:object
72 - [ sp:varName "productVolumeRef"^^xsd:string 45 + [ sp:varName "installationRef"^^xsd:string
73 ] ; 46 ] ;
74 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 47 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
75 - sp:subject
76 - [ sp:varName "productVolumeReport"^^xsd:string
77 - ]
78 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
79 - sp:predicate rdf:type ;
80 sp:subject 48 sp:subject
81 - [ sp:varName "productVolumeReport"^^xsd:string 49 + [ sp:varName "productVolumeRef"^^xsd:string
82 ] 50 ]
83 ] [ sp:object 51 ] [ sp:object
84 - [ sp:varName "productVolumeRef"^^xsd:string 52 + [ sp:varName "installationRef"^^xsd:string
85 ] ; 53 ] ;
86 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 54 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
87 sp:subject 55 sp:subject
88 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 56 + [ sp:varName "productionFacility"^^xsd:string
89 - ]
90 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
91 - sp:predicate rdf:type ;
92 - sp:subject
93 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
94 ] 57 ]
95 ] [ sp:object 58 ] [ sp:object
96 - [ sp:varName "productionFacilityToDate"^^xsd:string 59 + [ sp:varName "contextFacilityRef"^^xsd:string
97 ] ; 60 ] ;
98 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 61 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
99 sp:subject 62 sp:subject
100 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 63 + [ sp:varName "productVolumeRef"^^xsd:string
101 ] 64 ]
102 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 65 + ] [ sp:object
103 - sp:predicate rdf:type ; 66 + [ sp:varName "contextFacilityRef"^^xsd:string
67 + ] ;
68 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
104 sp:subject 69 sp:subject
105 - [ sp:varName "productionFacilityToDate"^^xsd:string 70 + [ sp:varName "contextFacility"^^xsd:string
106 ] 71 ]
107 ]) 72 ])
108 ] ; 73 ] ;
...@@ -111,54 +76,54 @@ ...@@ -111,54 +76,54 @@
111 rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 76 rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
112 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 77 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
113 sp:predicate rdf:type ; 78 sp:predicate rdf:type ;
114 - sp:subject _:b3 79 + sp:subject _:b1
115 ] [ sp:object 80 ] [ sp:object
116 [ sp:varName "productionReport"^^xsd:string 81 [ sp:varName "productionReport"^^xsd:string
117 ] ; 82 ] ;
118 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 83 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
119 - sp:subject _:b3 84 + sp:subject _:b1
120 ] [ sp:object 85 ] [ sp:object
121 [ sp:varName "name"^^xsd:string 86 [ sp:varName "name"^^xsd:string
122 ] ; 87 ] ;
123 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 88 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
124 - sp:subject _:b3 89 + sp:subject _:b1
125 ] [ sp:object 90 ] [ sp:object
126 [ sp:varName "reportPeriodType"^^xsd:string 91 [ sp:varName "reportPeriodType"^^xsd:string
127 ] ; 92 ] ;
128 sp:predicate rdf:type ; 93 sp:predicate rdf:type ;
129 - sp:subject _:b3 94 + sp:subject _:b1
130 ] [ sp:object 95 ] [ sp:object
131 [ sp:varName "productVolumeRef"^^xsd:string 96 [ sp:varName "productVolumeRef"^^xsd:string
132 ] ; 97 ] ;
133 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 98 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
134 - sp:subject _:b3 99 + sp:subject _:b1
135 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 100 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
136 sp:predicate rdf:type ; 101 sp:predicate rdf:type ;
137 - sp:subject _:b4 102 + sp:subject _:b2
138 ] [ sp:object 103 ] [ sp:object
139 [ sp:varName "productVolumeRef"^^xsd:string 104 [ sp:varName "productVolumeRef"^^xsd:string
140 ] ; 105 ] ;
141 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 106 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
142 - sp:subject _:b4 107 + sp:subject _:b2
143 - ] [ sp:object _:b5 ; 108 + ] [ sp:object _:b3 ;
144 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 109 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
145 - sp:subject _:b4 110 + sp:subject _:b2
146 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 111 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
147 sp:predicate rdf:type ; 112 sp:predicate rdf:type ;
148 - sp:subject _:b5 113 + sp:subject _:b3
149 ] [ sp:object 114 ] [ sp:object
150 [] ; 115 [] ;
151 sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 116 sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
152 - sp:subject _:b4 117 + sp:subject _:b2
153 ] [ sp:object 118 ] [ sp:object
154 [] ; 119 [] ;
155 sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 120 sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
156 - sp:subject _:b5 121 + sp:subject _:b3
157 ] [ sp:object 122 ] [ sp:object
158 [ sp:varName "title"^^xsd:string 123 [ sp:varName "title"^^xsd:string
159 ] ; 124 ] ;
160 sp:predicate <http://purl.org/dc/elements/1.1/title> ; 125 sp:predicate <http://purl.org/dc/elements/1.1/title> ;
161 - sp:subject _:b3 126 + sp:subject _:b1
162 ]) ; 127 ]) ;
163 sp:where ([ sp:object spin:_this ; 128 sp:where ([ sp:object spin:_this ;
164 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 129 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
...@@ -309,16 +274,43 @@ ...@@ -309,16 +274,43 @@
309 ] ; 274 ] ;
310 spin:rule 275 spin:rule
311 [ rdf:type sp:Construct ; 276 [ rdf:type sp:Construct ;
312 - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; 277 + rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ;
313 - sp:templates ([ sp:object 278 + sp:templates ([ sp:object _:b4 ;
314 - [ sp:varName "contextFacility"^^xsd:string 279 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
280 + sp:subject
281 + [ sp:varName "productVolumeReport"^^xsd:string
282 + ]
283 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
284 + sp:predicate rdf:type ;
285 + sp:subject _:b4
286 + ] [ sp:object
287 + [ sp:varName "productVolumeRef"^^xsd:string
315 ] ; 288 ] ;
316 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 289 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
290 + sp:subject _:b4
291 + ] [ sp:object _:b5 ;
292 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
293 + sp:subject _:b4
294 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
295 + sp:predicate rdf:type ;
296 + sp:subject _:b5
297 + ] [ sp:object _:b4 ;
298 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
317 sp:subject 299 sp:subject
318 - [ sp:varName "productionFacility"^^xsd:string 300 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
301 + ]
302 + ] [ sp:object _:b5 ;
303 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
304 + sp:subject
305 + [ sp:varName "productionFacilityToDate"^^xsd:string
319 ] 306 ]
320 ]) ; 307 ]) ;
321 - sp:where ([ sp:object 308 + sp:where ([ sp:object spin:_this ;
309 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
310 + sp:subject
311 + [ sp:varName "productionReport"^^xsd:string
312 + ]
313 + ] [ sp:object
322 [ sp:varName "productVolumeRef"^^xsd:string 314 [ sp:varName "productVolumeRef"^^xsd:string
323 ] ; 315 ] ;
324 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 316 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -329,32 +321,438 @@ ...@@ -329,32 +321,438 @@
329 [ sp:varName "productVolumeRef"^^xsd:string 321 [ sp:varName "productVolumeRef"^^xsd:string
330 ] 322 ]
331 ] [ sp:object 323 ] [ sp:object
332 - [ sp:varName "installationRef"^^xsd:string 324 + [ sp:varName "productVolumeRef"^^xsd:string
333 ] ; 325 ] ;
334 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 326 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
327 + sp:subject
328 + [ sp:varName "productVolumeReport"^^xsd:string
329 + ]
330 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
331 + sp:predicate rdf:type ;
335 sp:subject 332 sp:subject
333 + [ sp:varName "productVolumeReport"^^xsd:string
334 + ]
335 + ] [ sp:object
336 [ sp:varName "productVolumeRef"^^xsd:string 336 [ sp:varName "productVolumeRef"^^xsd:string
337 + ] ;
338 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
339 + sp:subject
340 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
341 + ]
342 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
343 + sp:predicate rdf:type ;
344 + sp:subject
345 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
337 ] 346 ]
338 ] [ sp:object 347 ] [ sp:object
339 - [ sp:varName "installationRef"^^xsd:string 348 + [ sp:varName "productionFacilityToDate"^^xsd:string
349 + ] ;
350 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
351 + sp:subject
352 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
353 + ]
354 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
355 + sp:predicate rdf:type ;
356 + sp:subject
357 + [ sp:varName "productionFacilityToDate"^^xsd:string
358 + ]
359 + ])
360 + ] ;
361 + spin:rule
362 + [ rdf:type sp:Construct ;
363 + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ;
364 + sp:templates ([ sp:object _:b6 ;
365 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
366 + sp:subject
367 + [ sp:varName "productVolumeReport"^^xsd:string
368 + ]
369 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
370 + sp:predicate rdf:type ;
371 + sp:subject _:b6
372 + ] [ sp:object
373 + [ sp:varName "productVolumeRef"^^xsd:string
340 ] ; 374 ] ;
341 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 375 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
376 + sp:subject _:b6
377 + ] [ sp:object _:b7 ;
378 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
379 + sp:subject _:b6
380 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
381 + sp:predicate rdf:type ;
382 + sp:subject _:b7
383 + ] [ sp:object _:b6 ;
384 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
342 sp:subject 385 sp:subject
343 - [ sp:varName "productionFacility"^^xsd:string 386 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
387 + ]
388 + ] [ sp:object _:b7 ;
389 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
390 + sp:subject
391 + [ sp:varName "productionFacilityToDate"^^xsd:string
344 ] 392 ]
345 ] [ sp:object 393 ] [ sp:object
346 - [ sp:varName "contextFacilityRef"^^xsd:string 394 + [ sp:varName "facilityRef"^^xsd:string
347 ] ; 395 ] ;
348 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 396 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
397 + sp:subject _:b6
398 + ] [ sp:object
399 + [ sp:varName "flowRef"^^xsd:string
400 + ] ;
401 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
402 + sp:subject _:b6
403 + ] [ sp:object
404 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
405 + ] ;
406 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
407 + sp:subject _:b6
408 + ]) ;
409 + sp:where ([ sp:object spin:_this ;
410 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
411 + sp:subject
412 + [ sp:varName "productionReport"^^xsd:string
413 + ]
414 + ] [ sp:object
415 + [ sp:varName "productVolumeRef"^^xsd:string
416 + ] ;
417 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
418 + sp:subject spin:_this
419 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
420 + sp:predicate rdf:type ;
349 sp:subject 421 sp:subject
350 [ sp:varName "productVolumeRef"^^xsd:string 422 [ sp:varName "productVolumeRef"^^xsd:string
351 ] 423 ]
352 ] [ sp:object 424 ] [ sp:object
353 - [ sp:varName "contextFacilityRef"^^xsd:string 425 + [ sp:varName "productVolumeRef"^^xsd:string
354 ] ; 426 ] ;
355 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 427 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
356 sp:subject 428 sp:subject
357 - [ sp:varName "contextFacility"^^xsd:string 429 + [ sp:varName "productVolumeReport"^^xsd:string
430 + ]
431 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
432 + sp:predicate rdf:type ;
433 + sp:subject
434 + [ sp:varName "productVolumeReport"^^xsd:string
435 + ]
436 + ] [ sp:object
437 + [ sp:varName "productVolumeRef"^^xsd:string
438 + ] ;
439 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
440 + sp:subject
441 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
442 + ]
443 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
444 + sp:predicate rdf:type ;
445 + sp:subject
446 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
447 + ]
448 + ] [ sp:object
449 + [ sp:varName "productionFacilityToDate"^^xsd:string
450 + ] ;
451 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
452 + sp:subject
453 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
454 + ]
455 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
456 + sp:predicate rdf:type ;
457 + sp:subject
458 + [ sp:varName "productionFacilityToDate"^^xsd:string
459 + ]
460 + ])
461 + ] ;
462 + spin:rule
463 + [ rdf:type sp:Construct ;
464 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
465 + sp:templates ([ sp:object
466 + [ sp:varName "dTimStart"^^xsd:string
467 + ] ;
468 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
469 + sp:subject
470 + [ sp:varName "productionFlow"^^xsd:string
471 + ]
472 + ] [ sp:object
473 + [ sp:varName "dTimEnd"^^xsd:string
474 + ] ;
475 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
476 + sp:subject
477 + [ sp:varName "productionFlow"^^xsd:string
478 + ]
479 + ] [ sp:object
480 + [ sp:varName "dTimEnd"^^xsd:string
481 + ] ;
482 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
483 + sp:subject
484 + [ sp:varName "productionFlowToDate"^^xsd:string
485 + ]
486 + ] [ sp:object
487 + [ sp:varName "dTimStart"^^xsd:string
488 + ] ;
489 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
490 + sp:subject
491 + [ sp:varName "productionInventory"^^xsd:string
492 + ]
493 + ] [ sp:object
494 + [ sp:varName "dTimEnd"^^xsd:string
495 + ] ;
496 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
497 + sp:subject
498 + [ sp:varName "productionInventory"^^xsd:string
499 + ]
500 + ] [ sp:object
501 + [ sp:varName "dTimEnd"^^xsd:string
502 + ] ;
503 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
504 + sp:subject
505 + [ sp:varName "productionInventoryToDate"^^xsd:string
506 + ]
507 + ] [ sp:object
508 + [ sp:varName "dTimStart"^^xsd:string
509 + ] ;
510 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
511 + sp:subject
512 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
513 + ]
514 + ] [ sp:object
515 + [ sp:varName "dTimEnd"^^xsd:string
516 + ] ;
517 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
518 + sp:subject
519 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
520 + ]
521 + ] [ sp:object
522 + [ sp:varName "dTimEnd"^^xsd:string
523 + ] ;
524 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
525 + sp:subject
526 + [ sp:varName "productionFacilityToDate"^^xsd:string
527 + ]
528 + ]) ;
529 + sp:where ([ sp:object
530 + [ sp:varName "productVolumeRef"^^xsd:string
531 + ] ;
532 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
533 + sp:subject spin:_this
534 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
535 + sp:predicate rdf:type ;
536 + sp:subject
537 + [ sp:varName "productVolumeRef"^^xsd:string
538 + ]
539 + ] [ sp:object
540 + [ sp:varName "dTimStart"^^xsd:string
541 + ] ;
542 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
543 + sp:subject
544 + [ sp:varName "productVolumeRef"^^xsd:string
545 + ]
546 + ] [ sp:object
547 + [ sp:varName "dTimEnd"^^xsd:string
548 + ] ;
549 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
550 + sp:subject
551 + [ sp:varName "productVolumeRef"^^xsd:string
552 + ]
553 + ] [ sp:object
554 + [ sp:varName "productVolumeRef"^^xsd:string
555 + ] ;
556 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
557 + sp:subject
558 + [ sp:varName "productionFlow"^^xsd:string
559 + ]
560 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
561 + sp:predicate rdf:type ;
562 + sp:subject
563 + [ sp:varName "productionFlow"^^xsd:string
564 + ]
565 + ] [ sp:object
566 + [ sp:varName "productionFlowToDate"^^xsd:string
567 + ] ;
568 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
569 + sp:subject
570 + [ sp:varName "productionFlow"^^xsd:string
571 + ]
572 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
573 + sp:predicate rdf:type ;
574 + sp:subject
575 + [ sp:varName "productionFlowToDate"^^xsd:string
576 + ]
577 + ] [ sp:object
578 + [ sp:varName "productVolumeRef"^^xsd:string
579 + ] ;
580 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
581 + sp:subject
582 + [ sp:varName "productionInventory"^^xsd:string
583 + ]
584 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
585 + sp:predicate rdf:type ;
586 + sp:subject
587 + [ sp:varName "productionInventory"^^xsd:string
588 + ]
589 + ] [ sp:object
590 + [ sp:varName "productionInventoryToDate"^^xsd:string
591 + ] ;
592 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
593 + sp:subject
594 + [ sp:varName "productionInventory"^^xsd:string
595 + ]
596 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
597 + sp:predicate rdf:type ;
598 + sp:subject
599 + [ sp:varName "productionInventoryToDate"^^xsd:string
600 + ]
601 + ] [ sp:object
602 + [ sp:varName "productVolumeRef"^^xsd:string
603 + ] ;
604 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
605 + sp:subject
606 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
607 + ]
608 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
609 + sp:predicate rdf:type ;
610 + sp:subject
611 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
612 + ]
613 + ] [ sp:object
614 + [ sp:varName "productionFacilityToDate"^^xsd:string
615 + ] ;
616 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
617 + sp:subject
618 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
619 + ]
620 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
621 + sp:predicate rdf:type ;
622 + sp:subject
623 + [ sp:varName "productionFacilityToDate"^^xsd:string
624 + ]
625 + ])
626 + ] ;
627 + spin:rule
628 + [ rdf:type sp:Construct ;
629 + rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ;
630 + sp:templates ([ sp:object
631 + [ sp:varName "dateStart"^^xsd:string
632 + ] ;
633 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
634 + sp:subject
635 + [ sp:varName "productionFlow"^^xsd:string
636 + ]
637 + ] [ sp:object
638 + [ sp:varName "dateStart"^^xsd:string
639 + ] ;
640 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
641 + sp:subject
642 + [ sp:varName "productionInventory"^^xsd:string
643 + ]
644 + ] [ sp:object
645 + [ sp:varName "dateStart"^^xsd:string
646 + ] ;
647 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
648 + sp:subject
649 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
650 + ]
651 + ]) ;
652 + sp:where ([ sp:object
653 + [ sp:varName "productVolumeRef"^^xsd:string
654 + ] ;
655 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
656 + sp:subject spin:_this
657 + ] [ sp:object
658 + [ sp:varName "dateStart"^^xsd:string
659 + ] ;
660 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
661 + sp:subject spin:_this
662 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
663 + sp:predicate rdf:type ;
664 + sp:subject
665 + [ sp:varName "productVolumeRef"^^xsd:string
666 + ]
667 + ] [ rdf:type sp:NotExists ;
668 + sp:elements ([ sp:object
669 + [ sp:varName "dateStartx"^^xsd:string
670 + ] ;
671 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
672 + sp:subject
673 + [ sp:varName "productVolumeRef"^^xsd:string
674 + ]
675 + ])
676 + ] [ rdf:type sp:NotExists ;
677 + sp:elements ([ sp:object
678 + [ sp:varName "dTimStartx"^^xsd:string
679 + ] ;
680 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
681 + sp:subject
682 + [ sp:varName "productVolumeRef"^^xsd:string
683 + ]
684 + ])
685 + ] [ sp:object
686 + [ sp:varName "productVolumeRef"^^xsd:string
687 + ] ;
688 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
689 + sp:subject
690 + [ sp:varName "productionFlow"^^xsd:string
691 + ]
692 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
693 + sp:predicate rdf:type ;
694 + sp:subject
695 + [ sp:varName "productionFlow"^^xsd:string
696 + ]
697 + ] [ sp:object
698 + [ sp:varName "productionFlowToDate"^^xsd:string
699 + ] ;
700 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
701 + sp:subject
702 + [ sp:varName "productionFlow"^^xsd:string
703 + ]
704 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
705 + sp:predicate rdf:type ;
706 + sp:subject
707 + [ sp:varName "productionFlowToDate"^^xsd:string
708 + ]
709 + ] [ sp:object
710 + [ sp:varName "productVolumeRef"^^xsd:string
711 + ] ;
712 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
713 + sp:subject
714 + [ sp:varName "productionInventory"^^xsd:string
715 + ]
716 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
717 + sp:predicate rdf:type ;
718 + sp:subject
719 + [ sp:varName "productionInventory"^^xsd:string
720 + ]
721 + ] [ sp:object
722 + [ sp:varName "productionInventoryToDate"^^xsd:string
723 + ] ;
724 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
725 + sp:subject
726 + [ sp:varName "productionInventory"^^xsd:string
727 + ]
728 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
729 + sp:predicate rdf:type ;
730 + sp:subject
731 + [ sp:varName "productionInventoryToDate"^^xsd:string
732 + ]
733 + ] [ sp:object
734 + [ sp:varName "productVolumeRef"^^xsd:string
735 + ] ;
736 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
737 + sp:subject
738 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
739 + ]
740 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
741 + sp:predicate rdf:type ;
742 + sp:subject
743 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
744 + ]
745 + ] [ sp:object
746 + [ sp:varName "productionFacilityToDate"^^xsd:string
747 + ] ;
748 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
749 + sp:subject
750 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
751 + ]
752 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
753 + sp:predicate rdf:type ;
754 + sp:subject
755 + [ sp:varName "productionFacilityToDate"^^xsd:string
358 ] 756 ]
359 ]) 757 ])
360 ] ; 758 ] ;
...@@ -525,62 +923,6 @@ ...@@ -525,62 +923,6 @@
525 ] ; 923 ] ;
526 spin:rule 924 spin:rule
527 [ rdf:type sp:Construct ; 925 [ rdf:type sp:Construct ;
528 - rdfs:comment """STEP 20060 Set the facility operator
529 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
530 - sp:templates ([ sp:object _:b6 ;
531 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
532 - sp:subject
533 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
534 - ]
535 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
536 - sp:predicate rdf:type ;
537 - sp:subject _:b6
538 - ] [ sp:object
539 - [ sp:varName "operator"^^xsd:string
540 - ] ;
541 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
542 - sp:subject _:b6
543 - ]) ;
544 - sp:where ([ sp:object
545 - [ sp:varName "productVolumeRef"^^xsd:string
546 - ] ;
547 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
548 - sp:subject spin:_this
549 - ] [ sp:object
550 - [ sp:varName "productVolumeRef"^^xsd:string
551 - ] ;
552 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
553 - sp:subject
554 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
555 - ]
556 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
557 - sp:predicate rdf:type ;
558 - sp:subject
559 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
560 - ]
561 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
562 - sp:predicate rdf:type ;
563 - sp:subject
564 - [ sp:varName "productVolumeRef"^^xsd:string
565 - ]
566 - ] [ sp:object
567 - [ sp:varName "operatorRef"^^xsd:string
568 - ] ;
569 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
570 - sp:subject
571 - [ sp:varName "productVolumeRef"^^xsd:string
572 - ]
573 - ] [ sp:object
574 - [ sp:varName "operatorRef"^^xsd:string
575 - ] ;
576 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
577 - sp:subject
578 - [ sp:varName "operator"^^xsd:string
579 - ]
580 - ])
581 - ] ;
582 - spin:rule
583 - [ rdf:type sp:Construct ;
584 rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; 926 rdfs:comment "STEP 20040 Set the installation"^^xsd:string ;
585 sp:templates ([ sp:object 927 sp:templates ([ sp:object
586 [ sp:varName "productionFacility"^^xsd:string 928 [ sp:varName "productionFacility"^^xsd:string
...@@ -649,65 +991,100 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -649,65 +991,100 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
649 ] ; 991 ] ;
650 spin:rule 992 spin:rule
651 [ rdf:type sp:Construct ; 993 [ rdf:type sp:Construct ;
652 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 994 + rdfs:comment """STEP 20060 Set the facility operator
653 - sp:templates ([ sp:object 995 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
654 - [ sp:varName "dTimStart"^^xsd:string 996 + sp:templates ([ sp:object _:b8 ;
655 - ] ; 997 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
656 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
657 sp:subject 998 sp:subject
658 - [ sp:varName "productionFlow"^^xsd:string 999 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
659 ] 1000 ]
1001 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
1002 + sp:predicate rdf:type ;
1003 + sp:subject _:b8
660 ] [ sp:object 1004 ] [ sp:object
661 - [ sp:varName "dTimEnd"^^xsd:string 1005 + [ sp:varName "operator"^^xsd:string
662 ] ; 1006 ] ;
663 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1007 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1008 + sp:subject _:b8
1009 + ]) ;
1010 + sp:where ([ sp:object
1011 + [ sp:varName "productVolumeRef"^^xsd:string
1012 + ] ;
1013 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
1014 + sp:subject spin:_this
1015 + ] [ sp:object
1016 + [ sp:varName "productVolumeRef"^^xsd:string
1017 + ] ;
1018 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
664 sp:subject 1019 sp:subject
665 - [ sp:varName "productionFlow"^^xsd:string 1020 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1021 + ]
1022 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
1023 + sp:predicate rdf:type ;
1024 + sp:subject
1025 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
1026 + ]
1027 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
1028 + sp:predicate rdf:type ;
1029 + sp:subject
1030 + [ sp:varName "productVolumeRef"^^xsd:string
666 ] 1031 ]
667 ] [ sp:object 1032 ] [ sp:object
668 - [ sp:varName "dTimEnd"^^xsd:string 1033 + [ sp:varName "operatorRef"^^xsd:string
669 ] ; 1034 ] ;
670 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1035 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
671 sp:subject 1036 sp:subject
672 - [ sp:varName "productionFlowToDate"^^xsd:string 1037 + [ sp:varName "productVolumeRef"^^xsd:string
673 ] 1038 ]
674 ] [ sp:object 1039 ] [ sp:object
675 - [ sp:varName "dTimStart"^^xsd:string 1040 + [ sp:varName "operatorRef"^^xsd:string
676 ] ; 1041 ] ;
677 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 1042 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
678 sp:subject 1043 sp:subject
679 - [ sp:varName "productionInventory"^^xsd:string 1044 + [ sp:varName "operator"^^xsd:string
1045 + ]
1046 + ])
1047 + ] ;
1048 + spin:rule
1049 + [ rdf:type sp:Construct ;
1050 + rdfs:comment "STEP 20033 Inherit end dates from the report context if necessary"^^xsd:string ;
1051 + sp:templates ([ sp:object
1052 + [ sp:varName "dateEnd"^^xsd:string
1053 + ] ;
1054 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
1055 + sp:subject
1056 + [ sp:varName "productionFlow"^^xsd:string
680 ] 1057 ]
681 ] [ sp:object 1058 ] [ sp:object
682 - [ sp:varName "dTimEnd"^^xsd:string 1059 + [ sp:varName "dateEnd"^^xsd:string
683 ] ; 1060 ] ;
684 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1061 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
685 sp:subject 1062 sp:subject
686 - [ sp:varName "productionInventory"^^xsd:string 1063 + [ sp:varName "productionFlowToDate"^^xsd:string
687 ] 1064 ]
688 ] [ sp:object 1065 ] [ sp:object
689 - [ sp:varName "dTimEnd"^^xsd:string 1066 + [ sp:varName "dateEnd"^^xsd:string
690 ] ; 1067 ] ;
691 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1068 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
692 sp:subject 1069 sp:subject
693 - [ sp:varName "productionInventoryToDate"^^xsd:string 1070 + [ sp:varName "productionInventory"^^xsd:string
694 ] 1071 ]
695 ] [ sp:object 1072 ] [ sp:object
696 - [ sp:varName "dTimStart"^^xsd:string 1073 + [ sp:varName "dateEnd"^^xsd:string
697 ] ; 1074 ] ;
698 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 1075 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
699 sp:subject 1076 sp:subject
700 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 1077 + [ sp:varName "productionInventoryToDate"^^xsd:string
701 ] 1078 ]
702 ] [ sp:object 1079 ] [ sp:object
703 - [ sp:varName "dTimEnd"^^xsd:string 1080 + [ sp:varName "dateEnd"^^xsd:string
704 ] ; 1081 ] ;
705 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1082 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
706 sp:subject 1083 sp:subject
707 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 1084 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
708 ] 1085 ]
709 ] [ sp:object 1086 ] [ sp:object
710 - [ sp:varName "dTimEnd"^^xsd:string 1087 + [ sp:varName "dateEnd"^^xsd:string
711 ] ; 1088 ] ;
712 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 1089 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
713 sp:subject 1090 sp:subject
...@@ -719,25 +1096,39 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -719,25 +1096,39 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
719 ] ; 1096 ] ;
720 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 1097 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
721 sp:subject spin:_this 1098 sp:subject spin:_this
1099 + ] [ sp:object
1100 + [ sp:varName "dateEnd"^^xsd:string
1101 + ] ;
1102 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
1103 + sp:subject spin:_this
722 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 1104 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
723 sp:predicate rdf:type ; 1105 sp:predicate rdf:type ;
724 sp:subject 1106 sp:subject
725 [ sp:varName "productVolumeRef"^^xsd:string 1107 [ sp:varName "productVolumeRef"^^xsd:string
726 ] 1108 ]
727 - ] [ sp:object 1109 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
728 - [ sp:varName "dTimStart"^^xsd:string 1110 + sp:predicate rdf:type ;
1111 + sp:subject
1112 + [ sp:varName "productVolumeRef"^^xsd:string
1113 + ]
1114 + ] [ rdf:type sp:NotExists ;
1115 + sp:elements ([ sp:object
1116 + [ sp:varName "dateEndx"^^xsd:string
729 ] ; 1117 ] ;
730 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 1118 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
731 sp:subject 1119 sp:subject
732 [ sp:varName "productVolumeRef"^^xsd:string 1120 [ sp:varName "productVolumeRef"^^xsd:string
733 ] 1121 ]
734 - ] [ sp:object 1122 + ])
735 - [ sp:varName "dTimEnd"^^xsd:string 1123 + ] [ rdf:type sp:NotExists ;
1124 + sp:elements ([ sp:object
1125 + [ sp:varName "dTimEndx"^^xsd:string
736 ] ; 1126 ] ;
737 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 1127 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
738 sp:subject 1128 sp:subject
739 [ sp:varName "productVolumeRef"^^xsd:string 1129 [ sp:varName "productVolumeRef"^^xsd:string
740 ] 1130 ]
1131 + ])
741 ] [ sp:object 1132 ] [ sp:object
742 [ sp:varName "productVolumeRef"^^xsd:string 1133 [ sp:varName "productVolumeRef"^^xsd:string
743 ] ; 1134 ] ;
...@@ -811,110 +1202,9 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -811,110 +1202,9 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
811 [ sp:varName "productionFacilityToDate"^^xsd:string 1202 [ sp:varName "productionFacilityToDate"^^xsd:string
812 ] 1203 ]
813 ]) 1204 ])
814 - ] ;
815 - spin:rule
816 - [ rdf:type sp:Construct ;
817 - rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ;
818 - sp:templates ([ sp:object _:b7 ;
819 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
820 - sp:subject
821 - [ sp:varName "productVolumeReport"^^xsd:string
822 - ]
823 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
824 - sp:predicate rdf:type ;
825 - sp:subject _:b7
826 - ] [ sp:object
827 - [ sp:varName "productVolumeRef"^^xsd:string
828 - ] ;
829 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
830 - sp:subject _:b7
831 - ] [ sp:object _:b8 ;
832 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
833 - sp:subject _:b7
834 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
835 - sp:predicate rdf:type ;
836 - sp:subject _:b8
837 - ] [ sp:object _:b7 ;
838 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
839 - sp:subject
840 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
841 - ]
842 - ] [ sp:object _:b8 ;
843 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
844 - sp:subject
845 - [ sp:varName "productionFacilityToDate"^^xsd:string
846 - ]
847 - ] [ sp:object
848 - [ sp:varName "facilityRef"^^xsd:string
849 - ] ;
850 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
851 - sp:subject _:b7
852 - ] [ sp:object
853 - [ sp:varName "flowRef"^^xsd:string
854 - ] ;
855 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
856 - sp:subject _:b7
857 - ] [ sp:object
858 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
859 - ] ;
860 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
861 - sp:subject _:b7
862 - ]) ;
863 - sp:where ([ sp:object spin:_this ;
864 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
865 - sp:subject
866 - [ sp:varName "productionReport"^^xsd:string
867 - ]
868 - ] [ sp:object
869 - [ sp:varName "productVolumeRef"^^xsd:string
870 - ] ;
871 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
872 - sp:subject spin:_this
873 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
874 - sp:predicate rdf:type ;
875 - sp:subject
876 - [ sp:varName "productVolumeRef"^^xsd:string
877 - ]
878 - ] [ sp:object
879 - [ sp:varName "productVolumeRef"^^xsd:string
880 - ] ;
881 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
882 - sp:subject
883 - [ sp:varName "productVolumeReport"^^xsd:string
884 - ]
885 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
886 - sp:predicate rdf:type ;
887 - sp:subject
888 - [ sp:varName "productVolumeReport"^^xsd:string
889 - ]
890 - ] [ sp:object
891 - [ sp:varName "productVolumeRef"^^xsd:string
892 - ] ;
893 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
894 - sp:subject
895 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
896 - ]
897 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
898 - sp:predicate rdf:type ;
899 - sp:subject
900 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
901 - ]
902 - ] [ sp:object
903 - [ sp:varName "productionFacilityToDate"^^xsd:string
904 - ] ;
905 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
906 - sp:subject
907 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
908 - ]
909 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
910 - sp:predicate rdf:type ;
911 - sp:subject
912 - [ sp:varName "productionFacilityToDate"^^xsd:string
913 - ]
914 - ])
915 ] . 1205 ] .
916 1206
917 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 1207 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
918 rdf:type owl:Ontology ; 1208 rdf:type owl:Ontology ;
919 - 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; 1209 + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ;
920 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1210 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -20,6 +20,187 @@ ...@@ -20,6 +20,187 @@
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 ;
24 + sp:templates ([ sp:object _:b1 ;
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 ;
45 + sp:subject
46 + [ sp:varName "contextRef"^^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 + ]
62 + ] [ sp:object spin:_this ;
63 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
64 + sp:subject
65 + [ sp:varName "productionReport"^^xsd:string
66 + ]
67 + ] [ sp:object
68 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
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
86 + ] ;
87 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
88 + sp:subject spin:_this
89 + ] [ sp:object
90 + [ sp:varName "date"^^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 + ] ;
103 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
104 + sp:subject spin:_this
105 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
106 + sp:predicate rdf:type ;
107 + sp:subject
108 + [ sp:varName "contextRef"^^xsd:string
109 + ]
110 + ] [ sp:object
111 + [ sp:varName "date"^^xsd:string
112 + ] ;
113 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
114 + sp:subject
115 + [ sp:varName "contextRef"^^xsd:string
116 + ]
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
127 + [ sp:varName "dateEnd"^^xsd:string
128 + ] ;
129 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
130 + sp:subject
131 + [ sp:varName "contextRef"^^xsd:string
132 + ]
133 + ] [ rdf:type sp:Bind ;
134 + sp:expression
135 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
136 + sp:arg1 [ sp:varName "date"^^xsd:string
137 + ] ;
138 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
139 + ]
140 + ] ;
141 + sp:variable
142 + [ sp:varName "intervalIdentifier"^^xsd:string
143 + ]
144 + ])
145 + ] ;
146 + spin:rule
147 + [ rdf:type sp:Construct ;
148 + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
149 + sp:templates ([ sp:object
150 + [ sp:varName "intervalIdentifier"^^xsd:string
151 + ] ;
152 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
153 + sp:subject spin:_this
154 + ] [ sp:object
155 + [ sp:varName "dateStart"^^xsd:string
156 + ] ;
157 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
158 + sp:subject spin:_this
159 + ] [ sp:object
160 + [ sp:varName "dateEnd"^^xsd:string
161 + ] ;
162 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
163 + sp:subject spin:_this
164 + ]) ;
165 + sp:where ([ sp:object
166 + [ sp:varName "contextRef"^^xsd:string
167 + ] ;
168 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
169 + sp:subject spin:_this
170 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
171 + sp:predicate rdf:type ;
172 + sp:subject
173 + [ sp:varName "contextRef"^^xsd:string
174 + ]
175 + ] [ sp:object
176 + [ sp:varName "dateStart"^^xsd:string
177 + ] ;
178 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
179 + sp:subject
180 + [ sp:varName "contextRef"^^xsd:string
181 + ]
182 + ] [ sp:object
183 + [ sp:varName "dateEnd"^^xsd:string
184 + ] ;
185 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
186 + sp:subject
187 + [ sp:varName "contextRef"^^xsd:string
188 + ]
189 + ] [ rdf:type sp:Bind ;
190 + sp:expression
191 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
192 + sp:arg1 [ sp:varName "dateStart"^^xsd:string
193 + ] ;
194 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
195 + ]
196 + ] ;
197 + sp:variable
198 + [ sp:varName "intervalIdentifier"^^xsd:string
199 + ]
200 + ])
201 + ] ;
202 + spin:rule
203 + [ rdf:type sp:Construct ;
23 rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; 204 rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
24 sp:templates ([ sp:object "noDate" ; 205 sp:templates ([ sp:object "noDate" ;
25 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 206 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
...@@ -66,12 +247,22 @@ ...@@ -66,12 +247,22 @@
66 ] ; 247 ] ;
67 spin:rule 248 spin:rule
68 [ rdf:type sp:Construct ; 249 [ rdf:type sp:Construct ;
69 - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; 250 + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
70 sp:templates ([ sp:object 251 sp:templates ([ sp:object
71 - [ sp:varName "dateEnd"^^xsd:string 252 + [ sp:varName "date"^^xsd:string
72 ] ; 253 ] ;
73 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 254 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
74 sp:subject spin:_this 255 sp:subject spin:_this
256 + ] [ sp:object
257 + [ sp:varName "date"^^xsd:string
258 + ] ;
259 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
260 + sp:subject spin:_this
261 + ] [ sp:object
262 + [ sp:varName "date"^^xsd:string
263 + ] ;
264 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
265 + sp:subject spin:_this
75 ]) ; 266 ]) ;
76 sp:where ([ sp:object 267 sp:where ([ sp:object
77 [ sp:varName "contextRef"^^xsd:string 268 [ sp:varName "contextRef"^^xsd:string
...@@ -84,26 +275,26 @@ ...@@ -84,26 +275,26 @@
84 [ sp:varName "contextRef"^^xsd:string 275 [ sp:varName "contextRef"^^xsd:string
85 ] 276 ]
86 ] [ sp:object 277 ] [ sp:object
87 - [ sp:varName "dateEnd"^^xsd:string 278 + [ sp:varName "date"^^xsd:string
88 ] ; 279 ] ;
89 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 280 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
90 sp:subject 281 sp:subject
91 [ sp:varName "contextRef"^^xsd:string 282 [ sp:varName "contextRef"^^xsd:string
92 ] 283 ]
93 ] [ rdf:type sp:NotExists ; 284 ] [ rdf:type sp:NotExists ;
94 sp:elements ([ sp:object 285 sp:elements ([ sp:object
95 - [ sp:varName "date"^^xsd:string 286 + [ sp:varName "dateStart"^^xsd:string
96 ] ; 287 ] ;
97 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 288 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
98 sp:subject 289 sp:subject
99 [ sp:varName "contextRef"^^xsd:string 290 [ sp:varName "contextRef"^^xsd:string
100 ] 291 ]
101 ]) 292 ])
102 ] [ rdf:type sp:NotExists ; 293 ] [ rdf:type sp:NotExists ;
103 sp:elements ([ sp:object 294 sp:elements ([ sp:object
104 - [ sp:varName "dateStart"^^xsd:string 295 + [ sp:varName "dateEnd"^^xsd:string
105 ] ; 296 ] ;
106 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 297 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
107 sp:subject 298 sp:subject
108 [ sp:varName "contextRef"^^xsd:string 299 [ sp:varName "contextRef"^^xsd:string
109 ] 300 ]
...@@ -172,6 +363,54 @@ ...@@ -172,6 +363,54 @@
172 ] ; 363 ] ;
173 spin:rule 364 spin:rule
174 [ rdf:type sp:Construct ; 365 [ rdf:type sp:Construct ;
366 + rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ;
367 + sp:templates ([ sp:object _:b2 ;
368 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
369 + sp:subject
370 + [ sp:varName "productionReport"^^xsd:string
371 + ]
372 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
373 + sp:predicate rdf:type ;
374 + sp:subject _:b2
375 + ] [ sp:object
376 + [ sp:varName "installation"^^xsd:string
377 + ] ;
378 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
379 + sp:subject _:b2
380 + ]) ;
381 + sp:where ([ sp:object
382 + [ sp:varName "contextRef"^^xsd:string
383 + ] ;
384 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
385 + 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> ;
392 + sp:predicate rdf:type ;
393 + sp:subject
394 + [ sp:varName "contextRef"^^xsd:string
395 + ]
396 + ] [ sp:object
397 + [ sp:varName "installationRef"^^xsd:string
398 + ] ;
399 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
400 + sp:subject
401 + [ sp:varName "contextRef"^^xsd:string
402 + ]
403 + ] [ sp:object
404 + [ sp:varName "installationRef"^^xsd:string
405 + ] ;
406 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
407 + sp:subject
408 + [ sp:varName "installation"^^xsd:string
409 + ]
410 + ])
411 + ] ;
412 + spin:rule
413 + [ rdf:type sp:Construct ;
175 rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; 414 rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ;
176 sp:templates ([ sp:object 415 sp:templates ([ sp:object
177 [ sp:varName "contextFacility"^^xsd:string 416 [ sp:varName "contextFacility"^^xsd:string
...@@ -233,151 +472,58 @@ ...@@ -233,151 +472,58 @@
233 ] ; 472 ] ;
234 spin:rule 473 spin:rule
235 [ rdf:type sp:Construct ; 474 [ rdf:type sp:Construct ;
236 - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; 475 + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
237 sp:templates ([ sp:object 476 sp:templates ([ sp:object
238 - [ sp:varName "intervalIdentifier"^^xsd:string 477 + [ sp:varName "dateEnd"^^xsd:string
239 ] ; 478 ] ;
240 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 479 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
241 sp:subject spin:_this 480 sp:subject spin:_this
242 - ]) ;
243 - sp:where ([ sp:object
244 - [ sp:varName "contextRef"^^xsd:string
245 - ] ;
246 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
247 - sp:subject spin:_this
248 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
249 - sp:predicate rdf:type ;
250 - sp:subject
251 - [ sp:varName "contextRef"^^xsd:string
252 - ]
253 - ] [ sp:object
254 - [ sp:varName "date"^^xsd:string
255 - ] ;
256 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
257 - sp:subject
258 - [ sp:varName "contextRef"^^xsd:string
259 - ]
260 - ] [ rdf:type sp:NotExists ;
261 - sp:elements ([ sp:object
262 - [ sp:varName "dateStart"^^xsd:string
263 - ] ;
264 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
265 - sp:subject
266 - [ sp:varName "contextRef"^^xsd:string
267 - ]
268 - ])
269 ] [ sp:object 481 ] [ sp:object
270 [ sp:varName "dateEnd"^^xsd:string 482 [ sp:varName "dateEnd"^^xsd:string
271 ] ; 483 ] ;
272 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 484 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
273 - sp:subject 485 + sp:subject spin:_this
274 - [ sp:varName "contextRef"^^xsd:string
275 - ]
276 - ] [ rdf:type sp:Bind ;
277 - sp:expression
278 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
279 - sp:arg1 [ sp:varName "date"^^xsd:string
280 - ] ;
281 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string
282 - ]
283 - ] ;
284 - sp:variable
285 - [ sp:varName "intervalIdentifier"^^xsd:string
286 - ]
287 - ])
288 - ] ;
289 - spin:rule
290 - [ rdf:type sp:Construct ;
291 - rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ;
292 - sp:templates ([ sp:object _:b1 ;
293 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
294 - sp:subject
295 - [ sp:varName "productionReport"^^xsd:string
296 - ]
297 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
298 - sp:predicate rdf:type ;
299 - sp:subject _:b1
300 ] [ sp:object 486 ] [ sp:object
301 - [ sp:varName "installation"^^xsd:string 487 + [ sp:varName "dateEnd"^^xsd:string
302 ] ; 488 ] ;
303 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 489 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
304 - sp:subject _:b1 490 + sp:subject spin:_this
305 ]) ; 491 ]) ;
306 sp:where ([ sp:object 492 sp:where ([ sp:object
307 [ sp:varName "contextRef"^^xsd:string 493 [ sp:varName "contextRef"^^xsd:string
308 ] ; 494 ] ;
309 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 495 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
310 sp:subject spin:_this 496 sp:subject spin:_this
311 - ] [ sp:object spin:_this ;
312 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
313 - sp:subject
314 - [ sp:varName "productionReport"^^xsd:string
315 - ]
316 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 497 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
317 sp:predicate rdf:type ; 498 sp:predicate rdf:type ;
318 sp:subject 499 sp:subject
319 [ sp:varName "contextRef"^^xsd:string 500 [ sp:varName "contextRef"^^xsd:string
320 ] 501 ]
321 ] [ sp:object 502 ] [ sp:object
322 - [ sp:varName "installationRef"^^xsd:string 503 + [ sp:varName "dateEnd"^^xsd:string
323 ] ; 504 ] ;
324 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 505 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
325 sp:subject 506 sp:subject
326 [ sp:varName "contextRef"^^xsd:string 507 [ sp:varName "contextRef"^^xsd:string
327 ] 508 ]
328 - ] [ sp:object 509 + ] [ rdf:type sp:NotExists ;
329 - [ sp:varName "installationRef"^^xsd:string 510 + sp:elements ([ sp:object
330 - ] ; 511 + [ sp:varName "date"^^xsd:string
331 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
332 - sp:subject
333 - [ sp:varName "installation"^^xsd:string
334 - ]
335 - ])
336 - ] ;
337 - spin:rule
338 - [ rdf:type sp:Construct ;
339 - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
340 - sp:templates ([ sp:object
341 - [ sp:varName "intervalIdentifier"^^xsd:string
342 - ] ;
343 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
344 - sp:subject spin:_this
345 - ]) ;
346 - sp:where ([ sp:object
347 - [ sp:varName "contextRef"^^xsd:string
348 ] ; 512 ] ;
349 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 513 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
350 - sp:subject spin:_this
351 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
352 - sp:predicate rdf:type ;
353 sp:subject 514 sp:subject
354 [ sp:varName "contextRef"^^xsd:string 515 [ sp:varName "contextRef"^^xsd:string
355 ] 516 ]
356 - ] [ sp:object 517 + ])
518 + ] [ rdf:type sp:NotExists ;
519 + sp:elements ([ sp:object
357 [ sp:varName "dateStart"^^xsd:string 520 [ sp:varName "dateStart"^^xsd:string
358 ] ; 521 ] ;
359 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 522 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
360 sp:subject 523 sp:subject
361 [ sp:varName "contextRef"^^xsd:string 524 [ sp:varName "contextRef"^^xsd:string
362 ] 525 ]
363 - ] [ sp:object 526 + ])
364 - [ sp:varName "dateEnd"^^xsd:string
365 - ] ;
366 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
367 - sp:subject
368 - [ sp:varName "contextRef"^^xsd:string
369 - ]
370 - ] [ rdf:type sp:Bind ;
371 - sp:expression
372 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
373 - sp:arg1 [ sp:varName "dateStart"^^xsd:string
374 - ] ;
375 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string
376 - ]
377 - ] ;
378 - sp:variable
379 - [ sp:varName "intervalIdentifier"^^xsd:string
380 - ]
381 ]) 527 ])
382 ] ; 528 ] ;
383 spin:rule 529 spin:rule
...@@ -450,115 +596,9 @@ ...@@ -450,115 +596,9 @@
450 [ sp:varName "productionReport"^^xsd:string 596 [ sp:varName "productionReport"^^xsd:string
451 ] 597 ]
452 ]) 598 ])
453 - ] ;
454 - spin:rule
455 - [ rdf:type sp:Construct ;
456 - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
457 - sp:templates ([ sp:object _:b2 ;
458 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
459 - sp:subject
460 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
461 - ]
462 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
463 - sp:predicate rdf:type ;
464 - sp:subject _:b2
465 - ] [ sp:object
466 - [ sp:varName "operator"^^xsd:string
467 - ] ;
468 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
469 - sp:subject _:b2
470 - ]) ;
471 - sp:where ([ sp:object
472 - [ sp:varName "contextRef"^^xsd:string
473 - ] ;
474 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
475 - sp:subject spin:_this
476 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
477 - sp:predicate rdf:type ;
478 - sp:subject
479 - [ sp:varName "contextRef"^^xsd:string
480 - ]
481 - ] [ sp:object
482 - [ sp:varName "operatorRef"^^xsd:string
483 - ] ;
484 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
485 - sp:subject
486 - [ sp:varName "contextRef"^^xsd:string
487 - ]
488 - ] [ sp:object
489 - [ sp:varName "operatorRef"^^xsd:string
490 - ] ;
491 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
492 - sp:subject
493 - [ sp:varName "operator"^^xsd:string
494 - ]
495 - ] [ sp:object spin:_this ;
496 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
497 - sp:subject
498 - [ sp:varName "productionReport"^^xsd:string
499 - ]
500 - ] [ sp:object
501 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
502 - ] ;
503 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
504 - sp:subject
505 - [ sp:varName "productionReport"^^xsd:string
506 - ]
507 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
508 - sp:predicate rdf:type ;
509 - sp:subject
510 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
511 - ]
512 - ])
513 - ] ;
514 - spin:rule
515 - [ rdf:type sp:Construct ;
516 - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
517 - sp:templates ([ sp:object
518 - [ sp:varName "date"^^xsd:string
519 - ] ;
520 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
521 - sp:subject spin:_this
522 - ]) ;
523 - sp:where ([ sp:object
524 - [ sp:varName "contextRef"^^xsd:string
525 - ] ;
526 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
527 - sp:subject spin:_this
528 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
529 - sp:predicate rdf:type ;
530 - sp:subject
531 - [ sp:varName "contextRef"^^xsd:string
532 - ]
533 - ] [ sp:object
534 - [ sp:varName "date"^^xsd:string
535 - ] ;
536 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
537 - sp:subject
538 - [ sp:varName "contextRef"^^xsd:string
539 - ]
540 - ] [ rdf:type sp:NotExists ;
541 - sp:elements ([ sp:object
542 - [ sp:varName "dateStart"^^xsd:string
543 - ] ;
544 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
545 - sp:subject
546 - [ sp:varName "contextRef"^^xsd:string
547 - ]
548 - ])
549 - ] [ rdf:type sp:NotExists ;
550 - sp:elements ([ sp:object
551 - [ sp:varName "dateEnd"^^xsd:string
552 - ] ;
553 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
554 - sp:subject
555 - [ sp:varName "contextRef"^^xsd:string
556 - ]
557 - ])
558 - ])
559 ] . 599 ] .
560 600
561 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> 601 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
562 rdf:type owl:Ontology ; 602 rdf:type owl:Ontology ;
563 - 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> ; 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> ;
564 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 604 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......