Showing
4 changed files
with
791 additions
and
455 deletions
... | @@ -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 . | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -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,100 +321,209 @@ | ... | @@ -329,100 +321,209 @@ |
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> ; |
335 | sp:subject | 327 | sp:subject |
336 | - [ sp:varName "productVolumeRef"^^xsd:string | 328 | + [ sp:varName "productVolumeReport"^^xsd:string |
329 | + ] | ||
330 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
331 | + sp:predicate rdf:type ; | ||
332 | + sp:subject | ||
333 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
337 | ] | 334 | ] |
338 | ] [ sp:object | 335 | ] [ sp:object |
339 | - [ sp:varName "installationRef"^^xsd:string | 336 | + [ sp:varName "productVolumeRef"^^xsd:string |
340 | ] ; | 337 | ] ; |
341 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 338 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
342 | sp:subject | 339 | sp:subject |
343 | - [ sp:varName "productionFacility"^^xsd:string | 340 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
344 | ] | 341 | ] |
345 | - ] [ sp:object | 342 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
346 | - [ sp:varName "contextFacilityRef"^^xsd:string | 343 | + sp:predicate rdf:type ; |
347 | - ] ; | ||
348 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
349 | sp:subject | 344 | sp:subject |
350 | - [ sp:varName "productVolumeRef"^^xsd:string | 345 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
351 | ] | 346 | ] |
352 | ] [ sp:object | 347 | ] [ sp:object |
353 | - [ sp:varName "contextFacilityRef"^^xsd:string | 348 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
354 | ] ; | 349 | ] ; |
355 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 350 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
356 | sp:subject | 351 | sp:subject |
357 | - [ sp:varName "contextFacility"^^xsd:string | 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 | ] | 358 | ] |
359 | ]) | 359 | ]) |
360 | ] ; | 360 | ] ; |
361 | spin:rule | 361 | spin:rule |
362 | [ rdf:type sp:Construct ; | 362 | [ rdf:type sp:Construct ; |
363 | - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; | 363 | + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; |
364 | - sp:templates ([ sp:object | 364 | + sp:templates ([ sp:object _:b6 ; |
365 | - [ sp:varName "dateStart"^^xsd:string | 365 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
366 | - ] ; | ||
367 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
368 | sp:subject | 366 | sp:subject |
369 | - [ sp:varName "productionFlow"^^xsd:string | 367 | + [ sp:varName "productVolumeReport"^^xsd:string |
370 | ] | 368 | ] |
369 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
370 | + sp:predicate rdf:type ; | ||
371 | + sp:subject _:b6 | ||
371 | ] [ sp:object | 372 | ] [ sp:object |
372 | - [ sp:varName "dateEnd"^^xsd:string | 373 | + [ sp:varName "productVolumeRef"^^xsd:string |
373 | ] ; | 374 | ] ; |
374 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 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> ; | ||
375 | sp:subject | 385 | sp:subject |
376 | - [ sp:varName "productionFlow"^^xsd:string | 386 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
377 | ] | 387 | ] |
378 | - ] [ sp:object | 388 | + ] [ sp:object _:b7 ; |
379 | - [ sp:varName "dateEnd"^^xsd:string | 389 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
380 | - ] ; | ||
381 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
382 | sp:subject | 390 | sp:subject |
383 | - [ sp:varName "productionFlowToDate"^^xsd:string | 391 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
384 | ] | 392 | ] |
385 | ] [ sp:object | 393 | ] [ sp:object |
386 | - [ sp:varName "dateStart"^^xsd:string | 394 | + [ sp:varName "facilityRef"^^xsd:string |
387 | ] ; | 395 | ] ; |
388 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 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> ; | ||
389 | sp:subject | 411 | sp:subject |
390 | - [ sp:varName "productionInventory"^^xsd:string | 412 | + [ sp:varName "productionReport"^^xsd:string |
391 | ] | 413 | ] |
392 | ] [ sp:object | 414 | ] [ sp:object |
393 | - [ sp:varName "dateEnd"^^xsd:string | 415 | + [ sp:varName "productVolumeRef"^^xsd:string |
394 | ] ; | 416 | ] ; |
395 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 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 ; | ||
396 | sp:subject | 421 | sp:subject |
397 | - [ sp:varName "productionInventory"^^xsd:string | 422 | + [ sp:varName "productVolumeRef"^^xsd:string |
398 | ] | 423 | ] |
399 | ] [ sp:object | 424 | ] [ sp:object |
400 | - [ sp:varName "dateEnd"^^xsd:string | 425 | + [ sp:varName "productVolumeRef"^^xsd:string |
401 | ] ; | 426 | ] ; |
402 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 427 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
403 | sp:subject | 428 | sp:subject |
404 | - [ sp:varName "productionInventoryToDate"^^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 | ||
405 | ] | 435 | ] |
406 | ] [ sp:object | 436 | ] [ sp:object |
407 | - [ sp:varName "dateStart"^^xsd:string | 437 | + [ sp:varName "productVolumeRef"^^xsd:string |
408 | ] ; | 438 | ] ; |
409 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 439 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
410 | sp:subject | 440 | sp:subject |
411 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 441 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
412 | ] | 442 | ] |
413 | - ] [ sp:object | 443 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
414 | - [ sp:varName "dateEnd"^^xsd:string | 444 | + sp:predicate rdf:type ; |
415 | - ] ; | ||
416 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
417 | sp:subject | 445 | sp:subject |
418 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 446 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
419 | ] | 447 | ] |
420 | ] [ sp:object | 448 | ] [ sp:object |
421 | - [ sp:varName "dateEnd"^^xsd:string | 449 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
422 | ] ; | 450 | ] ; |
423 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 451 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
424 | sp:subject | 452 | sp:subject |
425 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 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 | ||
426 | ] | 527 | ] |
427 | ]) ; | 528 | ]) ; |
428 | sp:where ([ sp:object | 529 | sp:where ([ sp:object |
... | @@ -436,16 +537,16 @@ | ... | @@ -436,16 +537,16 @@ |
436 | [ sp:varName "productVolumeRef"^^xsd:string | 537 | [ sp:varName "productVolumeRef"^^xsd:string |
437 | ] | 538 | ] |
438 | ] [ sp:object | 539 | ] [ sp:object |
439 | - [ sp:varName "dateStart"^^xsd:string | 540 | + [ sp:varName "dTimStart"^^xsd:string |
440 | ] ; | 541 | ] ; |
441 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 542 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
442 | sp:subject | 543 | sp:subject |
443 | [ sp:varName "productVolumeRef"^^xsd:string | 544 | [ sp:varName "productVolumeRef"^^xsd:string |
444 | ] | 545 | ] |
445 | ] [ sp:object | 546 | ] [ sp:object |
446 | - [ sp:varName "dateEnd"^^xsd:string | 547 | + [ sp:varName "dTimEnd"^^xsd:string |
447 | ] ; | 548 | ] ; |
448 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 549 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
449 | sp:subject | 550 | sp:subject |
450 | [ sp:varName "productVolumeRef"^^xsd:string | 551 | [ sp:varName "productVolumeRef"^^xsd:string |
451 | ] | 552 | ] |
... | @@ -525,21 +626,28 @@ | ... | @@ -525,21 +626,28 @@ |
525 | ] ; | 626 | ] ; |
526 | spin:rule | 627 | spin:rule |
527 | [ rdf:type sp:Construct ; | 628 | [ rdf:type sp:Construct ; |
528 | - rdfs:comment """STEP 20060 Set the facility operator | 629 | + rdfs:comment "STEP 20032 Inherit start dates from the report context if necessary"^^xsd:string ; |
529 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 630 | + sp:templates ([ sp:object |
530 | - sp:templates ([ sp:object _:b6 ; | 631 | + [ sp:varName "dateStart"^^xsd:string |
531 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 632 | + ] ; |
633 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
532 | sp:subject | 634 | sp:subject |
533 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 635 | + [ sp:varName "productionFlow"^^xsd:string |
534 | ] | 636 | ] |
535 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
536 | - sp:predicate rdf:type ; | ||
537 | - sp:subject _:b6 | ||
538 | ] [ sp:object | 637 | ] [ sp:object |
539 | - [ sp:varName "operator"^^xsd:string | 638 | + [ sp:varName "dateStart"^^xsd:string |
540 | ] ; | 639 | ] ; |
541 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 640 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
542 | - sp:subject _:b6 | 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 | + ] | ||
543 | ]) ; | 651 | ]) ; |
544 | sp:where ([ sp:object | 652 | sp:where ([ sp:object |
545 | [ sp:varName "productVolumeRef"^^xsd:string | 653 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -547,79 +655,80 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -547,79 +655,80 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
547 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 655 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
548 | sp:subject spin:_this | 656 | sp:subject spin:_this |
549 | ] [ sp:object | 657 | ] [ sp:object |
550 | - [ sp:varName "productVolumeRef"^^xsd:string | 658 | + [ sp:varName "dateStart"^^xsd:string |
551 | ] ; | 659 | ] ; |
552 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 660 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
553 | - sp:subject | 661 | + sp:subject spin:_this |
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> ; | 662 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
562 | sp:predicate rdf:type ; | 663 | sp:predicate rdf:type ; |
563 | sp:subject | 664 | sp:subject |
564 | [ sp:varName "productVolumeRef"^^xsd:string | 665 | [ sp:varName "productVolumeRef"^^xsd:string |
565 | ] | 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 | + ]) | ||
566 | ] [ sp:object | 685 | ] [ 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 | 686 | [ sp:varName "productVolumeRef"^^xsd:string |
572 | - ] | ||
573 | - ] [ sp:object | ||
574 | - [ sp:varName "operatorRef"^^xsd:string | ||
575 | ] ; | 687 | ] ; |
576 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 688 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
577 | sp:subject | 689 | sp:subject |
578 | - [ sp:varName "operator"^^xsd:string | 690 | + [ sp:varName "productionFlow"^^xsd:string |
579 | ] | 691 | ] |
580 | - ]) | 692 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
581 | - ] ; | 693 | + sp:predicate rdf:type ; |
582 | - spin:rule | ||
583 | - [ rdf:type sp:Construct ; | ||
584 | - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; | ||
585 | - sp:templates ([ sp:object | ||
586 | - [ sp:varName "productionFacility"^^xsd:string | ||
587 | - ] ; | ||
588 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
589 | sp:subject | 694 | sp:subject |
590 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 695 | + [ sp:varName "productionFlow"^^xsd:string |
591 | ] | 696 | ] |
592 | ] [ sp:object | 697 | ] [ sp:object |
593 | - [ sp:varName "productionFacility"^^xsd:string | 698 | + [ sp:varName "productionFlowToDate"^^xsd:string |
594 | ] ; | 699 | ] ; |
595 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 700 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
596 | sp:subject | 701 | sp:subject |
597 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 702 | + [ sp:varName "productionFlow"^^xsd:string |
598 | ] | 703 | ] |
599 | - ]) ; | 704 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
600 | - sp:where ([ sp:object | ||
601 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
602 | - ] ; | ||
603 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
604 | - sp:subject spin:_this | ||
605 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
606 | sp:predicate rdf:type ; | 705 | sp:predicate rdf:type ; |
607 | sp:subject | 706 | sp:subject |
608 | - [ sp:varName "productVolumeRef"^^xsd:string | 707 | + [ sp:varName "productionFlowToDate"^^xsd:string |
609 | ] | 708 | ] |
610 | ] [ sp:object | 709 | ] [ sp:object |
611 | - [ sp:varName "installationRef"^^xsd:string | 710 | + [ sp:varName "productVolumeRef"^^xsd:string |
612 | ] ; | 711 | ] ; |
613 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 712 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
614 | sp:subject | 713 | sp:subject |
615 | - [ sp:varName "productVolumeRef"^^xsd:string | 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 | ||
616 | ] | 720 | ] |
617 | ] [ sp:object | 721 | ] [ sp:object |
618 | - [ sp:varName "installationRef"^^xsd:string | 722 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
619 | ] ; | 723 | ] ; |
620 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 724 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
621 | sp:subject | 725 | sp:subject |
622 | - [ sp:varName "productionFacility"^^xsd:string | 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 | ||
623 | ] | 732 | ] |
624 | ] [ sp:object | 733 | ] [ sp:object |
625 | [ sp:varName "productVolumeRef"^^xsd:string | 734 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -649,65 +758,65 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -649,65 +758,65 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
649 | ] ; | 758 | ] ; |
650 | spin:rule | 759 | spin:rule |
651 | [ rdf:type sp:Construct ; | 760 | [ rdf:type sp:Construct ; |
652 | - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | 761 | + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; |
653 | sp:templates ([ sp:object | 762 | sp:templates ([ sp:object |
654 | - [ sp:varName "dTimStart"^^xsd:string | 763 | + [ sp:varName "dateStart"^^xsd:string |
655 | ] ; | 764 | ] ; |
656 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 765 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
657 | sp:subject | 766 | sp:subject |
658 | [ sp:varName "productionFlow"^^xsd:string | 767 | [ sp:varName "productionFlow"^^xsd:string |
659 | ] | 768 | ] |
660 | ] [ sp:object | 769 | ] [ sp:object |
661 | - [ sp:varName "dTimEnd"^^xsd:string | 770 | + [ sp:varName "dateEnd"^^xsd:string |
662 | ] ; | 771 | ] ; |
663 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 772 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
664 | sp:subject | 773 | sp:subject |
665 | [ sp:varName "productionFlow"^^xsd:string | 774 | [ sp:varName "productionFlow"^^xsd:string |
666 | ] | 775 | ] |
667 | ] [ sp:object | 776 | ] [ sp:object |
668 | - [ sp:varName "dTimEnd"^^xsd:string | 777 | + [ sp:varName "dateEnd"^^xsd:string |
669 | ] ; | 778 | ] ; |
670 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 779 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
671 | sp:subject | 780 | sp:subject |
672 | [ sp:varName "productionFlowToDate"^^xsd:string | 781 | [ sp:varName "productionFlowToDate"^^xsd:string |
673 | ] | 782 | ] |
674 | ] [ sp:object | 783 | ] [ sp:object |
675 | - [ sp:varName "dTimStart"^^xsd:string | 784 | + [ sp:varName "dateStart"^^xsd:string |
676 | ] ; | 785 | ] ; |
677 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 786 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
678 | sp:subject | 787 | sp:subject |
679 | [ sp:varName "productionInventory"^^xsd:string | 788 | [ sp:varName "productionInventory"^^xsd:string |
680 | ] | 789 | ] |
681 | ] [ sp:object | 790 | ] [ sp:object |
682 | - [ sp:varName "dTimEnd"^^xsd:string | 791 | + [ sp:varName "dateEnd"^^xsd:string |
683 | ] ; | 792 | ] ; |
684 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 793 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
685 | sp:subject | 794 | sp:subject |
686 | [ sp:varName "productionInventory"^^xsd:string | 795 | [ sp:varName "productionInventory"^^xsd:string |
687 | ] | 796 | ] |
688 | ] [ sp:object | 797 | ] [ sp:object |
689 | - [ sp:varName "dTimEnd"^^xsd:string | 798 | + [ sp:varName "dateEnd"^^xsd:string |
690 | ] ; | 799 | ] ; |
691 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 800 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
692 | sp:subject | 801 | sp:subject |
693 | [ sp:varName "productionInventoryToDate"^^xsd:string | 802 | [ sp:varName "productionInventoryToDate"^^xsd:string |
694 | ] | 803 | ] |
695 | ] [ sp:object | 804 | ] [ sp:object |
696 | - [ sp:varName "dTimStart"^^xsd:string | 805 | + [ sp:varName "dateStart"^^xsd:string |
697 | ] ; | 806 | ] ; |
698 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 807 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
699 | sp:subject | 808 | sp:subject |
700 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 809 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
701 | ] | 810 | ] |
702 | ] [ sp:object | 811 | ] [ sp:object |
703 | - [ sp:varName "dTimEnd"^^xsd:string | 812 | + [ sp:varName "dateEnd"^^xsd:string |
704 | ] ; | 813 | ] ; |
705 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 814 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
706 | sp:subject | 815 | sp:subject |
707 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 816 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
708 | ] | 817 | ] |
709 | ] [ sp:object | 818 | ] [ sp:object |
710 | - [ sp:varName "dTimEnd"^^xsd:string | 819 | + [ sp:varName "dateEnd"^^xsd:string |
711 | ] ; | 820 | ] ; |
712 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 821 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
713 | sp:subject | 822 | sp:subject |
... | @@ -725,16 +834,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -725,16 +834,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
725 | [ sp:varName "productVolumeRef"^^xsd:string | 834 | [ sp:varName "productVolumeRef"^^xsd:string |
726 | ] | 835 | ] |
727 | ] [ sp:object | 836 | ] [ sp:object |
728 | - [ sp:varName "dTimStart"^^xsd:string | 837 | + [ sp:varName "dateStart"^^xsd:string |
729 | ] ; | 838 | ] ; |
730 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 839 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
731 | sp:subject | 840 | sp:subject |
732 | [ sp:varName "productVolumeRef"^^xsd:string | 841 | [ sp:varName "productVolumeRef"^^xsd:string |
733 | ] | 842 | ] |
734 | ] [ sp:object | 843 | ] [ sp:object |
735 | - [ sp:varName "dTimEnd"^^xsd:string | 844 | + [ sp:varName "dateEnd"^^xsd:string |
736 | ] ; | 845 | ] ; |
737 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 846 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
738 | sp:subject | 847 | sp:subject |
739 | [ sp:varName "productVolumeRef"^^xsd:string | 848 | [ sp:varName "productVolumeRef"^^xsd:string |
740 | ] | 849 | ] |
... | @@ -814,78 +923,259 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -814,78 +923,259 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
814 | ] ; | 923 | ] ; |
815 | spin:rule | 924 | spin:rule |
816 | [ rdf:type sp:Construct ; | 925 | [ rdf:type sp:Construct ; |
817 | - rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; | 926 | + rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; |
818 | - sp:templates ([ sp:object _:b7 ; | 927 | + sp:templates ([ sp:object |
819 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 928 | + [ sp:varName "productionFacility"^^xsd:string |
929 | + ] ; | ||
930 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
820 | sp:subject | 931 | sp:subject |
821 | - [ sp:varName "productVolumeReport"^^xsd:string | 932 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
822 | ] | 933 | ] |
823 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | 934 | + ] [ sp:object |
935 | + [ sp:varName "productionFacility"^^xsd:string | ||
936 | + ] ; | ||
937 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
938 | + sp:subject | ||
939 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
940 | + ] | ||
941 | + ]) ; | ||
942 | + sp:where ([ sp:object | ||
943 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
944 | + ] ; | ||
945 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
946 | + sp:subject spin:_this | ||
947 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
824 | sp:predicate rdf:type ; | 948 | sp:predicate rdf:type ; |
825 | - sp:subject _:b7 | 949 | + sp:subject |
950 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
951 | + ] | ||
952 | + ] [ sp:object | ||
953 | + [ sp:varName "installationRef"^^xsd:string | ||
954 | + ] ; | ||
955 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
956 | + sp:subject | ||
957 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
958 | + ] | ||
959 | + ] [ sp:object | ||
960 | + [ sp:varName "installationRef"^^xsd:string | ||
961 | + ] ; | ||
962 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
963 | + sp:subject | ||
964 | + [ sp:varName "productionFacility"^^xsd:string | ||
965 | + ] | ||
826 | ] [ sp:object | 966 | ] [ sp:object |
827 | [ sp:varName "productVolumeRef"^^xsd:string | 967 | [ sp:varName "productVolumeRef"^^xsd:string |
828 | ] ; | 968 | ] ; |
829 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 969 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
830 | - sp:subject _:b7 | 970 | + sp:subject |
831 | - ] [ sp:object _:b8 ; | 971 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
832 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 972 | + ] |
833 | - sp:subject _:b7 | 973 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
834 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
835 | sp:predicate rdf:type ; | 974 | 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 | 975 | sp:subject |
840 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 976 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
841 | ] | 977 | ] |
842 | - ] [ sp:object _:b8 ; | 978 | + ] [ sp:object |
843 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 979 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
980 | + ] ; | ||
981 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
982 | + sp:subject | ||
983 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
984 | + ] | ||
985 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
986 | + sp:predicate rdf:type ; | ||
844 | sp:subject | 987 | sp:subject |
845 | [ sp:varName "productionFacilityToDate"^^xsd:string | 988 | [ sp:varName "productionFacilityToDate"^^xsd:string |
846 | ] | 989 | ] |
990 | + ]) | ||
991 | + ] ; | ||
992 | + spin:rule | ||
993 | + [ rdf:type sp:Construct ; | ||
994 | + rdfs:comment """STEP 20060 Set the facility operator | ||
995 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
996 | + sp:templates ([ sp:object _:b8 ; | ||
997 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
998 | + sp:subject | ||
999 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1000 | + ] | ||
1001 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
1002 | + sp:predicate rdf:type ; | ||
1003 | + sp:subject _:b8 | ||
847 | ] [ sp:object | 1004 | ] [ sp:object |
848 | - [ sp:varName "facilityRef"^^xsd:string | 1005 | + [ sp:varName "operator"^^xsd:string |
849 | ] ; | 1006 | ] ; |
850 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1007 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
851 | - sp:subject _:b7 | 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 | ||
852 | ] [ sp:object | 1015 | ] [ sp:object |
853 | - [ sp:varName "flowRef"^^xsd:string | 1016 | + [ sp:varName "productVolumeRef"^^xsd:string |
854 | ] ; | 1017 | ] ; |
855 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1018 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
856 | - sp:subject _:b7 | 1019 | + sp:subject |
857 | - ] [ sp:object | 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 | ||
858 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 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 | ||
1031 | + ] | ||
1032 | + ] [ sp:object | ||
1033 | + [ sp:varName "operatorRef"^^xsd:string | ||
1034 | + ] ; | ||
1035 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
1036 | + sp:subject | ||
1037 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1038 | + ] | ||
1039 | + ] [ sp:object | ||
1040 | + [ sp:varName "operatorRef"^^xsd:string | ||
859 | ] ; | 1041 | ] ; |
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> ; | 1042 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
865 | sp:subject | 1043 | sp:subject |
866 | - [ sp:varName "productionReport"^^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 | ||
1057 | + ] | ||
1058 | + ] [ sp:object | ||
1059 | + [ sp:varName "dateEnd"^^xsd:string | ||
1060 | + ] ; | ||
1061 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1062 | + sp:subject | ||
1063 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1064 | + ] | ||
1065 | + ] [ sp:object | ||
1066 | + [ sp:varName "dateEnd"^^xsd:string | ||
1067 | + ] ; | ||
1068 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1069 | + sp:subject | ||
1070 | + [ sp:varName "productionInventory"^^xsd:string | ||
1071 | + ] | ||
1072 | + ] [ sp:object | ||
1073 | + [ sp:varName "dateEnd"^^xsd:string | ||
1074 | + ] ; | ||
1075 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1076 | + sp:subject | ||
1077 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1078 | + ] | ||
1079 | + ] [ sp:object | ||
1080 | + [ sp:varName "dateEnd"^^xsd:string | ||
1081 | + ] ; | ||
1082 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1083 | + sp:subject | ||
1084 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
867 | ] | 1085 | ] |
868 | ] [ sp:object | 1086 | ] [ sp:object |
1087 | + [ sp:varName "dateEnd"^^xsd:string | ||
1088 | + ] ; | ||
1089 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1090 | + sp:subject | ||
1091 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1092 | + ] | ||
1093 | + ]) ; | ||
1094 | + sp:where ([ sp:object | ||
869 | [ sp:varName "productVolumeRef"^^xsd:string | 1095 | [ sp:varName "productVolumeRef"^^xsd:string |
870 | ] ; | 1096 | ] ; |
871 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 1097 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
872 | 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 | ||
1104 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1105 | + sp:predicate rdf:type ; | ||
1106 | + sp:subject | ||
1107 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1108 | + ] | ||
873 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 1109 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
874 | sp:predicate rdf:type ; | 1110 | sp:predicate rdf:type ; |
875 | sp:subject | 1111 | sp:subject |
876 | [ sp:varName "productVolumeRef"^^xsd:string | 1112 | [ sp:varName "productVolumeRef"^^xsd:string |
877 | ] | 1113 | ] |
1114 | + ] [ rdf:type sp:NotExists ; | ||
1115 | + sp:elements ([ sp:object | ||
1116 | + [ sp:varName "dateEndx"^^xsd:string | ||
1117 | + ] ; | ||
1118 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
1119 | + sp:subject | ||
1120 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1121 | + ] | ||
1122 | + ]) | ||
1123 | + ] [ rdf:type sp:NotExists ; | ||
1124 | + sp:elements ([ sp:object | ||
1125 | + [ sp:varName "dTimEndx"^^xsd:string | ||
1126 | + ] ; | ||
1127 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
1128 | + sp:subject | ||
1129 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1130 | + ] | ||
1131 | + ]) | ||
878 | ] [ sp:object | 1132 | ] [ sp:object |
879 | [ sp:varName "productVolumeRef"^^xsd:string | 1133 | [ sp:varName "productVolumeRef"^^xsd:string |
880 | ] ; | 1134 | ] ; |
881 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1135 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
882 | sp:subject | 1136 | sp:subject |
883 | - [ sp:varName "productVolumeReport"^^xsd:string | 1137 | + [ sp:varName "productionFlow"^^xsd:string |
884 | ] | 1138 | ] |
885 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 1139 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
886 | sp:predicate rdf:type ; | 1140 | sp:predicate rdf:type ; |
887 | sp:subject | 1141 | sp:subject |
888 | - [ sp:varName "productVolumeReport"^^xsd:string | 1142 | + [ sp:varName "productionFlow"^^xsd:string |
1143 | + ] | ||
1144 | + ] [ sp:object | ||
1145 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1146 | + ] ; | ||
1147 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1148 | + sp:subject | ||
1149 | + [ sp:varName "productionFlow"^^xsd:string | ||
1150 | + ] | ||
1151 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
1152 | + sp:predicate rdf:type ; | ||
1153 | + sp:subject | ||
1154 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1155 | + ] | ||
1156 | + ] [ sp:object | ||
1157 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1158 | + ] ; | ||
1159 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1160 | + sp:subject | ||
1161 | + [ sp:varName "productionInventory"^^xsd:string | ||
1162 | + ] | ||
1163 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
1164 | + sp:predicate rdf:type ; | ||
1165 | + sp:subject | ||
1166 | + [ sp:varName "productionInventory"^^xsd:string | ||
1167 | + ] | ||
1168 | + ] [ sp:object | ||
1169 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1170 | + ] ; | ||
1171 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1172 | + sp:subject | ||
1173 | + [ sp:varName "productionInventory"^^xsd:string | ||
1174 | + ] | ||
1175 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
1176 | + sp:predicate rdf:type ; | ||
1177 | + sp:subject | ||
1178 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
889 | ] | 1179 | ] |
890 | ] [ sp:object | 1180 | ] [ sp:object |
891 | [ sp:varName "productVolumeRef"^^xsd:string | 1181 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -916,5 +1206,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -916,5 +1206,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
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,73 +363,62 @@ | ... | @@ -172,73 +363,62 @@ |
172 | ] ; | 363 | ] ; |
173 | spin:rule | 364 | spin:rule |
174 | [ rdf:type sp:Construct ; | 365 | [ rdf:type sp:Construct ; |
175 | - rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | 366 | + rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ; |
176 | - sp:templates ([ sp:object | 367 | + sp:templates ([ sp:object _:b2 ; |
177 | - [ sp:varName "contextFacility"^^xsd:string | 368 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
178 | - ] ; | ||
179 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
180 | sp:subject | 369 | sp:subject |
181 | - [ sp:varName "productionFacility"^^xsd:string | 370 | + [ sp:varName "productionReport"^^xsd:string |
182 | ] | 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 | ||
183 | ]) ; | 380 | ]) ; |
184 | sp:where ([ sp:object | 381 | sp:where ([ sp:object |
185 | [ sp:varName "contextRef"^^xsd:string | 382 | [ sp:varName "contextRef"^^xsd:string |
186 | ] ; | 383 | ] ; |
187 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 384 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
188 | sp:subject spin:_this | 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 | + ] | ||
189 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 391 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
190 | sp:predicate rdf:type ; | 392 | sp:predicate rdf:type ; |
191 | sp:subject | 393 | sp:subject |
192 | [ sp:varName "contextRef"^^xsd:string | 394 | [ sp:varName "contextRef"^^xsd:string |
193 | ] | 395 | ] |
194 | ] [ sp:object | 396 | ] [ sp:object |
195 | - [ sp:varName "contectFacilityRef"^^xsd:string | 397 | + [ sp:varName "installationRef"^^xsd:string |
196 | ] ; | 398 | ] ; |
197 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 399 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
198 | sp:subject | 400 | sp:subject |
199 | [ sp:varName "contextRef"^^xsd:string | 401 | [ sp:varName "contextRef"^^xsd:string |
200 | ] | 402 | ] |
201 | ] [ sp:object | 403 | ] [ sp:object |
202 | - [ sp:varName "contextFacilityRef"^^xsd:string | 404 | + [ sp:varName "installationRef"^^xsd:string |
203 | ] ; | 405 | ] ; |
204 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 406 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
205 | sp:subject | 407 | sp:subject |
206 | - [ sp:varName "contextFacility"^^xsd:string | 408 | + [ sp:varName "installation"^^xsd:string |
207 | - ] | ||
208 | - ] [ sp:object spin:_this ; | ||
209 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
210 | - sp:subject | ||
211 | - [ sp:varName "productionReport"^^xsd:string | ||
212 | - ] | ||
213 | - ] [ sp:object | ||
214 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
215 | - ] ; | ||
216 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; | ||
217 | - sp:subject | ||
218 | - [ sp:varName "productionReport"^^xsd:string | ||
219 | - ] | ||
220 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
221 | - sp:predicate rdf:type ; | ||
222 | - sp:subject | ||
223 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
224 | - ] | ||
225 | - ] [ sp:object | ||
226 | - [ sp:varName "productionFacility"^^xsd:string | ||
227 | - ] ; | ||
228 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
229 | - sp:subject | ||
230 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
231 | ] | 409 | ] |
232 | ]) | 410 | ]) |
233 | ] ; | 411 | ] ; |
234 | spin:rule | 412 | spin:rule |
235 | [ rdf:type sp:Construct ; | 413 | [ rdf:type sp:Construct ; |
236 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 414 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; |
237 | sp:templates ([ sp:object | 415 | sp:templates ([ sp:object |
238 | - [ sp:varName "intervalIdentifier"^^xsd:string | 416 | + [ sp:varName "contextFacility"^^xsd:string |
239 | ] ; | 417 | ] ; |
240 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | 418 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
241 | - sp:subject spin:_this | 419 | + sp:subject |
420 | + [ sp:varName "productionFacility"^^xsd:string | ||
421 | + ] | ||
242 | ]) ; | 422 | ]) ; |
243 | sp:where ([ sp:object | 423 | sp:where ([ sp:object |
244 | [ sp:varName "contextRef"^^xsd:string | 424 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -251,97 +431,63 @@ | ... | @@ -251,97 +431,63 @@ |
251 | [ sp:varName "contextRef"^^xsd:string | 431 | [ sp:varName "contextRef"^^xsd:string |
252 | ] | 432 | ] |
253 | ] [ sp:object | 433 | ] [ sp:object |
254 | - [ sp:varName "date"^^xsd:string | 434 | + [ sp:varName "contectFacilityRef"^^xsd:string |
255 | ] ; | 435 | ] ; |
256 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 436 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
257 | sp:subject | 437 | sp:subject |
258 | [ sp:varName "contextRef"^^xsd:string | 438 | [ sp:varName "contextRef"^^xsd:string |
259 | ] | 439 | ] |
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 | 440 | ] [ sp:object |
270 | - [ sp:varName "dateEnd"^^xsd:string | 441 | + [ sp:varName "contextFacilityRef"^^xsd:string |
271 | ] ; | 442 | ] ; |
272 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 443 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
273 | sp:subject | 444 | sp:subject |
274 | - [ sp:varName "contextRef"^^xsd:string | 445 | + [ sp:varName "contextFacility"^^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 | ] | 446 | ] |
287 | - ]) | 447 | + ] [ sp:object spin:_this ; |
288 | - ] ; | 448 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
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 | 449 | sp:subject |
295 | [ sp:varName "productionReport"^^xsd:string | 450 | [ sp:varName "productionReport"^^xsd:string |
296 | ] | 451 | ] |
297 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
298 | - sp:predicate rdf:type ; | ||
299 | - sp:subject _:b1 | ||
300 | ] [ sp:object | 452 | ] [ sp:object |
301 | - [ sp:varName "installation"^^xsd:string | 453 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
302 | - ] ; | ||
303 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
304 | - sp:subject _:b1 | ||
305 | - ]) ; | ||
306 | - sp:where ([ sp:object | ||
307 | - [ sp:varName "contextRef"^^xsd:string | ||
308 | ] ; | 454 | ] ; |
309 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 455 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; |
310 | - 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 | 456 | sp:subject |
314 | [ sp:varName "productionReport"^^xsd:string | 457 | [ sp:varName "productionReport"^^xsd:string |
315 | ] | 458 | ] |
316 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 459 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
317 | sp:predicate rdf:type ; | 460 | sp:predicate rdf:type ; |
318 | sp:subject | 461 | sp:subject |
319 | - [ sp:varName "contextRef"^^xsd:string | 462 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
320 | - ] | ||
321 | - ] [ sp:object | ||
322 | - [ sp:varName "installationRef"^^xsd:string | ||
323 | - ] ; | ||
324 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
325 | - sp:subject | ||
326 | - [ sp:varName "contextRef"^^xsd:string | ||
327 | ] | 463 | ] |
328 | ] [ sp:object | 464 | ] [ sp:object |
329 | - [ sp:varName "installationRef"^^xsd:string | 465 | + [ sp:varName "productionFacility"^^xsd:string |
330 | ] ; | 466 | ] ; |
331 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 467 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
332 | sp:subject | 468 | sp:subject |
333 | - [ sp:varName "installation"^^xsd:string | 469 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
334 | ] | 470 | ] |
335 | ]) | 471 | ]) |
336 | ] ; | 472 | ] ; |
337 | spin:rule | 473 | spin:rule |
338 | [ rdf:type sp:Construct ; | 474 | [ rdf:type sp:Construct ; |
339 | - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | 475 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
340 | sp:templates ([ sp:object | 476 | sp:templates ([ sp:object |
341 | - [ sp:varName "intervalIdentifier"^^xsd:string | 477 | + [ sp:varName "dateEnd"^^xsd:string |
342 | ] ; | 478 | ] ; |
343 | 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> ; |
344 | sp:subject spin:_this | 480 | sp:subject spin:_this |
481 | + ] [ sp:object | ||
482 | + [ sp:varName "dateEnd"^^xsd:string | ||
483 | + ] ; | ||
484 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
485 | + sp:subject spin:_this | ||
486 | + ] [ sp:object | ||
487 | + [ sp:varName "dateEnd"^^xsd:string | ||
488 | + ] ; | ||
489 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
490 | + sp:subject spin:_this | ||
345 | ]) ; | 491 | ]) ; |
346 | sp:where ([ sp:object | 492 | sp:where ([ sp:object |
347 | [ sp:varName "contextRef"^^xsd:string | 493 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -354,30 +500,30 @@ | ... | @@ -354,30 +500,30 @@ |
354 | [ sp:varName "contextRef"^^xsd:string | 500 | [ sp:varName "contextRef"^^xsd:string |
355 | ] | 501 | ] |
356 | ] [ sp:object | 502 | ] [ sp:object |
357 | - [ sp:varName "dateStart"^^xsd:string | ||
358 | - ] ; | ||
359 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
360 | - sp:subject | ||
361 | - [ sp:varName "contextRef"^^xsd:string | ||
362 | - ] | ||
363 | - ] [ sp:object | ||
364 | [ sp:varName "dateEnd"^^xsd:string | 503 | [ sp:varName "dateEnd"^^xsd:string |
365 | ] ; | 504 | ] ; |
366 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 505 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
367 | sp:subject | 506 | sp:subject |
368 | [ sp:varName "contextRef"^^xsd:string | 507 | [ sp:varName "contextRef"^^xsd:string |
369 | ] | 508 | ] |
370 | - ] [ rdf:type sp:Bind ; | 509 | + ] [ rdf:type sp:NotExists ; |
371 | - sp:expression | 510 | + sp:elements ([ sp:object |
372 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 511 | + [ sp:varName "date"^^xsd:string |
373 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | 512 | + ] ; |
374 | - ] ; | 513 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
375 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 514 | + sp:subject |
376 | - ] | 515 | + [ sp:varName "contextRef"^^xsd:string |
377 | - ] ; | 516 | + ] |
378 | - sp:variable | 517 | + ]) |
379 | - [ sp:varName "intervalIdentifier"^^xsd:string | 518 | + ] [ rdf:type sp:NotExists ; |
380 | - ] | 519 | + sp:elements ([ sp:object |
520 | + [ sp:varName "dateStart"^^xsd:string | ||
521 | + ] ; | ||
522 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
523 | + sp:subject | ||
524 | + [ sp:varName "contextRef"^^xsd:string | ||
525 | + ] | ||
526 | + ]) | ||
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 . | ... | ... |
-
Please register or login to post a comment