David Leal

Flows bug put in yesterday now fixed

...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
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 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; 25 + rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ;
26 sp:templates ([ sp:object _:b1 ; 26 sp:templates ([ sp:object _:b1 ;
27 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 27 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
28 sp:subject 28 sp:subject
29 [ sp:varName "productVolumeReport"^^xsd:string 29 [ sp:varName "productVolumeReport"^^xsd:string
30 ] 30 ]
31 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; 31 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
32 sp:predicate rdf:type ; 32 sp:predicate rdf:type ;
33 sp:subject _:b1 33 sp:subject _:b1
34 ] [ sp:object 34 ] [ sp:object
...@@ -39,34 +39,19 @@ ...@@ -39,34 +39,19 @@
39 ] [ sp:object _:b2 ; 39 ] [ sp:object _:b2 ;
40 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 40 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
41 sp:subject _:b1 41 sp:subject _:b1
42 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; 42 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
43 sp:predicate rdf:type ; 43 sp:predicate rdf:type ;
44 sp:subject _:b2 44 sp:subject _:b2
45 ] [ sp:object _:b1 ; 45 ] [ sp:object _:b1 ;
46 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; 46 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
47 sp:subject 47 sp:subject
48 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 48 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
49 ] 49 ]
50 ] [ sp:object _:b2 ; 50 ] [ sp:object _:b2 ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; 51 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
52 sp:subject 52 sp:subject
53 [ sp:varName "productionFacilityToDate"^^xsd:string 53 [ sp:varName "productionFacilityToDate"^^xsd:string
54 ] 54 ]
55 - ] [ sp:object
56 - [ sp:varName "facilityRef"^^xsd:string
57 - ] ;
58 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
59 - sp:subject _:b1
60 - ] [ sp:object
61 - [ sp:varName "flowRef"^^xsd:string
62 - ] ;
63 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
64 - sp:subject _:b1
65 - ] [ sp:object
66 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
67 - ] ;
68 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
69 - sp:subject _:b1
70 ]) ; 55 ]) ;
71 sp:where ([ sp:object spin:_this ; 56 sp:where ([ sp:object spin:_this ;
72 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 57 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
...@@ -123,72 +108,64 @@ ...@@ -123,72 +108,64 @@
123 ] ; 108 ] ;
124 spin:rule 109 spin:rule
125 [ rdf:type sp:Construct ; 110 [ rdf:type sp:Construct ;
126 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 111 + rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
127 - sp:templates ([ sp:object 112 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
128 - [ sp:varName "dTimStart"^^xsd:string 113 + sp:predicate rdf:type ;
129 - ] ; 114 + sp:subject _:b3
130 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
131 - sp:subject
132 - [ sp:varName "productionFlow"^^xsd:string
133 - ]
134 ] [ sp:object 115 ] [ sp:object
135 - [ sp:varName "dTimEnd"^^xsd:string 116 + [ sp:varName "productionReport"^^xsd:string
136 ] ; 117 ] ;
137 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 118 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
138 - sp:subject 119 + sp:subject _:b3
139 - [ sp:varName "productionFlow"^^xsd:string
140 - ]
141 ] [ sp:object 120 ] [ sp:object
142 - [ sp:varName "dTimEnd"^^xsd:string 121 + [ sp:varName "name"^^xsd:string
143 ] ; 122 ] ;
144 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 123 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
145 - sp:subject 124 + sp:subject _:b3
146 - [ sp:varName "productionFlowToDate"^^xsd:string
147 - ]
148 ] [ sp:object 125 ] [ sp:object
149 - [ sp:varName "dTimStart"^^xsd:string 126 + [ sp:varName "reportPeriodType"^^xsd:string
150 ] ; 127 ] ;
151 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 128 + sp:predicate rdf:type ;
152 - sp:subject 129 + sp:subject _:b3
153 - [ sp:varName "productionInventory"^^xsd:string
154 - ]
155 ] [ sp:object 130 ] [ sp:object
156 - [ sp:varName "dTimEnd"^^xsd:string 131 + [ sp:varName "productVolumeRef"^^xsd:string
157 ] ; 132 ] ;
158 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 133 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
159 - sp:subject 134 + sp:subject _:b3
160 - [ sp:varName "productionInventory"^^xsd:string 135 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
161 - ] 136 + sp:predicate rdf:type ;
137 + sp:subject _:b4
162 ] [ sp:object 138 ] [ sp:object
163 - [ sp:varName "dTimEnd"^^xsd:string 139 + [ sp:varName "productVolumeRef"^^xsd:string
164 ] ; 140 ] ;
165 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 141 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
166 - sp:subject 142 + sp:subject _:b4
167 - [ sp:varName "productionInventoryToDate"^^xsd:string 143 + ] [ sp:object _:b5 ;
168 - ] 144 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
145 + sp:subject _:b4
146 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
147 + sp:predicate rdf:type ;
148 + sp:subject _:b5
169 ] [ sp:object 149 ] [ sp:object
170 - [ sp:varName "dTimStart"^^xsd:string 150 + [] ;
171 - ] ; 151 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
172 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 152 + sp:subject _:b4
173 - sp:subject
174 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
175 - ]
176 ] [ sp:object 153 ] [ sp:object
177 - [ sp:varName "dTimEnd"^^xsd:string 154 + [] ;
178 - ] ; 155 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
179 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 156 + sp:subject _:b5
180 - sp:subject
181 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
182 - ]
183 ] [ sp:object 157 ] [ sp:object
184 - [ sp:varName "dTimEnd"^^xsd:string 158 + [ sp:varName "title"^^xsd:string
185 ] ; 159 ] ;
186 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 160 + sp:predicate <http://purl.org/dc/elements/1.1/title> ;
161 + sp:subject _:b3
162 + ]) ;
163 + sp:where ([ sp:object spin:_this ;
164 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
187 sp:subject 165 sp:subject
188 - [ sp:varName "productionFacilityToDate"^^xsd:string 166 + [ sp:varName "productionReport"^^xsd:string
189 ] 167 ]
190 - ]) ; 168 + ] [ sp:object
191 - sp:where ([ sp:object
192 [ sp:varName "productVolumeRef"^^xsd:string 169 [ sp:varName "productVolumeRef"^^xsd:string
193 ] ; 170 ] ;
194 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 171 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -199,109 +176,146 @@ ...@@ -199,109 +176,146 @@
199 [ sp:varName "productVolumeRef"^^xsd:string 176 [ sp:varName "productVolumeRef"^^xsd:string
200 ] 177 ]
201 ] [ sp:object 178 ] [ sp:object
202 - [ sp:varName "dTimStart"^^xsd:string 179 + [ sp:varName "nameRef"^^xsd:string
203 ] ; 180 ] ;
204 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 181 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
205 sp:subject 182 sp:subject
206 [ sp:varName "productVolumeRef"^^xsd:string 183 [ sp:varName "productVolumeRef"^^xsd:string
207 ] 184 ]
208 ] [ sp:object 185 ] [ sp:object
209 - [ sp:varName "dTimEnd"^^xsd:string 186 + [ sp:varName "name"^^xsd:string
210 ] ; 187 ] ;
211 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 188 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
212 sp:subject 189 sp:subject
213 - [ sp:varName "productVolumeRef"^^xsd:string 190 + [ sp:varName "nameRef"^^xsd:string
214 ] 191 ]
215 - ] [ sp:object 192 + ] [ rdf:type sp:Optional ;
216 - [ sp:varName "productVolumeRef"^^xsd:string 193 + sp:elements ([ sp:object
194 + [ sp:varName "periodKindRef"^^xsd:string
217 ] ; 195 ] ;
218 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 196 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
219 sp:subject 197 sp:subject
220 - [ sp:varName "productionFlow"^^xsd:string 198 + [ sp:varName "productVolumeRef"^^xsd:string
221 ] 199 ]
222 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; 200 + ])
223 - sp:predicate rdf:type ; 201 + ] [ rdf:type sp:Optional ;
202 + sp:elements ([ sp:object
203 + [ sp:varName "titleRef"^^xsd:string
204 + ] ;
205 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
224 sp:subject 206 sp:subject
225 - [ sp:varName "productionFlow"^^xsd:string 207 + [ sp:varName "productVolumeRef"^^xsd:string
226 ] 208 ]
227 ] [ sp:object 209 ] [ sp:object
228 - [ sp:varName "productionFlowToDate"^^xsd:string 210 + [ sp:varName "title"^^xsd:string
229 ] ; 211 ] ;
230 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 212 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
231 sp:subject 213 sp:subject
232 - [ sp:varName "productionFlow"^^xsd:string 214 + [ sp:varName "titleRef"^^xsd:string
233 ] 215 ]
234 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; 216 + ])
235 - sp:predicate rdf:type ; 217 + ] [ rdf:type sp:Bind ;
236 - sp:subject 218 + sp:expression
237 - [ sp:varName "productionFlowToDate"^^xsd:string 219 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
220 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
238 ] 221 ]
239 - ] [ sp:object
240 - [ sp:varName "productVolumeRef"^^xsd:string
241 ] ; 222 ] ;
242 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 223 + sp:variable
224 + [ sp:varName "reportPeriodType"^^xsd:string
225 + ]
226 + ])
227 + ] ;
228 + spin:rule
229 + [ rdf:type sp:Construct ;
230 + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
231 + sp:templates ([ sp:object
232 + [ sp:varName "reportKind"^^xsd:string
233 + ] ;
234 + sp:predicate rdf:type ;
243 sp:subject 235 sp:subject
244 - [ sp:varName "productionInventory"^^xsd:string 236 + [ sp:varName "productVolumeReport"^^xsd:string
245 ] 237 ]
246 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; 238 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
247 sp:predicate rdf:type ; 239 sp:predicate rdf:type ;
248 sp:subject 240 sp:subject
249 - [ sp:varName "productionInventory"^^xsd:string 241 + [ sp:varName "reportKind"^^xsd:string
242 + ]
243 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
244 + sp:predicate rdfs:subClassOf ;
245 + sp:subject
246 + [ sp:varName "reportKind"^^xsd:string
250 ] 247 ]
251 ] [ sp:object 248 ] [ sp:object
252 - [ sp:varName "productionInventoryToDate"^^xsd:string 249 + [ sp:varName "kind"^^xsd:string
253 ] ; 250 ] ;
254 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 251 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
255 sp:subject 252 sp:subject
256 - [ sp:varName "productionInventory"^^xsd:string 253 + [ sp:varName "reportKind"^^xsd:string
257 ] 254 ]
258 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; 255 + ]) ;
256 + sp:where ([ sp:object
257 + [ sp:varName "productVolumeRef"^^xsd:string
258 + ] ;
259 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
260 + sp:subject spin:_this
261 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
259 sp:predicate rdf:type ; 262 sp:predicate rdf:type ;
260 sp:subject 263 sp:subject
261 - [ sp:varName "productionInventoryToDate"^^xsd:string 264 + [ sp:varName "productVolumeRef"^^xsd:string
262 ] 265 ]
263 ] [ sp:object 266 ] [ sp:object
264 [ sp:varName "productVolumeRef"^^xsd:string 267 [ sp:varName "productVolumeRef"^^xsd:string
265 ] ; 268 ] ;
266 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 269 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
267 sp:subject 270 sp:subject
268 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 271 + [ sp:varName "productVolumeReport"^^xsd:string
269 ] 272 ]
270 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 273 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
271 sp:predicate rdf:type ; 274 sp:predicate rdf:type ;
272 sp:subject 275 sp:subject
273 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 276 + [ sp:varName "productVolumeReport"^^xsd:string
274 ] 277 ]
275 ] [ sp:object 278 ] [ sp:object
276 - [ sp:varName "productionFacilityToDate"^^xsd:string 279 + [ sp:varName "nameRef"^^xsd:string
277 ] ; 280 ] ;
278 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 281 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
279 sp:subject 282 sp:subject
280 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 283 + [ sp:varName "productVolumeRef"^^xsd:string
281 ] 284 ]
282 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 285 + ] [ sp:object
283 - sp:predicate rdf:type ; 286 + [ sp:varName "name"^^xsd:string
287 + ] ;
288 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
284 sp:subject 289 sp:subject
285 - [ sp:varName "productionFacilityToDate"^^xsd:string 290 + [ sp:varName "nameRef"^^xsd:string
291 + ]
292 + ] [ sp:object
293 + [ sp:varName "kind"^^xsd:string
294 + ] ;
295 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
296 + sp:subject
297 + [ sp:varName "productVolumeRef"^^xsd:string
298 + ]
299 + ] [ rdf:type sp:Bind ;
300 + sp:expression
301 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
302 + sp:arg1 [ sp:varName "kind"^^xsd:string
303 + ]
304 + ] ;
305 + sp:variable
306 + [ sp:varName "reportKind"^^xsd:string
286 ] 307 ]
287 ]) 308 ])
288 ] ; 309 ] ;
289 spin:rule 310 spin:rule
290 [ rdf:type sp:Construct ; 311 [ rdf:type sp:Construct ;
291 - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; 312 + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ;
292 sp:templates ([ sp:object 313 sp:templates ([ sp:object
293 - [ sp:varName "productionFacility"^^xsd:string 314 + [ sp:varName "contextFacility"^^xsd:string
294 ] ; 315 ] ;
295 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 316 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
296 sp:subject 317 sp:subject
297 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
298 - ]
299 - ] [ sp:object
300 [ sp:varName "productionFacility"^^xsd:string 318 [ sp:varName "productionFacility"^^xsd:string
301 - ] ;
302 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
303 - sp:subject
304 - [ sp:varName "productionFacilityToDate"^^xsd:string
305 ] 319 ]
306 ]) ; 320 ]) ;
307 sp:where ([ sp:object 321 sp:where ([ sp:object
...@@ -329,84 +343,18 @@ ...@@ -329,84 +343,18 @@
329 [ sp:varName "productionFacility"^^xsd:string 343 [ sp:varName "productionFacility"^^xsd:string
330 ] 344 ]
331 ] [ sp:object 345 ] [ sp:object
332 - [ sp:varName "productVolumeRef"^^xsd:string 346 + [ sp:varName "contextFacilityRef"^^xsd:string
333 ] ; 347 ] ;
334 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 348 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
335 - sp:subject
336 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
337 - ]
338 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
339 - sp:predicate rdf:type ;
340 - sp:subject
341 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
342 - ]
343 - ] [ sp:object
344 - [ sp:varName "productionFacilityToDate"^^xsd:string
345 - ] ;
346 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
347 - sp:subject
348 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
349 - ]
350 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
351 - sp:predicate rdf:type ;
352 - sp:subject
353 - [ sp:varName "productionFacilityToDate"^^xsd:string
354 - ]
355 - ])
356 - ] ;
357 - spin:rule
358 - [ rdf:type sp:Construct ;
359 - rdfs:comment """STEP 20060 Set the facility operator
360 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
361 - sp:templates ([ sp:object _:b3 ;
362 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
363 - sp:subject
364 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
365 - ]
366 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
367 - sp:predicate rdf:type ;
368 - sp:subject _:b3
369 - ] [ sp:object
370 - [ sp:varName "operator"^^xsd:string
371 - ] ;
372 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
373 - sp:subject _:b3
374 - ]) ;
375 - sp:where ([ sp:object
376 - [ sp:varName "productVolumeRef"^^xsd:string
377 - ] ;
378 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
379 - sp:subject spin:_this
380 - ] [ sp:object
381 - [ sp:varName "productVolumeRef"^^xsd:string
382 - ] ;
383 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
384 - sp:subject
385 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
386 - ]
387 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
388 - sp:predicate rdf:type ;
389 - sp:subject
390 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
391 - ]
392 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
393 - sp:predicate rdf:type ;
394 - sp:subject
395 - [ sp:varName "productVolumeRef"^^xsd:string
396 - ]
397 - ] [ sp:object
398 - [ sp:varName "operatorRef"^^xsd:string
399 - ] ;
400 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
401 sp:subject 349 sp:subject
402 [ sp:varName "productVolumeRef"^^xsd:string 350 [ sp:varName "productVolumeRef"^^xsd:string
403 ] 351 ]
404 ] [ sp:object 352 ] [ sp:object
405 - [ sp:varName "operatorRef"^^xsd:string 353 + [ sp:varName "contextFacilityRef"^^xsd:string
406 ] ; 354 ] ;
407 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 355 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
408 sp:subject 356 sp:subject
409 - [ sp:varName "operator"^^xsd:string 357 + [ sp:varName "contextFacility"^^xsd:string
410 ] 358 ]
411 ]) 359 ])
412 ] ; 360 ] ;
...@@ -577,13 +525,76 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -577,13 +525,76 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
577 ] ; 525 ] ;
578 spin:rule 526 spin:rule
579 [ rdf:type sp:Construct ; 527 [ rdf:type sp:Construct ;
580 - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; 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 ;
581 sp:templates ([ sp:object 585 sp:templates ([ sp:object
582 - [ sp:varName "contextFacility"^^xsd:string 586 + [ sp:varName "productionFacility"^^xsd:string
583 ] ; 587 ] ;
584 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 588 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
585 sp:subject 589 sp:subject
590 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
591 + ]
592 + ] [ sp:object
586 [ sp:varName "productionFacility"^^xsd:string 593 [ sp:varName "productionFacility"^^xsd:string
594 + ] ;
595 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
596 + sp:subject
597 + [ sp:varName "productionFacilityToDate"^^xsd:string
587 ] 598 ]
588 ]) ; 599 ]) ;
589 sp:where ([ sp:object 600 sp:where ([ sp:object
...@@ -611,162 +622,169 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -611,162 +622,169 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
611 [ sp:varName "productionFacility"^^xsd:string 622 [ sp:varName "productionFacility"^^xsd:string
612 ] 623 ]
613 ] [ sp:object 624 ] [ sp:object
614 - [ sp:varName "contextFacilityRef"^^xsd:string 625 + [ sp:varName "productVolumeRef"^^xsd:string
615 ] ; 626 ] ;
616 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 627 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
617 sp:subject 628 sp:subject
618 - [ sp:varName "productVolumeRef"^^xsd:string 629 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
630 + ]
631 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
632 + sp:predicate rdf:type ;
633 + sp:subject
634 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
619 ] 635 ]
620 ] [ sp:object 636 ] [ sp:object
621 - [ sp:varName "contextFacilityRef"^^xsd:string 637 + [ sp:varName "productionFacilityToDate"^^xsd:string
622 ] ; 638 ] ;
623 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 639 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
624 sp:subject 640 sp:subject
625 - [ sp:varName "contextFacility"^^xsd:string 641 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
642 + ]
643 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
644 + sp:predicate rdf:type ;
645 + sp:subject
646 + [ sp:varName "productionFacilityToDate"^^xsd:string
626 ] 647 ]
627 ]) 648 ])
628 ] ; 649 ] ;
629 spin:rule 650 spin:rule
630 [ rdf:type sp:Construct ; 651 [ rdf:type sp:Construct ;
631 - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; 652 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
632 sp:templates ([ sp:object 653 sp:templates ([ sp:object
633 - [ sp:varName "reportKind"^^xsd:string 654 + [ sp:varName "dTimStart"^^xsd:string
634 ] ; 655 ] ;
635 - sp:predicate rdf:type ; 656 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
636 sp:subject 657 sp:subject
637 - [ sp:varName "productVolumeReport"^^xsd:string 658 + [ sp:varName "productionFlow"^^xsd:string
638 ] 659 ]
639 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; 660 + ] [ sp:object
640 - sp:predicate rdf:type ; 661 + [ sp:varName "dTimEnd"^^xsd:string
662 + ] ;
663 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
641 sp:subject 664 sp:subject
642 - [ sp:varName "reportKind"^^xsd:string 665 + [ sp:varName "productionFlow"^^xsd:string
643 ] 666 ]
644 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 667 + ] [ sp:object
645 - sp:predicate rdfs:subClassOf ; 668 + [ sp:varName "dTimEnd"^^xsd:string
669 + ] ;
670 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
646 sp:subject 671 sp:subject
647 - [ sp:varName "reportKind"^^xsd:string 672 + [ sp:varName "productionFlowToDate"^^xsd:string
648 ] 673 ]
649 ] [ sp:object 674 ] [ sp:object
650 - [ sp:varName "kind"^^xsd:string 675 + [ sp:varName "dTimStart"^^xsd:string
651 ] ; 676 ] ;
652 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 677 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
653 sp:subject 678 sp:subject
654 - [ sp:varName "reportKind"^^xsd:string 679 + [ sp:varName "productionInventory"^^xsd:string
655 ] 680 ]
656 - ]) ; 681 + ] [ sp:object
657 - sp:where ([ sp:object 682 + [ sp:varName "dTimEnd"^^xsd:string
658 - [ sp:varName "productVolumeRef"^^xsd:string
659 ] ; 683 ] ;
660 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 684 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
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 685 sp:subject
665 - [ sp:varName "productVolumeRef"^^xsd:string 686 + [ sp:varName "productionInventory"^^xsd:string
666 ] 687 ]
667 ] [ sp:object 688 ] [ sp:object
668 - [ sp:varName "productVolumeRef"^^xsd:string 689 + [ sp:varName "dTimEnd"^^xsd:string
669 ] ; 690 ] ;
670 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 691 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
671 sp:subject 692 sp:subject
672 - [ sp:varName "productVolumeReport"^^xsd:string 693 + [ sp:varName "productionInventoryToDate"^^xsd:string
673 ] 694 ]
674 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 695 + ] [ sp:object
675 - sp:predicate rdf:type ; 696 + [ sp:varName "dTimStart"^^xsd:string
697 + ] ;
698 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
676 sp:subject 699 sp:subject
677 - [ sp:varName "productVolumeReport"^^xsd:string 700 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
678 ] 701 ]
679 ] [ sp:object 702 ] [ sp:object
680 - [ sp:varName "nameRef"^^xsd:string 703 + [ sp:varName "dTimEnd"^^xsd:string
681 ] ; 704 ] ;
682 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 705 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
683 sp:subject 706 sp:subject
684 - [ sp:varName "productVolumeRef"^^xsd:string 707 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
685 ] 708 ]
686 ] [ sp:object 709 ] [ sp:object
687 - [ sp:varName "name"^^xsd:string 710 + [ sp:varName "dTimEnd"^^xsd:string
688 ] ; 711 ] ;
689 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 712 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
690 sp:subject 713 sp:subject
691 - [ sp:varName "nameRef"^^xsd:string 714 + [ sp:varName "productionFacilityToDate"^^xsd:string
692 ] 715 ]
693 - ] [ sp:object 716 + ]) ;
694 - [ sp:varName "kind"^^xsd:string 717 + sp:where ([ sp:object
718 + [ sp:varName "productVolumeRef"^^xsd:string
695 ] ; 719 ] ;
696 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 720 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
721 + sp:subject spin:_this
722 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
723 + sp:predicate rdf:type ;
697 sp:subject 724 sp:subject
698 [ sp:varName "productVolumeRef"^^xsd:string 725 [ sp:varName "productVolumeRef"^^xsd:string
699 ] 726 ]
700 - ] [ rdf:type sp:Bind ; 727 + ] [ sp:object
701 - sp:expression 728 + [ sp:varName "dTimStart"^^xsd:string
702 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
703 - sp:arg1 [ sp:varName "kind"^^xsd:string
704 - ]
705 ] ; 729 ] ;
706 - sp:variable 730 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
707 - [ sp:varName "reportKind"^^xsd:string 731 + sp:subject
732 + [ sp:varName "productVolumeRef"^^xsd:string
708 ] 733 ]
709 - ]) 734 + ] [ sp:object
735 + [ sp:varName "dTimEnd"^^xsd:string
710 ] ; 736 ] ;
711 - spin:rule 737 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
712 - [ rdf:type sp:Construct ;
713 - rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ;
714 - sp:templates ([ sp:object _:b4 ;
715 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
716 sp:subject 738 sp:subject
717 - [ sp:varName "productVolumeReport"^^xsd:string 739 + [ sp:varName "productVolumeRef"^^xsd:string
718 ] 740 ]
719 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
720 - sp:predicate rdf:type ;
721 - sp:subject _:b4
722 ] [ sp:object 741 ] [ sp:object
723 [ sp:varName "productVolumeRef"^^xsd:string 742 [ sp:varName "productVolumeRef"^^xsd:string
724 ] ; 743 ] ;
725 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 744 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
726 - sp:subject _:b4 745 + sp:subject
727 - ] [ sp:object _:b5 ; 746 + [ sp:varName "productionFlow"^^xsd:string
728 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 747 + ]
729 - sp:subject _:b4 748 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
730 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
731 sp:predicate rdf:type ; 749 sp:predicate rdf:type ;
732 - sp:subject _:b5
733 - ] [ sp:object _:b4 ;
734 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
735 sp:subject 750 sp:subject
736 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 751 + [ sp:varName "productionFlow"^^xsd:string
737 ] 752 ]
738 - ] [ sp:object _:b5 ; 753 + ] [ sp:object
739 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 754 + [ sp:varName "productionFlowToDate"^^xsd:string
755 + ] ;
756 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
740 sp:subject 757 sp:subject
741 - [ sp:varName "productionFacilityToDate"^^xsd:string 758 + [ sp:varName "productionFlow"^^xsd:string
742 ] 759 ]
743 - ]) ; 760 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
744 - sp:where ([ sp:object spin:_this ; 761 + sp:predicate rdf:type ;
745 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
746 sp:subject 762 sp:subject
747 - [ sp:varName "productionReport"^^xsd:string 763 + [ sp:varName "productionFlowToDate"^^xsd:string
748 ] 764 ]
749 ] [ sp:object 765 ] [ sp:object
750 [ sp:varName "productVolumeRef"^^xsd:string 766 [ sp:varName "productVolumeRef"^^xsd:string
751 ] ; 767 ] ;
752 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 768 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
753 - sp:subject spin:_this 769 + sp:subject
754 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 770 + [ sp:varName "productionInventory"^^xsd:string
771 + ]
772 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
755 sp:predicate rdf:type ; 773 sp:predicate rdf:type ;
756 sp:subject 774 sp:subject
757 - [ sp:varName "productVolumeRef"^^xsd:string 775 + [ sp:varName "productionInventory"^^xsd:string
758 ] 776 ]
759 ] [ sp:object 777 ] [ sp:object
760 - [ sp:varName "productVolumeRef"^^xsd:string 778 + [ sp:varName "productionInventoryToDate"^^xsd:string
761 ] ; 779 ] ;
762 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 780 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
763 sp:subject 781 sp:subject
764 - [ sp:varName "productVolumeReport"^^xsd:string 782 + [ sp:varName "productionInventory"^^xsd:string
765 ] 783 ]
766 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 784 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
767 sp:predicate rdf:type ; 785 sp:predicate rdf:type ;
768 sp:subject 786 sp:subject
769 - [ sp:varName "productVolumeReport"^^xsd:string 787 + [ sp:varName "productionInventoryToDate"^^xsd:string
770 ] 788 ]
771 ] [ sp:object 789 ] [ sp:object
772 [ sp:varName "productVolumeRef"^^xsd:string 790 [ sp:varName "productVolumeRef"^^xsd:string
...@@ -792,42 +810,17 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -792,42 +810,17 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
792 sp:subject 810 sp:subject
793 [ sp:varName "productionFacilityToDate"^^xsd:string 811 [ sp:varName "productionFacilityToDate"^^xsd:string
794 ] 812 ]
795 - ] [ rdf:type sp:NotExists ;
796 - sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
797 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
798 - sp:subject
799 - [ sp:varName "flowRef"^^xsd:string
800 - ]
801 - ])
802 ]) 813 ])
803 ] ; 814 ] ;
804 spin:rule 815 spin:rule
805 [ rdf:type sp:Construct ; 816 [ rdf:type sp:Construct ;
806 - rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 817 + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ;
807 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; 818 + sp:templates ([ sp:object _:b7 ;
808 - sp:predicate rdf:type ; 819 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
809 - sp:subject _:b6 820 + sp:subject
810 - ] [ sp:object 821 + [ sp:varName "productVolumeReport"^^xsd:string
811 - [ sp:varName "productionReport"^^xsd:string 822 + ]
812 - ] ; 823 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
813 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
814 - sp:subject _:b6
815 - ] [ sp:object
816 - [ sp:varName "name"^^xsd:string
817 - ] ;
818 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
819 - sp:subject _:b6
820 - ] [ sp:object
821 - [ sp:varName "reportPeriodType"^^xsd:string
822 - ] ;
823 - sp:predicate rdf:type ;
824 - sp:subject _:b6
825 - ] [ sp:object
826 - [ sp:varName "productVolumeRef"^^xsd:string
827 - ] ;
828 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
829 - sp:subject _:b6
830 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
831 sp:predicate rdf:type ; 824 sp:predicate rdf:type ;
832 sp:subject _:b7 825 sp:subject _:b7
833 ] [ sp:object 826 ] [ sp:object
...@@ -838,22 +831,34 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -838,22 +831,34 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
838 ] [ sp:object _:b8 ; 831 ] [ sp:object _:b8 ;
839 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 832 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
840 sp:subject _:b7 833 sp:subject _:b7
841 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 834 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
842 sp:predicate rdf:type ; 835 sp:predicate rdf:type ;
843 sp:subject _:b8 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 + ]
844 ] [ sp:object 847 ] [ sp:object
845 - [] ; 848 + [ sp:varName "facilityRef"^^xsd:string
846 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 849 + ] ;
850 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
847 sp:subject _:b7 851 sp:subject _:b7
848 ] [ sp:object 852 ] [ sp:object
849 - [] ; 853 + [ sp:varName "flowRef"^^xsd:string
850 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 854 + ] ;
851 - sp:subject _:b8 855 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
856 + sp:subject _:b7
852 ] [ sp:object 857 ] [ sp:object
853 - [ sp:varName "title"^^xsd:string 858 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
854 ] ; 859 ] ;
855 - sp:predicate <http://purl.org/dc/elements/1.1/title> ; 860 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
856 - sp:subject _:b6 861 + sp:subject _:b7
857 ]) ; 862 ]) ;
858 sp:where ([ sp:object spin:_this ; 863 sp:where ([ sp:object spin:_this ;
859 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 864 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
...@@ -871,57 +876,45 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -871,57 +876,45 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
871 [ sp:varName "productVolumeRef"^^xsd:string 876 [ sp:varName "productVolumeRef"^^xsd:string
872 ] 877 ]
873 ] [ sp:object 878 ] [ sp:object
874 - [ sp:varName "nameRef"^^xsd:string 879 + [ sp:varName "productVolumeRef"^^xsd:string
875 ] ; 880 ] ;
876 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 881 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
877 sp:subject 882 sp:subject
878 - [ sp:varName "productVolumeRef"^^xsd:string 883 + [ sp:varName "productVolumeReport"^^xsd:string
879 ] 884 ]
880 - ] [ sp:object 885 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
881 - [ sp:varName "name"^^xsd:string 886 + sp:predicate rdf:type ;
882 - ] ;
883 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
884 sp:subject 887 sp:subject
885 - [ sp:varName "nameRef"^^xsd:string 888 + [ sp:varName "productVolumeReport"^^xsd:string
886 ] 889 ]
887 - ] [ rdf:type sp:Optional ; 890 + ] [ sp:object
888 - sp:elements ([ sp:object 891 + [ sp:varName "productVolumeRef"^^xsd:string
889 - [ sp:varName "periodKindRef"^^xsd:string
890 ] ; 892 ] ;
891 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; 893 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
892 sp:subject 894 sp:subject
893 - [ sp:varName "productVolumeRef"^^xsd:string 895 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
894 ] 896 ]
895 - ]) 897 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
896 - ] [ rdf:type sp:Optional ; 898 + sp:predicate rdf:type ;
897 - sp:elements ([ sp:object
898 - [ sp:varName "titleRef"^^xsd:string
899 - ] ;
900 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
901 sp:subject 899 sp:subject
902 - [ sp:varName "productVolumeRef"^^xsd:string 900 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
903 ] 901 ]
904 ] [ sp:object 902 ] [ sp:object
905 - [ sp:varName "title"^^xsd:string 903 + [ sp:varName "productionFacilityToDate"^^xsd:string
906 ] ; 904 ] ;
907 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 905 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
908 sp:subject 906 sp:subject
909 - [ sp:varName "titleRef"^^xsd:string 907 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
910 - ]
911 - ])
912 - ] [ rdf:type sp:Bind ;
913 - sp:expression
914 - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
915 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
916 ] 908 ]
917 - ] ; 909 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
918 - sp:variable 910 + sp:predicate rdf:type ;
919 - [ sp:varName "reportPeriodType"^^xsd:string 911 + sp:subject
912 + [ sp:varName "productionFacilityToDate"^^xsd:string
920 ] 913 ]
921 ]) 914 ])
922 ] . 915 ] .
923 916
924 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 917 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
925 rdf:type owl:Ontology ; 918 rdf:type owl:Ontology ;
926 - 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> ; 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> ;
927 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 920 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......