David Leal

Minor fix

...@@ -20,24 +20,16 @@ ...@@ -20,24 +20,16 @@
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 10001m Create the ProductionReport - extract the report name from context/contextFacility"^^xsd:string ; 23 + rdfs:comment "STEP 10010 Add the contextFacility - unless the contextFacility is the production facility"^^xsd:string ;
24 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 24 + sp:templates ([ sp:object
25 - sp:predicate rdf:type ; 25 + [ sp:varName "contextFacility"^^xsd:string
26 - sp:subject 26 + ] ;
27 - [ sp:varName "productionReport"^^xsd:string 27 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
28 - ]
29 - ] [ sp:object spin:_this ;
30 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
31 sp:subject 28 sp:subject
32 - [ sp:varName "productionReport"^^xsd:string 29 + [ sp:varName "productionFacility"^^xsd:string
33 ] 30 ]
34 ]) ; 31 ]) ;
35 sp:where ([ sp:object 32 sp:where ([ sp:object
36 - [ sp:varName "intervalIdentifier"^^xsd:string
37 - ] ;
38 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
39 - sp:subject spin:_this
40 - ] [ sp:object
41 [ sp:varName "contextRef"^^xsd:string 33 [ sp:varName "contextRef"^^xsd:string
42 ] ; 34 ] ;
43 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 35 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
...@@ -54,49 +46,79 @@ ...@@ -54,49 +46,79 @@
54 sp:subject 46 sp:subject
55 [ sp:varName "contextRef"^^xsd:string 47 [ sp:varName "contextRef"^^xsd:string
56 ] 48 ]
57 - ] [ rdf:type sp:Bind ; 49 + ] [ sp:object
58 - sp:expression 50 + [ sp:varName "contextFacilityRef"^^xsd:string
59 - [ rdf:type spl:object ;
60 - sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string
61 - ] ;
62 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
63 ] ; 51 ] ;
64 - sp:variable 52 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
65 - [ sp:varName "normalizedContextFacilityName"^^xsd:string 53 + sp:subject
54 + [ sp:varName "contextFacility"^^xsd:string
66 ] 55 ]
67 - ] [ rdf:type sp:Bind ; 56 + ] [ rdf:type sp:NotExists ;
68 - sp:expression 57 + sp:elements ([ sp:object spin:_this ;
69 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; 58 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
70 - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string 59 + sp:subject
71 - ] ; 60 + [ sp:varName "contextFacility"^^xsd:string
72 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string 61 + ]
73 - ] 62 + ])
63 + ] [ sp:object spin:_this ;
64 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
65 + sp:subject
66 + [ sp:varName "productionReport"^^xsd:string
67 + ]
68 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
69 + sp:predicate rdf:type ;
70 + sp:subject
71 + [ sp:varName "productionReport"^^xsd:string
72 + ]
73 + ] [ sp:object
74 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
74 ] ; 75 ] ;
75 - sp:variable 76 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
77 + sp:subject
76 [ sp:varName "productionReport"^^xsd:string 78 [ sp:varName "productionReport"^^xsd:string
77 ] 79 ]
80 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
81 + sp:predicate rdf:type ;
82 + sp:subject
83 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
84 + ]
85 + ] [ sp:object
86 + [ sp:varName "productionFacility"^^xsd:string
87 + ] ;
88 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
89 + sp:subject
90 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
91 + ]
78 ]) 92 ])
79 ] ; 93 ] ;
80 spin:rule 94 spin:rule
81 [ rdf:type sp:Construct ; 95 [ rdf:type sp:Construct ;
82 - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; 96 + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
83 - sp:templates ([ sp:object 97 + sp:templates ([ sp:object _:b1 ;
84 - [ sp:varName "intervalIdentifier"^^xsd:string 98 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
85 - ] ; 99 + sp:subject
86 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 100 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
87 - sp:subject spin:_this 101 + ]
88 - ] [ sp:object 102 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
89 - [ sp:varName "date"^^xsd:string 103 + sp:predicate rdf:type ;
90 - ] ; 104 + sp:subject _:b1
91 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
92 - sp:subject spin:_this
93 ] [ sp:object 105 ] [ sp:object
94 - [ sp:varName "dateEnd"^^xsd:string 106 + [ sp:varName "operator"^^xsd:string
95 ] ; 107 ] ;
96 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; 108 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
97 - sp:subject spin:_this 109 + sp:subject _:b1
98 ]) ; 110 ]) ;
99 - sp:where ([ sp:object 111 + sp:where ([ sp:object spin:_this ;
112 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
113 + sp:subject
114 + [ sp:varName "productionReport"^^xsd:string
115 + ]
116 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
117 + sp:predicate rdf:type ;
118 + sp:subject
119 + [ sp:varName "productionReport"^^xsd:string
120 + ]
121 + ] [ sp:object
100 [ sp:varName "contextRef"^^xsd:string 122 [ sp:varName "contextRef"^^xsd:string
101 ] ; 123 ] ;
102 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 124 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
...@@ -107,151 +129,102 @@ ...@@ -107,151 +129,102 @@
107 [ sp:varName "contextRef"^^xsd:string 129 [ sp:varName "contextRef"^^xsd:string
108 ] 130 ]
109 ] [ sp:object 131 ] [ sp:object
110 - [ sp:varName "date"^^xsd:string 132 + [ sp:varName "operatorRef"^^xsd:string
111 ] ; 133 ] ;
112 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 134 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
113 sp:subject 135 sp:subject
114 [ sp:varName "contextRef"^^xsd:string 136 [ sp:varName "contextRef"^^xsd:string
115 ] 137 ]
116 - ] [ rdf:type sp:NotExists ;
117 - sp:elements ([ sp:object
118 - [ sp:varName "dateStart"^^xsd:string
119 - ] ;
120 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
121 - sp:subject
122 - [ sp:varName "contextRef"^^xsd:string
123 - ]
124 - ])
125 ] [ sp:object 138 ] [ sp:object
126 - [ sp:varName "dateEnd"^^xsd:string 139 + [ sp:varName "operatorRef"^^xsd:string
127 ] ; 140 ] ;
128 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 141 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
129 sp:subject 142 sp:subject
130 - [ sp:varName "contextRef"^^xsd:string 143 + [ sp:varName "operator"^^xsd:string
131 ] 144 ]
132 - ] [ rdf:type sp:Bind ; 145 + ] [ sp:object
133 - sp:expression 146 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
134 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
135 - sp:arg1 [ sp:varName "date"^^xsd:string
136 - ] ;
137 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string
138 - ]
139 ] ; 147 ] ;
140 - sp:variable 148 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
141 - [ sp:varName "intervalIdentifier"^^xsd:string 149 + sp:subject
150 + [ sp:varName "productionReport"^^xsd:string
151 + ]
152 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
153 + sp:predicate rdf:type ;
154 + sp:subject
155 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
142 ] 156 ]
143 ]) 157 ])
144 ] ; 158 ] ;
145 spin:rule 159 spin:rule
146 [ rdf:type sp:Construct ; 160 [ rdf:type sp:Construct ;
147 - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; 161 + rdfs:comment "STEP 10001p Create the ProductionReport - unable to find an identifier"^^xsd:string ;
148 - sp:templates ([ sp:object 162 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
149 - [ sp:varName "date"^^xsd:string
150 - ] ;
151 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
152 - sp:subject spin:_this
153 - ] [ sp:object
154 - [ sp:varName "date"^^xsd:string
155 - ] ;
156 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
157 - sp:subject spin:_this
158 - ] [ sp:object
159 - [ sp:varName "date"^^xsd:string
160 - ] ;
161 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
162 - sp:subject spin:_this
163 - ]) ;
164 - sp:where ([ sp:object
165 - [ sp:varName "contextRef"^^xsd:string
166 - ] ;
167 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
168 - sp:subject spin:_this
169 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
170 sp:predicate rdf:type ; 163 sp:predicate rdf:type ;
171 sp:subject 164 sp:subject
172 - [ sp:varName "contextRef"^^xsd:string 165 + [ sp:varName "productionReport"^^xsd:string
173 ] 166 ]
174 - ] [ sp:object 167 + ] [ sp:object spin:_this ;
175 - [ sp:varName "date"^^xsd:string 168 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
176 - ] ;
177 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
178 sp:subject 169 sp:subject
179 - [ sp:varName "contextRef"^^xsd:string 170 + [ sp:varName "productionReport"^^xsd:string
180 ] 171 ]
172 + ]) ;
173 + sp:where ([ sp:object
174 + [ sp:varName "intervalIdentifier"^^xsd:string
175 + ] ;
176 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
177 + sp:subject spin:_this
181 ] [ rdf:type sp:NotExists ; 178 ] [ rdf:type sp:NotExists ;
182 sp:elements ([ sp:object 179 sp:elements ([ sp:object
183 - [ sp:varName "dateStart"^^xsd:string 180 + [ sp:varName "contextRef"^^xsd:string
184 ] ; 181 ] ;
185 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 182 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
183 + sp:subject spin:_this
184 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
185 + sp:predicate rdf:type ;
186 sp:subject 186 sp:subject
187 [ sp:varName "contextRef"^^xsd:string 187 [ sp:varName "contextRef"^^xsd:string
188 ] 188 ]
189 - ]) 189 + ] [ sp:object
190 - ] [ rdf:type sp:NotExists ; 190 + [ sp:varName "contextFacilityRef"^^xsd:string
191 - sp:elements ([ sp:object
192 - [ sp:varName "dateEnd"^^xsd:string
193 ] ; 191 ] ;
194 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 192 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
195 sp:subject 193 sp:subject
196 [ sp:varName "contextRef"^^xsd:string 194 [ sp:varName "contextRef"^^xsd:string
197 ] 195 ]
196 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
197 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
198 + sp:subject
199 + [ sp:varName "contextFacilityRef"^^xsd:string
200 + ]
198 ]) 201 ])
199 - ])
200 - ] ;
201 - spin:rule
202 - [ rdf:type sp:Construct ;
203 - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
204 - sp:templates ([ sp:object
205 - [ sp:varName "dateEnd"^^xsd:string
206 - ] ;
207 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
208 - sp:subject spin:_this
209 - ] [ sp:object
210 - [ sp:varName "dateEnd"^^xsd:string
211 - ] ;
212 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
213 - sp:subject spin:_this
214 - ] [ sp:object
215 - [ sp:varName "dateEnd"^^xsd:string
216 - ] ;
217 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
218 - sp:subject spin:_this
219 - ]) ;
220 - sp:where ([ sp:object
221 - [ sp:varName "contextRef"^^xsd:string
222 - ] ;
223 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
224 - sp:subject spin:_this
225 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
226 - sp:predicate rdf:type ;
227 - sp:subject
228 - [ sp:varName "contextRef"^^xsd:string
229 - ]
230 - ] [ sp:object
231 - [ sp:varName "dateEnd"^^xsd:string
232 - ] ;
233 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
234 - sp:subject
235 - [ sp:varName "contextRef"^^xsd:string
236 - ]
237 ] [ rdf:type sp:NotExists ; 202 ] [ rdf:type sp:NotExists ;
238 sp:elements ([ sp:object 203 sp:elements ([ sp:object
239 - [ sp:varName "date"^^xsd:string 204 + [ sp:varName "installationRef"^^xsd:string
240 ] ; 205 ] ;
241 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 206 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
242 sp:subject 207 sp:subject
243 [ sp:varName "contextRef"^^xsd:string 208 [ sp:varName "contextRef"^^xsd:string
244 ] 209 ]
245 - ]) 210 + ] [ sp:object
246 - ] [ rdf:type sp:NotExists ; 211 + [ sp:varName "installationRef"^^xsd:string
247 - sp:elements ([ sp:object
248 - [ sp:varName "dateStart"^^xsd:string
249 ] ; 212 ] ;
250 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 213 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
251 sp:subject 214 sp:subject
252 - [ sp:varName "contextRef"^^xsd:string 215 + [ sp:varName "reportingFacility"^^xsd:string
253 ] 216 ]
254 ]) 217 ])
218 + ] [ rdf:type sp:Bind ;
219 + sp:expression
220 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
221 + sp:arg1 "" ;
222 + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
223 + ]
224 + ] ;
225 + sp:variable
226 + [ sp:varName "productionReport"^^xsd:string
227 + ]
255 ]) 228 ])
256 ] ; 229 ] ;
257 spin:rule 230 spin:rule
...@@ -321,54 +294,147 @@ ...@@ -321,54 +294,147 @@
321 ] ; 294 ] ;
322 spin:rule 295 spin:rule
323 [ rdf:type sp:Construct ; 296 [ rdf:type sp:Construct ;
324 - rdfs:comment "STEP 10001r Set the submitting installation"^^xsd:string ; 297 + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
325 - sp:templates ([ sp:object _:b1 ; 298 + sp:templates ([ sp:object "noDate" ;
326 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; 299 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
300 + sp:subject spin:_this
301 + ]) ;
302 + sp:where ([ sp:object
303 + [ sp:varName "contextRef"^^xsd:string
304 + ] ;
305 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
306 + sp:subject spin:_this
307 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
308 + sp:predicate rdf:type ;
309 + sp:subject
310 + [ sp:varName "contextRef"^^xsd:string
311 + ]
312 + ] [ rdf:type sp:NotExists ;
313 + sp:elements ([ sp:object
314 + [ sp:varName "dateEnd"^^xsd:string
315 + ] ;
316 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
317 + sp:subject
318 + [ sp:varName "contextRef"^^xsd:string
319 + ]
320 + ])
321 + ] [ rdf:type sp:NotExists ;
322 + sp:elements ([ sp:object
323 + [ sp:varName "date"^^xsd:string
324 + ] ;
325 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
326 + sp:subject
327 + [ sp:varName "contextRef"^^xsd:string
328 + ]
329 + ])
330 + ] [ rdf:type sp:NotExists ;
331 + sp:elements ([ sp:object
332 + [ sp:varName "dateStart"^^xsd:string
333 + ] ;
334 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
335 + sp:subject
336 + [ sp:varName "contextRef"^^xsd:string
337 + ]
338 + ])
339 + ])
340 + ] ;
341 + spin:rule
342 + [ rdf:type sp:Construct ;
343 + rdfs:comment "STEP 10001o Set the default production facility from context/contextFacility"^^xsd:string ;
344 + sp:templates ([ sp:object spin:_this ;
345 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
346 + sp:subject
347 + [ sp:varName "productionFacility"^^xsd:string
348 + ]
349 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
350 + sp:predicate rdf:type ;
351 + sp:subject
352 + [ sp:varName "productionFacility"^^xsd:string
353 + ]
354 + ] [ sp:object _:b2 ;
355 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
327 sp:subject 356 sp:subject
328 [ sp:varName "productionReport"^^xsd:string 357 [ sp:varName "productionReport"^^xsd:string
329 ] 358 ]
330 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 359 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
331 sp:predicate rdf:type ; 360 sp:predicate rdf:type ;
332 - sp:subject _:b1 361 + sp:subject _:b2
333 ] [ sp:object 362 ] [ sp:object
334 - [ sp:varName "installation"^^xsd:string 363 + [ sp:varName "productionFacility"^^xsd:string
335 ] ; 364 ] ;
336 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 365 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
337 - sp:subject _:b1 366 + sp:subject _:b2
338 - ]) ; 367 + ] [ sp:object
339 - sp:where ([ sp:object 368 + [ sp:varName "intervalStart"^^xsd:string
340 - [ sp:varName "contextRef"^^xsd:string
341 ] ; 369 ] ;
342 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 370 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
371 + sp:subject _:b2
372 + ] [ sp:object
373 + [ sp:varName "intervalEnd"^^xsd:string
374 + ] ;
375 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
376 + sp:subject _:b2
377 + ] [ sp:object
378 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
379 + ] ;
380 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
343 sp:subject spin:_this 381 sp:subject spin:_this
344 - ] [ sp:object spin:_this ; 382 + ]) ;
345 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 383 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
384 + sp:predicate rdf:type ;
346 sp:subject 385 sp:subject
347 [ sp:varName "productionReport"^^xsd:string 386 [ sp:varName "productionReport"^^xsd:string
348 ] 387 ]
349 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 388 + ] [ sp:object spin:_this ;
350 - sp:predicate rdf:type ; 389 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
351 sp:subject 390 sp:subject
352 [ sp:varName "productionReport"^^xsd:string 391 [ sp:varName "productionReport"^^xsd:string
353 ] 392 ]
393 + ] [ rdf:type sp:Optional ;
394 + sp:elements ([ sp:object
395 + [ sp:varName "intervalStart"^^xsd:string
396 + ] ;
397 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
398 + sp:subject spin:_this
399 + ] [ sp:object
400 + [ sp:varName "intervalEnd"^^xsd:string
401 + ] ;
402 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
403 + sp:subject spin:_this
404 + ])
405 + ] [ sp:object
406 + [ sp:varName "contextRef"^^xsd:string
407 + ] ;
408 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
409 + sp:subject spin:_this
354 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 410 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
355 sp:predicate rdf:type ; 411 sp:predicate rdf:type ;
356 sp:subject 412 sp:subject
357 [ sp:varName "contextRef"^^xsd:string 413 [ sp:varName "contextRef"^^xsd:string
358 ] 414 ]
359 ] [ sp:object 415 ] [ sp:object
360 - [ sp:varName "installationRef"^^xsd:string 416 + [ sp:varName "contextFacilityRef"^^xsd:string
361 ] ; 417 ] ;
362 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 418 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
363 sp:subject 419 sp:subject
364 [ sp:varName "contextRef"^^xsd:string 420 [ sp:varName "contextRef"^^xsd:string
365 ] 421 ]
366 ] [ sp:object 422 ] [ sp:object
367 - [ sp:varName "installationRef"^^xsd:string 423 + [ sp:varName "contextFacilityRef"^^xsd:string
368 ] ; 424 ] ;
369 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 425 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
370 sp:subject 426 sp:subject
371 - [ sp:varName "installation"^^xsd:string 427 + [ sp:varName "productionFacility"^^xsd:string
428 + ]
429 + ] [ rdf:type sp:Bind ;
430 + sp:expression
431 + [ rdf:type spl:object ;
432 + sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string
433 + ] ;
434 + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
435 + ] ;
436 + sp:variable
437 + [ sp:varName "normalizedProductionFacilityName"^^xsd:string
372 ] 438 ]
373 ]) 439 ])
374 ] ; 440 ] ;
...@@ -428,20 +494,22 @@ ...@@ -428,20 +494,22 @@
428 ] ; 494 ] ;
429 spin:rule 495 spin:rule
430 [ rdf:type sp:Construct ; 496 [ rdf:type sp:Construct ;
431 - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; 497 + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
432 - sp:templates ([ sp:object _:b2 ; 498 + sp:templates ([ sp:object
433 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; 499 + [ sp:varName "date"^^xsd:string
434 - sp:subject 500 + ] ;
435 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 501 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
436 - ] 502 + sp:subject spin:_this
437 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
438 - sp:predicate rdf:type ;
439 - sp:subject _:b2
440 ] [ sp:object 503 ] [ sp:object
441 - [ sp:varName "operator"^^xsd:string 504 + [ sp:varName "date"^^xsd:string
442 ] ; 505 ] ;
443 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 506 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
444 - sp:subject _:b2 507 + sp:subject spin:_this
508 + ] [ sp:object
509 + [ sp:varName "date"^^xsd:string
510 + ] ;
511 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
512 + sp:subject spin:_this
445 ]) ; 513 ]) ;
446 sp:where ([ sp:object 514 sp:where ([ sp:object
447 [ sp:varName "contextRef"^^xsd:string 515 [ sp:varName "contextRef"^^xsd:string
...@@ -454,49 +522,109 @@ ...@@ -454,49 +522,109 @@
454 [ sp:varName "contextRef"^^xsd:string 522 [ sp:varName "contextRef"^^xsd:string
455 ] 523 ]
456 ] [ sp:object 524 ] [ sp:object
457 - [ sp:varName "operatorRef"^^xsd:string 525 + [ sp:varName "date"^^xsd:string
458 ] ; 526 ] ;
459 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 527 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
460 sp:subject 528 sp:subject
461 [ sp:varName "contextRef"^^xsd:string 529 [ sp:varName "contextRef"^^xsd:string
462 ] 530 ]
463 - ] [ sp:object 531 + ] [ rdf:type sp:NotExists ;
464 - [ sp:varName "operatorRef"^^xsd:string 532 + sp:elements ([ sp:object
465 - ] ; 533 + [ sp:varName "dateStart"^^xsd:string
466 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 534 + ] ;
535 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
536 + sp:subject
537 + [ sp:varName "contextRef"^^xsd:string
538 + ]
539 + ])
540 + ] [ rdf:type sp:NotExists ;
541 + sp:elements ([ sp:object
542 + [ sp:varName "dateEnd"^^xsd:string
543 + ] ;
544 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
545 + sp:subject
546 + [ sp:varName "contextRef"^^xsd:string
547 + ]
548 + ])
549 + ])
550 + ] ;
551 + spin:rule
552 + [ rdf:type sp:Construct ;
553 + rdfs:comment "STEP 10001m Create the ProductionReport - extract the report name from context/contextFacility"^^xsd:string ;
554 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
555 + sp:predicate rdf:type ;
467 sp:subject 556 sp:subject
468 - [ sp:varName "operator"^^xsd:string 557 + [ sp:varName "productionReport"^^xsd:string
469 ] 558 ]
470 ] [ sp:object spin:_this ; 559 ] [ sp:object spin:_this ;
471 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 560 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
472 sp:subject 561 sp:subject
473 [ sp:varName "productionReport"^^xsd:string 562 [ sp:varName "productionReport"^^xsd:string
474 ] 563 ]
475 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 564 + ]) ;
565 + sp:where ([ sp:object
566 + [ sp:varName "intervalIdentifier"^^xsd:string
567 + ] ;
568 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
569 + sp:subject spin:_this
570 + ] [ sp:object
571 + [ sp:varName "contextRef"^^xsd:string
572 + ] ;
573 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
574 + sp:subject spin:_this
575 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
476 sp:predicate rdf:type ; 576 sp:predicate rdf:type ;
477 sp:subject 577 sp:subject
478 - [ sp:varName "productionReport"^^xsd:string 578 + [ sp:varName "contextRef"^^xsd:string
579 + ]
580 + ] [ sp:object
581 + [ sp:varName "contextFacilityRef"^^xsd:string
582 + ] ;
583 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
584 + sp:subject
585 + [ sp:varName "contextRef"^^xsd:string
586 + ]
587 + ] [ rdf:type sp:Bind ;
588 + sp:expression
589 + [ rdf:type spl:object ;
590 + sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string
591 + ] ;
592 + sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
593 + ] ;
594 + sp:variable
595 + [ sp:varName "normalizedContextFacilityName"^^xsd:string
479 ] 596 ]
480 - ] [ sp:object 597 + ] [ rdf:type sp:Bind ;
481 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 598 + sp:expression
599 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
600 + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string
601 + ] ;
602 + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
603 + ]
482 ] ; 604 ] ;
483 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; 605 + sp:variable
484 - sp:subject
485 [ sp:varName "productionReport"^^xsd:string 606 [ sp:varName "productionReport"^^xsd:string
486 ] 607 ]
487 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
488 - sp:predicate rdf:type ;
489 - sp:subject
490 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
491 - ]
492 ]) 608 ])
493 ] ; 609 ] ;
494 spin:rule 610 spin:rule
495 [ rdf:type sp:Construct ; 611 [ rdf:type sp:Construct ;
496 - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; 612 + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
497 - sp:templates ([ sp:object "noDate" ; 613 + sp:templates ([ sp:object
614 + [ sp:varName "dateEnd"^^xsd:string
615 + ] ;
498 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 616 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
499 sp:subject spin:_this 617 sp:subject spin:_this
618 + ] [ sp:object
619 + [ sp:varName "dateEnd"^^xsd:string
620 + ] ;
621 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
622 + sp:subject spin:_this
623 + ] [ sp:object
624 + [ sp:varName "dateEnd"^^xsd:string
625 + ] ;
626 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
627 + sp:subject spin:_this
500 ]) ; 628 ]) ;
501 sp:where ([ sp:object 629 sp:where ([ sp:object
502 [ sp:varName "contextRef"^^xsd:string 630 [ sp:varName "contextRef"^^xsd:string
...@@ -508,15 +636,13 @@ ...@@ -508,15 +636,13 @@
508 sp:subject 636 sp:subject
509 [ sp:varName "contextRef"^^xsd:string 637 [ sp:varName "contextRef"^^xsd:string
510 ] 638 ]
511 - ] [ rdf:type sp:NotExists ; 639 + ] [ sp:object
512 - sp:elements ([ sp:object 640 + [ sp:varName "dateEnd"^^xsd:string
513 - [ sp:varName "dateEnd"^^xsd:string 641 + ] ;
514 - ] ; 642 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
515 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 643 + sp:subject
516 - sp:subject 644 + [ sp:varName "contextRef"^^xsd:string
517 - [ sp:varName "contextRef"^^xsd:string 645 + ]
518 - ]
519 - ])
520 ] [ rdf:type sp:NotExists ; 646 ] [ rdf:type sp:NotExists ;
521 sp:elements ([ sp:object 647 sp:elements ([ sp:object
522 [ sp:varName "date"^^xsd:string 648 [ sp:varName "date"^^xsd:string
...@@ -539,21 +665,21 @@ ...@@ -539,21 +665,21 @@
539 ] ; 665 ] ;
540 spin:rule 666 spin:rule
541 [ rdf:type sp:Construct ; 667 [ rdf:type sp:Construct ;
542 - rdfs:comment "STEP 10001o Set the default production facility from context/contextFacility"^^xsd:string ; 668 + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
543 - sp:templates ([ sp:object spin:_this ; 669 + sp:templates ([ sp:object
544 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 670 + [ sp:varName "intervalIdentifier"^^xsd:string
545 - sp:subject 671 + ] ;
546 - [ sp:varName "productionFacility"^^xsd:string 672 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
547 - ] 673 + sp:subject spin:_this
548 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
549 - sp:predicate rdf:type ;
550 - sp:subject
551 - [ sp:varName "productionFacility"^^xsd:string
552 - ]
553 ] [ sp:object 674 ] [ sp:object
554 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string 675 + [ sp:varName "date"^^xsd:string
555 ] ; 676 ] ;
556 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 677 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
678 + sp:subject spin:_this
679 + ] [ sp:object
680 + [ sp:varName "dateEnd"^^xsd:string
681 + ] ;
682 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
557 sp:subject spin:_this 683 sp:subject spin:_this
558 ]) ; 684 ]) ;
559 sp:where ([ sp:object 685 sp:where ([ sp:object
...@@ -567,74 +693,69 @@ ...@@ -567,74 +693,69 @@
567 [ sp:varName "contextRef"^^xsd:string 693 [ sp:varName "contextRef"^^xsd:string
568 ] 694 ]
569 ] [ sp:object 695 ] [ sp:object
570 - [ sp:varName "contextFacilityRef"^^xsd:string 696 + [ sp:varName "date"^^xsd:string
571 ] ; 697 ] ;
572 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 698 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
573 sp:subject 699 sp:subject
574 [ sp:varName "contextRef"^^xsd:string 700 [ sp:varName "contextRef"^^xsd:string
575 ] 701 ]
702 + ] [ rdf:type sp:NotExists ;
703 + sp:elements ([ sp:object
704 + [ sp:varName "dateStart"^^xsd:string
705 + ] ;
706 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
707 + sp:subject
708 + [ sp:varName "contextRef"^^xsd:string
709 + ]
710 + ])
576 ] [ sp:object 711 ] [ sp:object
577 - [ sp:varName "contextFacilityRef"^^xsd:string 712 + [ sp:varName "dateEnd"^^xsd:string
578 ] ; 713 ] ;
579 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 714 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
580 sp:subject 715 sp:subject
581 - [ sp:varName "productionFacility"^^xsd:string 716 + [ sp:varName "contextRef"^^xsd:string
582 ] 717 ]
583 ] [ rdf:type sp:Bind ; 718 ] [ rdf:type sp:Bind ;
584 sp:expression 719 sp:expression
585 - [ rdf:type spl:object ; 720 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
586 - sp:arg1 [ sp:varName "contextFacilityRef"^^xsd:string 721 + sp:arg1 [ sp:varName "date"^^xsd:string
587 ] ; 722 ] ;
588 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> 723 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
724 + ]
589 ] ; 725 ] ;
590 sp:variable 726 sp:variable
591 - [ sp:varName "normalizedProductionFacilityName"^^xsd:string 727 + [ sp:varName "intervalIdentifier"^^xsd:string
592 ] 728 ]
593 ]) 729 ])
594 ] ; 730 ] ;
595 spin:rule 731 spin:rule
596 [ rdf:type sp:Construct ; 732 [ rdf:type sp:Construct ;
597 - rdfs:comment "STEP 10010 Add the contextFacility - unless the contextFacility is the production facility"^^xsd:string ; 733 + rdfs:comment "STEP 10001r Set the submitting installation"^^xsd:string ;
598 - sp:templates ([ sp:object 734 + sp:templates ([ sp:object _:b3 ;
599 - [ sp:varName "contextFacility"^^xsd:string 735 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
600 - ] ;
601 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
602 sp:subject 736 sp:subject
603 - [ sp:varName "productionFacility"^^xsd:string 737 + [ sp:varName "productionReport"^^xsd:string
604 ] 738 ]
605 - ]) ; 739 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
606 - sp:where ([ sp:object
607 - [ sp:varName "contextRef"^^xsd:string
608 - ] ;
609 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
610 - sp:subject spin:_this
611 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
612 sp:predicate rdf:type ; 740 sp:predicate rdf:type ;
613 - sp:subject 741 + sp:subject _:b3
614 - [ sp:varName "contextRef"^^xsd:string
615 - ]
616 ] [ sp:object 742 ] [ sp:object
617 - [ sp:varName "contextFacilityRef"^^xsd:string 743 + [ sp:varName "installation"^^xsd:string
618 ] ; 744 ] ;
619 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 745 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
620 - sp:subject 746 + sp:subject _:b3
621 - [ sp:varName "contextRef"^^xsd:string
622 - ]
623 ] [ sp:object 747 ] [ sp:object
624 - [ sp:varName "contextFacilityRef"^^xsd:string 748 + [ sp:varName "intervalStart"^^xsd:string
625 ] ; 749 ] ;
626 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 750 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
627 - sp:subject 751 + sp:subject _:b3
628 - [ sp:varName "contextFacility"^^xsd:string 752 + ] [ sp:object
629 - ] 753 + [ sp:varName "intervalEnd"^^xsd:string
630 - ] [ rdf:type sp:NotExists ; 754 + ] ;
631 - sp:elements ([ sp:object spin:_this ; 755 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
632 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 756 + sp:subject _:b3
633 - sp:subject 757 + ]) ;
634 - [ sp:varName "contextFacility"^^xsd:string 758 + sp:where ([ sp:object spin:_this ;
635 - ]
636 - ])
637 - ] [ sp:object spin:_this ;
638 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 759 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
639 sp:subject 760 sp:subject
640 [ sp:varName "productionReport"^^xsd:string 761 [ sp:varName "productionReport"^^xsd:string
...@@ -644,24 +765,41 @@ ...@@ -644,24 +765,41 @@
644 sp:subject 765 sp:subject
645 [ sp:varName "productionReport"^^xsd:string 766 [ sp:varName "productionReport"^^xsd:string
646 ] 767 ]
768 + ] [ rdf:type sp:Optional ;
769 + sp:elements ([ sp:object
770 + [ sp:varName "intervalStart"^^xsd:string
771 + ] ;
772 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
773 + sp:subject spin:_this
774 + ] [ sp:object
775 + [ sp:varName "intervalEnd"^^xsd:string
776 + ] ;
777 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
778 + sp:subject spin:_this
779 + ])
647 ] [ sp:object 780 ] [ sp:object
648 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 781 + [ sp:varName "contextRef"^^xsd:string
649 ] ; 782 ] ;
650 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ; 783 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
784 + sp:subject spin:_this
785 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
786 + sp:predicate rdf:type ;
651 sp:subject 787 sp:subject
652 - [ sp:varName "productionReport"^^xsd:string 788 + [ sp:varName "contextRef"^^xsd:string
653 ] 789 ]
654 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 790 + ] [ sp:object
655 - sp:predicate rdf:type ; 791 + [ sp:varName "installationRef"^^xsd:string
792 + ] ;
793 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
656 sp:subject 794 sp:subject
657 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 795 + [ sp:varName "contextRef"^^xsd:string
658 ] 796 ]
659 ] [ sp:object 797 ] [ sp:object
660 - [ sp:varName "productionFacility"^^xsd:string 798 + [ sp:varName "installationRef"^^xsd:string
661 ] ; 799 ] ;
662 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 800 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
663 sp:subject 801 sp:subject
664 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 802 + [ sp:varName "installation"^^xsd:string
665 ] 803 ]
666 ]) 804 ])
667 ] ; 805 ] ;
...@@ -720,80 +858,9 @@ ...@@ -720,80 +858,9 @@
720 [ sp:varName "intervalIdentifier"^^xsd:string 858 [ sp:varName "intervalIdentifier"^^xsd:string
721 ] 859 ]
722 ]) 860 ])
723 - ] ;
724 - spin:rule
725 - [ rdf:type sp:Construct ;
726 - rdfs:comment "STEP 10001p Create the ProductionReport - unable to find an identifier"^^xsd:string ;
727 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
728 - sp:predicate rdf:type ;
729 - sp:subject
730 - [ sp:varName "productionReport"^^xsd:string
731 - ]
732 - ] [ sp:object spin:_this ;
733 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
734 - sp:subject
735 - [ sp:varName "productionReport"^^xsd:string
736 - ]
737 - ]) ;
738 - sp:where ([ sp:object
739 - [ sp:varName "intervalIdentifier"^^xsd:string
740 - ] ;
741 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
742 - sp:subject spin:_this
743 - ] [ rdf:type sp:NotExists ;
744 - sp:elements ([ sp:object
745 - [ sp:varName "contextRef"^^xsd:string
746 - ] ;
747 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
748 - sp:subject spin:_this
749 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
750 - sp:predicate rdf:type ;
751 - sp:subject
752 - [ sp:varName "contextRef"^^xsd:string
753 - ]
754 - ] [ sp:object
755 - [ sp:varName "contextFacilityRef"^^xsd:string
756 - ] ;
757 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
758 - sp:subject
759 - [ sp:varName "contextRef"^^xsd:string
760 - ]
761 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
762 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
763 - sp:subject
764 - [ sp:varName "contextFacilityRef"^^xsd:string
765 - ]
766 - ])
767 - ] [ rdf:type sp:NotExists ;
768 - sp:elements ([ sp:object
769 - [ sp:varName "installationRef"^^xsd:string
770 - ] ;
771 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
772 - sp:subject
773 - [ sp:varName "contextRef"^^xsd:string
774 - ]
775 - ] [ sp:object
776 - [ sp:varName "installationRef"^^xsd:string
777 - ] ;
778 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
779 - sp:subject
780 - [ sp:varName "reportingFacility"^^xsd:string
781 - ]
782 - ])
783 - ] [ rdf:type sp:Bind ;
784 - sp:expression
785 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
786 - sp:arg1 "" ;
787 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
788 - ]
789 - ] ;
790 - sp:variable
791 - [ sp:varName "productionReport"^^xsd:string
792 - ]
793 - ])
794 ] . 861 ] .
795 862
796 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> 863 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
797 rdf:type owl:Ontology ; 864 rdf:type owl:Ontology ;
798 - 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> ; 865 + 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> ;
799 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 866 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......