David Leal

Next tranche of work on MPR productionOperation transform

...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
12 12
13 <http://www.reportinghub.no/ep/schema/1.0/production-facility> 13 <http://www.reportinghub.no/ep/schema/1.0/production-facility>
14 rdf:type owl:Ontology ; 14 rdf:type owl:Ontology ;
15 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; 15 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ;
16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
17 17
18 <http://www.reportinghub.no/ep/schema/equipment#ChokeValve> 18 <http://www.reportinghub.no/ep/schema/equipment#ChokeValve>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 rdf:type ep-prodfac:ProductionFacilityType . 60 rdf:type ep-prodfac:ProductionFacilityType .
61 61
62 <http://www.reportinghub.no/ep/schema/facility#facilityOperator> 62 <http://www.reportinghub.no/ep/schema/facility#facilityOperator>
63 - rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; 63 + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
64 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; 64 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
65 rdfs:label "facility operator"^^xsd:string ; 65 rdfs:label "facility operator"^^xsd:string ;
66 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . 66 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
...@@ -101,22 +101,22 @@ ep-prodfac:Boat ...@@ -101,22 +101,22 @@ ep-prodfac:Boat
101 rdfs:subClassOf ep-prodfac:ShipOrBoat . 101 rdfs:subClassOf ep-prodfac:ShipOrBoat .
102 102
103 ep-prodfac:Field-area 103 ep-prodfac:Field-area
104 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 104 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
105 rdfs:label "field - area"^^xsd:string ; 105 rdfs:label "field - area"^^xsd:string ;
106 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 106 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
107 107
108 ep-prodfac:Field-group 108 ep-prodfac:Field-group
109 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 109 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
110 rdfs:label "field - group"^^xsd:string ; 110 rdfs:label "field - group"^^xsd:string ;
111 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 111 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
112 112
113 ep-prodfac:Field-part 113 ep-prodfac:Field-part
114 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 114 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
115 rdfs:label "field - part"^^xsd:string ; 115 rdfs:label "field - part"^^xsd:string ;
116 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 116 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
117 117
118 ep-prodfac:Installation 118 ep-prodfac:Installation
119 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 119 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
120 rdfs:label "installation"^^xsd:string ; 120 rdfs:label "installation"^^xsd:string ;
121 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 121 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
122 122
...@@ -126,17 +126,17 @@ ep-prodfac:OilTanker ...@@ -126,17 +126,17 @@ ep-prodfac:OilTanker
126 rdfs:subClassOf ep-prodfac:Ship . 126 rdfs:subClassOf ep-prodfac:Ship .
127 127
128 ep-prodfac:Plant 128 ep-prodfac:Plant
129 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 129 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
130 rdfs:label "plant"^^xsd:string ; 130 rdfs:label "plant"^^xsd:string ;
131 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 131 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
132 132
133 ep-prodfac:Plant-processing 133 ep-prodfac:Plant-processing
134 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 134 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
135 rdfs:label "plant - processing"^^xsd:string ; 135 rdfs:label "plant - processing"^^xsd:string ;
136 rdfs:subClassOf ep-prodfac:Plant . 136 rdfs:subClassOf ep-prodfac:Plant .
137 137
138 ep-prodfac:ProcessingFacility 138 ep-prodfac:ProcessingFacility
139 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 139 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
140 rdfs:label "processing facility"^^xsd:string ; 140 rdfs:label "processing facility"^^xsd:string ;
141 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 141 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
142 142
...@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat ...@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat
155 rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat . 155 rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat .
156 156
157 ep-prodfac:StorageFacility 157 ep-prodfac:StorageFacility
158 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 158 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
159 rdfs:label "storage facility"^^xsd:string ; 159 rdfs:label "storage facility"^^xsd:string ;
160 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 160 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
161 161
...@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat ...@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat
169 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 169 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
170 170
171 ep-prodfac:TrunkLine 171 ep-prodfac:TrunkLine
172 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 172 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
173 rdfs:label "trunk line"^^xsd:string ; 173 rdfs:label "trunk line"^^xsd:string ;
174 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 174 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
175 175
...@@ -178,11 +178,6 @@ ep-prodfac:numberOfBedsAvailable ...@@ -178,11 +178,6 @@ ep-prodfac:numberOfBedsAvailable
178 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; 178 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
179 rdfs:range xsd:integer . 179 rdfs:range xsd:integer .
180 180
181 -ep-prodfac:numberOfCateringCrew
182 - rdf:type owl:DatatypeProperty ;
183 - rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
184 - rdfs:range xsd:integer .
185 -
186 ep-prodfac:numberOfContractorCrew 181 ep-prodfac:numberOfContractorCrew
187 rdf:type owl:DatatypeProperty ; 182 rdf:type owl:DatatypeProperty ;
188 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; 183 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
......
...@@ -48,7 +48,7 @@ sp:if ...@@ -48,7 +48,7 @@ sp:if
48 48
49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
50 rdf:type owl:Ontology ; 50 rdf:type owl:Ontology ;
51 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; 51 + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
53 53
54 ep-dpr-spin-lib:Function 54 ep-dpr-spin-lib:Function
...@@ -140,7 +140,9 @@ ep-dpr-spin-lib:buildBlockURI ...@@ -140,7 +140,9 @@ ep-dpr-spin-lib:buildBlockURI
140 sp:expression 140 sp:expression
141 [ rdf:type ep-spin-lib:buildURI ; 141 [ rdf:type ep-spin-lib:buildURI ;
142 sp:arg1 "https://www.reportinghub.no/ep/data/block/" ; 142 sp:arg1 "https://www.reportinghub.no/ep/data/block/" ;
143 - sp:arg2 spin:_arg1 143 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
144 + sp:arg1 spin:_arg1
145 + ]
144 ] ; 146 ] ;
145 sp:variable 147 sp:variable
146 [ sp:varName "uri"^^xsd:string 148 [ sp:varName "uri"^^xsd:string
...@@ -154,16 +156,19 @@ ep-dpr-spin-lib:buildCountryURI ...@@ -154,16 +156,19 @@ ep-dpr-spin-lib:buildCountryURI
154 rdfs:subClassOf ep-dpr-spin-lib:Function ; 156 rdfs:subClassOf ep-dpr-spin-lib:Function ;
155 spin:body 157 spin:body
156 [ rdf:type sp:Select ; 158 [ rdf:type sp:Select ;
157 - sp:resultVariables (_:b5) ; 159 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
160 + ]) ;
158 sp:where ([ rdf:type sp:Bind ; 161 sp:where ([ rdf:type sp:Bind ;
159 sp:expression 162 sp:expression
160 [ rdf:type ep-spin-lib:buildURI ; 163 [ rdf:type ep-spin-lib:buildURI ;
161 sp:arg1 "https://www.reportinghub.no/ep/data/country/" ; 164 sp:arg1 "https://www.reportinghub.no/ep/data/country/" ;
162 - sp:arg2 [ rdf:type fn:concat ; 165 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
163 sp:arg1 spin:_arg1 166 sp:arg1 spin:_arg1
164 ] 167 ]
165 ] ; 168 ] ;
166 - sp:variable _:b5 169 + sp:variable
170 + [ sp:varName "uri"^^xsd:string
171 + ]
167 ]) 172 ])
168 ] . 173 ] .
169 174
...@@ -175,7 +180,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI ...@@ -175,7 +180,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI
175 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 180 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
176 arg2 is start date 181 arg2 is start date
177 arg3 is end date"""^^xsd:string ; 182 arg3 is end date"""^^xsd:string ;
178 - sp:resultVariables (_:b6) ; 183 + sp:resultVariables (_:b5) ;
179 sp:where ([ rdf:type sp:Bind ; 184 sp:where ([ rdf:type sp:Bind ;
180 sp:expression 185 sp:expression
181 [ rdf:type ep-spin-lib:buildURI ; 186 [ rdf:type ep-spin-lib:buildURI ;
...@@ -190,7 +195,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -190,7 +195,7 @@ arg3 is end date"""^^xsd:string ;
190 sp:arg5 spin:_arg3 195 sp:arg5 spin:_arg3
191 ] 196 ]
192 ] ; 197 ] ;
193 - sp:variable _:b6 198 + sp:variable _:b5
194 ]) 199 ])
195 ] . 200 ] .
196 201
...@@ -202,7 +207,7 @@ ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI ...@@ -202,7 +207,7 @@ ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
202 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 207 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
203 arg2 is start date 208 arg2 is start date
204 arg3 is end date"""^^xsd:string ; 209 arg3 is end date"""^^xsd:string ;
205 - sp:resultVariables (_:b7) ; 210 + sp:resultVariables (_:b6) ;
206 sp:where ([ rdf:type sp:Bind ; 211 sp:where ([ rdf:type sp:Bind ;
207 sp:expression 212 sp:expression
208 [ rdf:type ep-spin-lib:buildURI ; 213 [ rdf:type ep-spin-lib:buildURI ;
...@@ -217,7 +222,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -217,7 +222,7 @@ arg3 is end date"""^^xsd:string ;
217 sp:arg5 spin:_arg3 222 sp:arg5 spin:_arg3
218 ] 223 ]
219 ] ; 224 ] ;
220 - sp:variable _:b7 225 + sp:variable _:b6
221 ]) 226 ])
222 ] . 227 ] .
223 228
...@@ -228,18 +233,25 @@ ep-dpr-spin-lib:buildDailyProductionReportURI ...@@ -228,18 +233,25 @@ ep-dpr-spin-lib:buildDailyProductionReportURI
228 [ rdf:type sp:Select ; 233 [ rdf:type sp:Select ;
229 rdfs:comment """arg1 is the name of the report 234 rdfs:comment """arg1 is the name of the report
230 arg2 is the report date"""^^xsd:string ; 235 arg2 is the report date"""^^xsd:string ;
231 - sp:resultVariables (_:b8) ; 236 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
237 + ]) ;
232 sp:where ([ rdf:type sp:Bind ; 238 sp:where ([ rdf:type sp:Bind ;
233 sp:expression 239 sp:expression
234 [ rdf:type ep-spin-lib:buildURI ; 240 [ rdf:type ep-spin-lib:buildURI ;
235 sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ; 241 sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
236 sp:arg2 [ rdf:type fn:concat ; 242 sp:arg2 [ rdf:type fn:concat ;
237 - sp:arg1 spin:_arg1 ; 243 + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
244 + sp:arg1 spin:_arg1
245 + ] ;
238 sp:arg2 "$" ; 246 sp:arg2 "$" ;
239 - sp:arg3 spin:_arg2 247 + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ;
248 + sp:arg1 spin:_arg2
249 + ]
240 ] 250 ]
241 ] ; 251 ] ;
242 - sp:variable _:b8 252 + sp:variable
253 + [ sp:varName "uri"^^xsd:string
254 + ]
243 ]) 255 ])
244 ] . 256 ] .
245 257
...@@ -249,14 +261,60 @@ ep-dpr-spin-lib:buildFacilityURI ...@@ -249,14 +261,60 @@ ep-dpr-spin-lib:buildFacilityURI
249 spin:body 261 spin:body
250 [ rdf:type sp:Select ; 262 [ rdf:type sp:Select ;
251 rdfs:comment "arg1 is name of facility (this is going to change when we sort out the identity lookup)"^^xsd:string ; 263 rdfs:comment "arg1 is name of facility (this is going to change when we sort out the identity lookup)"^^xsd:string ;
252 - sp:resultVariables (_:b9) ; 264 + sp:resultVariables (_:b7) ;
253 sp:where ([ rdf:type sp:Bind ; 265 sp:where ([ rdf:type sp:Bind ;
254 sp:expression 266 sp:expression
255 [ rdf:type ep-spin-lib:buildURI ; 267 [ rdf:type ep-spin-lib:buildURI ;
256 sp:arg1 "https://www.reportinghub.no/ep/data/facility/" ; 268 sp:arg1 "https://www.reportinghub.no/ep/data/facility/" ;
257 sp:arg2 spin:_arg1 269 sp:arg2 spin:_arg1
258 ] ; 270 ] ;
259 - sp:variable _:b9 271 + sp:variable _:b7
272 + ])
273 + ] .
274 +
275 +ep-dpr-spin-lib:buildOrganizationURI
276 + rdf:type spin:Function ;
277 + rdfs:label "build Organization URI"^^xsd:string ;
278 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
279 + spin:body
280 + [ rdf:type sp:Select ;
281 + rdfs:comment "arg1 is name of the organization - assumed to be unique in this scope"^^xsd:string ;
282 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
283 + ]) ;
284 + sp:where ([ rdf:type sp:Bind ;
285 + sp:expression
286 + [ rdf:type ep-spin-lib:buildURI ;
287 + sp:arg1 "https://www.reportinghub.no/ep/data/organization/" ;
288 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
289 + sp:arg1 spin:_arg1
290 + ]
291 + ] ;
292 + sp:variable
293 + [ sp:varName "uri"^^xsd:string
294 + ]
295 + ])
296 + ] .
297 +
298 +ep-dpr-spin-lib:buildPersonURI
299 + rdf:type spin:Function ;
300 + rdfs:label "build Person URI"^^xsd:string ;
301 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
302 + spin:body
303 + [ rdf:type sp:Select ;
304 + rdfs:comment "arg1 is name of the person - assumed to be unique in this scope"^^xsd:string ;
305 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
306 + ]) ;
307 + sp:where ([ rdf:type sp:Bind ;
308 + sp:expression
309 + [ rdf:type ep-spin-lib:buildURI ;
310 + sp:arg1 "https://www.reportinghub.no/ep/data/person/" ;
311 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
312 + sp:arg1 spin:_arg1
313 + ]
314 + ] ;
315 + sp:variable
316 + [ sp:varName "uri"^^xsd:string
317 + ]
260 ]) 318 ])
261 ] . 319 ] .
262 320
...@@ -266,7 +324,7 @@ ep-dpr-spin-lib:buildProductFlowURI ...@@ -266,7 +324,7 @@ ep-dpr-spin-lib:buildProductFlowURI
266 rdfs:subClassOf ep-dpr-spin-lib:Function ; 324 rdfs:subClassOf ep-dpr-spin-lib:Function ;
267 spin:body 325 spin:body
268 [ rdf:type sp:Select ; 326 [ rdf:type sp:Select ;
269 - sp:resultVariables (_:b10) ; 327 + sp:resultVariables (_:b8) ;
270 sp:where ([ rdf:type sp:Bind ; 328 sp:where ([ rdf:type sp:Bind ;
271 sp:expression 329 sp:expression
272 [ rdf:type ep-spin-lib:buildURI ; 330 [ rdf:type ep-spin-lib:buildURI ;
...@@ -277,7 +335,7 @@ ep-dpr-spin-lib:buildProductFlowURI ...@@ -277,7 +335,7 @@ ep-dpr-spin-lib:buildProductFlowURI
277 sp:arg3 spin:_arg2 335 sp:arg3 spin:_arg2
278 ] 336 ]
279 ] ; 337 ] ;
280 - sp:variable _:b10 338 + sp:variable _:b8
281 ]) 339 ])
282 ] . 340 ] .
283 341
...@@ -340,7 +398,7 @@ ep-dpr-spin-lib:buildProductionActivityToDateURI ...@@ -340,7 +398,7 @@ ep-dpr-spin-lib:buildProductionActivityToDateURI
340 [ rdf:type sp:Select ; 398 [ rdf:type sp:Select ;
341 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 399 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
342 arg2 is end date"""^^xsd:string ; 400 arg2 is end date"""^^xsd:string ;
343 - sp:resultVariables (_:b11) ; 401 + sp:resultVariables (_:b9) ;
344 sp:where ([ rdf:type sp:Bind ; 402 sp:where ([ rdf:type sp:Bind ;
345 sp:expression 403 sp:expression
346 [ rdf:type ep-spin-lib:buildURI ; 404 [ rdf:type ep-spin-lib:buildURI ;
...@@ -353,7 +411,7 @@ arg2 is end date"""^^xsd:string ; ...@@ -353,7 +411,7 @@ arg2 is end date"""^^xsd:string ;
353 sp:arg3 spin:_arg2 411 sp:arg3 spin:_arg2
354 ] 412 ]
355 ] ; 413 ] ;
356 - sp:variable _:b11 414 + sp:variable _:b9
357 ]) 415 ])
358 ] . 416 ] .
359 417
...@@ -363,16 +421,19 @@ ep-dpr-spin-lib:buildProductionFacilityURI ...@@ -363,16 +421,19 @@ ep-dpr-spin-lib:buildProductionFacilityURI
363 rdfs:subClassOf ep-dpr-spin-lib:Function ; 421 rdfs:subClassOf ep-dpr-spin-lib:Function ;
364 spin:body 422 spin:body
365 [ rdf:type sp:Select ; 423 [ rdf:type sp:Select ;
366 - sp:resultVariables (_:b12) ; 424 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
425 + ]) ;
367 sp:where ([ rdf:type sp:Bind ; 426 sp:where ([ rdf:type sp:Bind ;
368 sp:expression 427 sp:expression
369 [ rdf:type ep-spin-lib:buildURI ; 428 [ rdf:type ep-spin-lib:buildURI ;
370 sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ; 429 sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
371 - sp:arg2 [ rdf:type fn:concat ; 430 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
372 sp:arg1 spin:_arg1 431 sp:arg1 spin:_arg1
373 ] 432 ]
374 ] ; 433 ] ;
375 - sp:variable _:b12 434 + sp:variable
435 + [ sp:varName "uri"^^xsd:string
436 + ]
376 ]) 437 ])
377 ] . 438 ] .
378 439
...@@ -382,16 +443,19 @@ ep-dpr-spin-lib:buildProductionFlowURI ...@@ -382,16 +443,19 @@ ep-dpr-spin-lib:buildProductionFlowURI
382 rdfs:subClassOf ep-dpr-spin-lib:Function ; 443 rdfs:subClassOf ep-dpr-spin-lib:Function ;
383 spin:body 444 spin:body
384 [ rdf:type sp:Select ; 445 [ rdf:type sp:Select ;
385 - sp:resultVariables (_:b13) ; 446 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
447 + ]) ;
386 sp:where ([ rdf:type sp:Bind ; 448 sp:where ([ rdf:type sp:Bind ;
387 sp:expression 449 sp:expression
388 [ rdf:type ep-spin-lib:buildURI ; 450 [ rdf:type ep-spin-lib:buildURI ;
389 sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ; 451 sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
390 - sp:arg2 [ rdf:type fn:concat ; 452 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
391 sp:arg1 spin:_arg1 453 sp:arg1 spin:_arg1
392 ] 454 ]
393 ] ; 455 ] ;
394 - sp:variable _:b13 456 + sp:variable
457 + [ sp:varName "uri"^^xsd:string
458 + ]
395 ]) 459 ])
396 ] . 460 ] .
397 461
...@@ -401,7 +465,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ...@@ -401,7 +465,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
401 rdfs:subClassOf ep-dpr-spin-lib:Function ; 465 rdfs:subClassOf ep-dpr-spin-lib:Function ;
402 spin:body 466 spin:body
403 [ rdf:type sp:Select ; 467 [ rdf:type sp:Select ;
404 - sp:resultVariables (_:b14) ; 468 + sp:resultVariables (_:b10) ;
405 sp:where ([ rdf:type sp:Bind ; 469 sp:where ([ rdf:type sp:Bind ;
406 sp:expression 470 sp:expression
407 [ rdf:type ep-spin-lib:buildURI ; 471 [ rdf:type ep-spin-lib:buildURI ;
...@@ -414,7 +478,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ...@@ -414,7 +478,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
414 sp:arg5 spin:_arg3 478 sp:arg5 spin:_arg3
415 ] 479 ]
416 ] ; 480 ] ;
417 - sp:variable _:b14 481 + sp:variable _:b10
418 ]) 482 ])
419 ] . 483 ] .
420 484
...@@ -424,7 +488,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI ...@@ -424,7 +488,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI
424 rdfs:subClassOf ep-dpr-spin-lib:Function ; 488 rdfs:subClassOf ep-dpr-spin-lib:Function ;
425 spin:body 489 spin:body
426 [ rdf:type sp:Select ; 490 [ rdf:type sp:Select ;
427 - sp:resultVariables (_:b15) ; 491 + sp:resultVariables (_:b11) ;
428 sp:where ([ rdf:type sp:Bind ; 492 sp:where ([ rdf:type sp:Bind ;
429 sp:expression 493 sp:expression
430 [ rdf:type ep-spin-lib:buildURI ; 494 [ rdf:type ep-spin-lib:buildURI ;
...@@ -435,7 +499,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI ...@@ -435,7 +499,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI
435 sp:arg3 spin:_arg2 499 sp:arg3 spin:_arg2
436 ] 500 ]
437 ] ; 501 ] ;
438 - sp:variable _:b15 502 + sp:variable _:b11
439 ]) 503 ])
440 ] . 504 ] .
441 505
...@@ -451,7 +515,7 @@ ep-dpr-spin-lib:buildProductionInventoryURI ...@@ -451,7 +515,7 @@ ep-dpr-spin-lib:buildProductionInventoryURI
451 sp:expression 515 sp:expression
452 [ rdf:type ep-spin-lib:buildURI ; 516 [ rdf:type ep-spin-lib:buildURI ;
453 sp:arg1 "https://www.reportinghub.no/ep/data/productionInventory/" ; 517 sp:arg1 "https://www.reportinghub.no/ep/data/productionInventory/" ;
454 - sp:arg2 [ rdf:type fn:concat ; 518 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
455 sp:arg1 spin:_arg1 519 sp:arg1 spin:_arg1
456 ] 520 ]
457 ] ; 521 ] ;
...@@ -473,7 +537,7 @@ ep-dpr-spin-lib:buildProductionReportKindURI ...@@ -473,7 +537,7 @@ ep-dpr-spin-lib:buildProductionReportKindURI
473 sp:expression 537 sp:expression
474 [ rdf:type ep-spin-lib:buildURI ; 538 [ rdf:type ep-spin-lib:buildURI ;
475 sp:arg1 "https://www.reportinghub.no/ep/data/productionReportKind/" ; 539 sp:arg1 "https://www.reportinghub.no/ep/data/productionReportKind/" ;
476 - sp:arg2 [ rdf:type fn:concat ; 540 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
477 sp:arg1 spin:_arg1 541 sp:arg1 spin:_arg1
478 ] 542 ]
479 ] ; 543 ] ;
...@@ -489,16 +553,19 @@ ep-dpr-spin-lib:buildShipURI ...@@ -489,16 +553,19 @@ ep-dpr-spin-lib:buildShipURI
489 spin:body 553 spin:body
490 [ rdf:type sp:Select ; 554 [ rdf:type sp:Select ;
491 rdfs:comment "arg1 is name of the ship - assumed to be unique in this scope"^^xsd:string ; 555 rdfs:comment "arg1 is name of the ship - assumed to be unique in this scope"^^xsd:string ;
492 - sp:resultVariables (_:b16) ; 556 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
557 + ]) ;
493 sp:where ([ rdf:type sp:Bind ; 558 sp:where ([ rdf:type sp:Bind ;
494 sp:expression 559 sp:expression
495 [ rdf:type ep-spin-lib:buildURI ; 560 [ rdf:type ep-spin-lib:buildURI ;
496 - sp:arg1 "https://www.reportinghub.no/ep/data/Ship/" ; 561 + sp:arg1 "https://www.reportinghub.no/ep/data/ship/" ;
497 sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; 562 sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
498 sp:arg1 spin:_arg1 563 sp:arg1 spin:_arg1
499 ] 564 ]
500 ] ; 565 ] ;
501 - sp:variable _:b16 566 + sp:variable
567 + [ sp:varName "uri"^^xsd:string
568 + ]
502 ]) 569 ])
503 ] . 570 ] .
504 571
...@@ -508,16 +575,19 @@ ep-dpr-spin-lib:buildStateURI ...@@ -508,16 +575,19 @@ ep-dpr-spin-lib:buildStateURI
508 rdfs:subClassOf ep-dpr-spin-lib:Function ; 575 rdfs:subClassOf ep-dpr-spin-lib:Function ;
509 spin:body 576 spin:body
510 [ rdf:type sp:Select ; 577 [ rdf:type sp:Select ;
511 - sp:resultVariables (_:b17) ; 578 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
579 + ]) ;
512 sp:where ([ rdf:type sp:Bind ; 580 sp:where ([ rdf:type sp:Bind ;
513 sp:expression 581 sp:expression
514 [ rdf:type ep-spin-lib:buildURI ; 582 [ rdf:type ep-spin-lib:buildURI ;
515 sp:arg1 "https://www.reportinghub.no/ep/data/state/" ; 583 sp:arg1 "https://www.reportinghub.no/ep/data/state/" ;
516 - sp:arg2 [ rdf:type fn:concat ; 584 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
517 sp:arg1 spin:_arg1 585 sp:arg1 spin:_arg1
518 ] 586 ]
519 ] ; 587 ] ;
520 - sp:variable _:b17 588 + sp:variable
589 + [ sp:varName "uri"^^xsd:string
590 + ]
521 ]) 591 ])
522 ] . 592 ] .
523 593
...@@ -529,7 +599,7 @@ ep-dpr-spin-lib:buildTemporalPartOfFacilityURI ...@@ -529,7 +599,7 @@ ep-dpr-spin-lib:buildTemporalPartOfFacilityURI
529 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 599 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
530 arg2 is start date 600 arg2 is start date
531 arg3 is end date"""^^xsd:string ; 601 arg3 is end date"""^^xsd:string ;
532 - sp:resultVariables (_:b18) ; 602 + sp:resultVariables (_:b12) ;
533 sp:where ([ rdf:type sp:Bind ; 603 sp:where ([ rdf:type sp:Bind ;
534 sp:expression 604 sp:expression
535 [ rdf:type ep-spin-lib:buildURI ; 605 [ rdf:type ep-spin-lib:buildURI ;
...@@ -544,7 +614,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -544,7 +614,7 @@ arg3 is end date"""^^xsd:string ;
544 sp:arg5 spin:_arg3 614 sp:arg5 spin:_arg3
545 ] 615 ]
546 ] ; 616 ] ;
547 - sp:variable _:b18 617 + sp:variable _:b12
548 ]) 618 ])
549 ] . 619 ] .
550 620
...@@ -556,7 +626,7 @@ ep-dpr-spin-lib:buildTemporalPartOfShipURI ...@@ -556,7 +626,7 @@ ep-dpr-spin-lib:buildTemporalPartOfShipURI
556 rdfs:comment """arg1 is name of ship 626 rdfs:comment """arg1 is name of ship
557 arg2 is start date 627 arg2 is start date
558 arg3 is end date"""^^xsd:string ; 628 arg3 is end date"""^^xsd:string ;
559 - sp:resultVariables (_:b19) ; 629 + sp:resultVariables (_:b13) ;
560 sp:where ([ rdf:type sp:Bind ; 630 sp:where ([ rdf:type sp:Bind ;
561 sp:expression 631 sp:expression
562 [ rdf:type ep-spin-lib:buildURI ; 632 [ rdf:type ep-spin-lib:buildURI ;
...@@ -571,7 +641,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -571,7 +641,7 @@ arg3 is end date"""^^xsd:string ;
571 sp:arg5 spin:_arg3 641 sp:arg5 spin:_arg3
572 ] 642 ]
573 ] ; 643 ] ;
574 - sp:variable _:b19 644 + sp:variable _:b13
575 ]) 645 ])
576 ] . 646 ] .
577 647
...@@ -877,75 +947,7 @@ ep-dpr-spin-lib:selectAreaScale ...@@ -877,75 +947,7 @@ ep-dpr-spin-lib:selectAreaScale
877 947
878 ep-dpr-spin-lib:selectCrewCountRelationshipType 948 ep-dpr-spin-lib:selectCrewCountRelationshipType
879 rdf:type spin:Function ; 949 rdf:type spin:Function ;
880 - rdfs:subClassOf ep-dpr-spin-lib:Function ; 950 + rdfs:subClassOf ep-dpr-spin-lib:Function .
881 - spin:body
882 - [ rdf:type sp:Select ;
883 - sp:resultVariables ([ sp:varName "crewCountRelationshipType"^^xsd:string
884 - ]) ;
885 - sp:where ([ rdf:type sp:Bind ;
886 - sp:expression
887 - [ rdf:type sp:if ;
888 - sp:arg1 [ rdf:type sp:eq ;
889 - sp:arg1 spin:_arg1 ;
890 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_cateringcrew>
891 - ] ;
892 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfCateringCrew> ;
893 - sp:arg3 [ rdf:type sp:if ;
894 - sp:arg1 [ rdf:type sp:eq ;
895 - sp:arg1 spin:_arg1 ;
896 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_contractorcrew>
897 - ] ;
898 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfContractorCrew> ;
899 - sp:arg3 [ rdf:type sp:if ;
900 - sp:arg1 [ rdf:type sp:eq ;
901 - sp:arg1 spin:_arg1 ;
902 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_dayvisitors>
903 - ] ;
904 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfDayVisitors> ;
905 - sp:arg3 [ rdf:type sp:if ;
906 - sp:arg1 [ rdf:type sp:eq ;
907 - sp:arg1 spin:_arg1 ;
908 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_drillingcontractcrew>
909 - ] ;
910 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfDrillingContractCrew> ;
911 - sp:arg3 [ rdf:type sp:if ;
912 - sp:arg1 [ rdf:type sp:eq ;
913 - sp:arg1 spin:_arg1 ;
914 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_owncrew>
915 - ] ;
916 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnCrew> ;
917 - sp:arg3 [ rdf:type sp:if ;
918 - sp:arg1 [ rdf:type sp:eq ;
919 - sp:arg1 spin:_arg1 ;
920 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_ownothercrew>
921 - ] ;
922 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnOtherCrew> ;
923 - sp:arg3 [ rdf:type sp:if ;
924 - sp:arg1 [ rdf:type sp:eq ;
925 - sp:arg1 spin:_arg1 ;
926 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_othercrew>
927 - ] ;
928 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOtherCrew> ;
929 - sp:arg3 [ rdf:type sp:if ;
930 - sp:arg1 [ rdf:type sp:eq ;
931 - sp:arg1 spin:_arg1 ;
932 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_personnelonboard>
933 - ] ;
934 - sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfPersonnelOnBoard> ;
935 - sp:arg3 <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
936 - ]
937 - ]
938 - ]
939 - ]
940 - ]
941 - ]
942 - ]
943 - ] ;
944 - sp:variable
945 - [ sp:varName "crewCountRelationshipType"^^xsd:string
946 - ]
947 - ])
948 - ] .
949 951
950 ep-dpr-spin-lib:selectDensityAtStandardTemperaturePressureType 952 ep-dpr-spin-lib:selectDensityAtStandardTemperaturePressureType
951 rdf:type spin:Function ; 953 rdf:type spin:Function ;
...@@ -991,7 +993,7 @@ ep-dpr-spin-lib:selectDensityScale ...@@ -991,7 +993,7 @@ ep-dpr-spin-lib:selectDensityScale
991 rdfs:subClassOf ep-dpr-spin-lib:Function ; 993 rdfs:subClassOf ep-dpr-spin-lib:Function ;
992 spin:body 994 spin:body
993 [ rdf:type sp:Select ; 995 [ rdf:type sp:Select ;
994 - sp:resultVariables (_:b20) ; 996 + sp:resultVariables (_:b14) ;
995 sp:where ([ rdf:type sp:Bind ; 997 sp:where ([ rdf:type sp:Bind ;
996 sp:expression 998 sp:expression
997 [ rdf:type sp:if ; 999 [ rdf:type sp:if ;
...@@ -1198,7 +1200,7 @@ ep-dpr-spin-lib:selectDensityScale ...@@ -1198,7 +1200,7 @@ ep-dpr-spin-lib:selectDensityScale
1198 ] 1200 ]
1199 ] 1201 ]
1200 ] ; 1202 ] ;
1201 - sp:variable _:b20 1203 + sp:variable _:b14
1202 ]) 1204 ])
1203 ] . 1205 ] .
1204 1206
...@@ -4342,7 +4344,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType ...@@ -4342,7 +4344,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
4342 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4344 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4343 spin:body 4345 spin:body
4344 [ rdf:type sp:Select ; 4346 [ rdf:type sp:Select ;
4345 - sp:resultVariables (_:b21) ; 4347 + sp:resultVariables (_:b15) ;
4346 sp:where ([ rdf:type sp:Bind ; 4348 sp:where ([ rdf:type sp:Bind ;
4347 sp:expression 4349 sp:expression
4348 [ rdf:type sp:if ; 4350 [ rdf:type sp:if ;
...@@ -4416,7 +4418,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType ...@@ -4416,7 +4418,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
4416 ] 4418 ]
4417 ] 4419 ]
4418 ] ; 4420 ] ;
4419 - sp:variable _:b21 4421 + sp:variable _:b15
4420 ]) 4422 ])
4421 ] . 4423 ] .
4422 4424
...@@ -4584,7 +4586,7 @@ ep-dpr-spin-lib:selectProductionFacilityType ...@@ -4584,7 +4586,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
4584 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4586 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4585 spin:body 4587 spin:body
4586 [ rdf:type sp:Select ; 4588 [ rdf:type sp:Select ;
4587 - sp:resultVariables (_:b22) ; 4589 + sp:resultVariables (_:b16) ;
4588 sp:where ([ rdf:type sp:Bind ; 4590 sp:where ([ rdf:type sp:Bind ;
4589 sp:expression 4591 sp:expression
4590 [ rdf:type sp:if ; 4592 [ rdf:type sp:if ;
...@@ -4763,7 +4765,7 @@ ep-dpr-spin-lib:selectProductionFacilityType ...@@ -4763,7 +4765,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
4763 ] 4765 ]
4764 ] 4766 ]
4765 ] ; 4767 ] ;
4766 - sp:variable _:b22 4768 + sp:variable _:b16
4767 ]) 4769 ])
4768 ] . 4770 ] .
4769 4771
...@@ -4773,7 +4775,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType ...@@ -4773,7 +4775,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
4773 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4775 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4774 spin:body 4776 spin:body
4775 [ rdf:type sp:Select ; 4777 [ rdf:type sp:Select ;
4776 - sp:resultVariables (_:b23) ; 4778 + sp:resultVariables (_:b17) ;
4777 sp:where ([ rdf:type sp:Bind ; 4779 sp:where ([ rdf:type sp:Bind ;
4778 sp:expression 4780 sp:expression
4779 [ rdf:type sp:if ; 4781 [ rdf:type sp:if ;
...@@ -4833,7 +4835,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType ...@@ -4833,7 +4835,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
4833 ] 4835 ]
4834 ] 4836 ]
4835 ] ; 4837 ] ;
4836 - sp:variable _:b23 4838 + sp:variable _:b17
4837 ]) 4839 ])
4838 ] . 4840 ] .
4839 4841
...@@ -4843,7 +4845,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ...@@ -4843,7 +4845,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
4843 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4845 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4844 spin:body 4846 spin:body
4845 [ rdf:type sp:Select ; 4847 [ rdf:type sp:Select ;
4846 - sp:resultVariables (_:b24) ; 4848 + sp:resultVariables (_:b18) ;
4847 sp:where ([ rdf:type sp:Bind ; 4849 sp:where ([ rdf:type sp:Bind ;
4848 sp:expression 4850 sp:expression
4849 [ rdf:type sp:if ; 4851 [ rdf:type sp:if ;
...@@ -4861,7 +4863,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ...@@ -4861,7 +4863,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
4861 sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> 4863 sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
4862 ] 4864 ]
4863 ] ; 4865 ] ;
4864 - sp:variable _:b24 4866 + sp:variable _:b18
4865 ]) 4867 ])
4866 ] . 4868 ] .
4867 4869
...@@ -4871,7 +4873,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ...@@ -4871,7 +4873,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
4871 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4873 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4872 spin:body 4874 spin:body
4873 [ rdf:type sp:Select ; 4875 [ rdf:type sp:Select ;
4874 - sp:resultVariables (_:b25) ; 4876 + sp:resultVariables (_:b19) ;
4875 sp:where ([ rdf:type sp:Bind ; 4877 sp:where ([ rdf:type sp:Bind ;
4876 sp:expression 4878 sp:expression
4877 [ rdf:type sp:if ; 4879 [ rdf:type sp:if ;
...@@ -4889,7 +4891,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ...@@ -4889,7 +4891,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
4889 sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> 4891 sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
4890 ] 4892 ]
4891 ] ; 4893 ] ;
4892 - sp:variable _:b25 4894 + sp:variable _:b19
4893 ]) 4895 ])
4894 ] . 4896 ] .
4895 4897
...@@ -4899,7 +4901,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType ...@@ -4899,7 +4901,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
4899 rdfs:subClassOf ep-dpr-spin-lib:Function ; 4901 rdfs:subClassOf ep-dpr-spin-lib:Function ;
4900 spin:body 4902 spin:body
4901 [ rdf:type sp:Select ; 4903 [ rdf:type sp:Select ;
4902 - sp:resultVariables (_:b26) ; 4904 + sp:resultVariables (_:b20) ;
4903 sp:where ([ rdf:type sp:Bind ; 4905 sp:where ([ rdf:type sp:Bind ;
4904 sp:expression 4906 sp:expression
4905 [ rdf:type sp:if ; 4907 [ rdf:type sp:if ;
...@@ -5050,7 +5052,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType ...@@ -5050,7 +5052,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
5050 ] 5052 ]
5051 ] 5053 ]
5052 ] ; 5054 ] ;
5053 - sp:variable _:b26 5055 + sp:variable _:b20
5054 ]) 5056 ])
5055 ] . 5057 ] .
5056 5058
...@@ -5239,7 +5241,7 @@ ep-dpr-spin-lib:selectSafetyActivityType ...@@ -5239,7 +5241,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
5239 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5241 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5240 spin:body 5242 spin:body
5241 [ rdf:type sp:Select ; 5243 [ rdf:type sp:Select ;
5242 - sp:resultVariables (_:b27) ; 5244 + sp:resultVariables (_:b21) ;
5243 sp:where ([ rdf:type sp:Bind ; 5245 sp:where ([ rdf:type sp:Bind ;
5244 sp:expression 5246 sp:expression
5245 [ rdf:type sp:if ; 5247 [ rdf:type sp:if ;
...@@ -5383,7 +5385,7 @@ ep-dpr-spin-lib:selectSafetyActivityType ...@@ -5383,7 +5385,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
5383 ] 5385 ]
5384 ] 5386 ]
5385 ] ; 5387 ] ;
5386 - sp:variable _:b27 5388 + sp:variable _:b21
5387 ]) 5389 ])
5388 ] . 5390 ] .
5389 5391
...@@ -5564,22 +5566,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5564,22 +5566,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5564 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5566 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5565 spin:body 5567 spin:body
5566 [ rdf:type sp:Select ; 5568 [ rdf:type sp:Select ;
5567 - sp:resultVariables (_:b28) ;
5568 - sp:where ([ rdf:type sp:Bind ;
5569 - sp:expression
5570 - [ rdf:type sp:if ;
5571 - sp:arg1 [ rdf:type sp:eq ;
5572 - sp:arg1 spin:_arg1 ;
5573 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5574 - ] ;
5575 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5576 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5577 - ] ;
5578 - sp:variable _:b28
5579 - ])
5580 - ] ;
5581 - spin:body
5582 - [ rdf:type sp:Select ;
5583 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5569 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5584 ]) ; 5570 ]) ;
5585 sp:where ([ rdf:type sp:Bind ; 5571 sp:where ([ rdf:type sp:Bind ;
...@@ -5659,6 +5645,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5659,6 +5645,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5659 [ sp:varName "myVar"^^xsd:string 5645 [ sp:varName "myVar"^^xsd:string
5660 ] 5646 ]
5661 ]) 5647 ])
5648 + ] ;
5649 + spin:body
5650 + [ rdf:type sp:Select ;
5651 + sp:resultVariables (_:b22) ;
5652 + sp:where ([ rdf:type sp:Bind ;
5653 + sp:expression
5654 + [ rdf:type sp:if ;
5655 + sp:arg1 [ rdf:type sp:eq ;
5656 + sp:arg1 spin:_arg1 ;
5657 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5658 + ] ;
5659 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5660 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5661 + ] ;
5662 + sp:variable _:b22
5663 + ])
5662 ] . 5664 ] .
5663 5665
5664 ep-dpr-spin-lib:selectTemperatureScale 5666 ep-dpr-spin-lib:selectTemperatureScale
...@@ -6050,7 +6052,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType ...@@ -6050,7 +6052,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
6050 rdfs:subClassOf ep-dpr-spin-lib:Function ; 6052 rdfs:subClassOf ep-dpr-spin-lib:Function ;
6051 spin:body 6053 spin:body
6052 [ rdf:type sp:Select ; 6054 [ rdf:type sp:Select ;
6053 - sp:resultVariables (_:b29) ; 6055 + sp:resultVariables (_:b23) ;
6054 sp:where ([ rdf:type sp:Bind ; 6056 sp:where ([ rdf:type sp:Bind ;
6055 sp:expression 6057 sp:expression
6056 [ rdf:type sp:if ; 6058 [ rdf:type sp:if ;
...@@ -6075,7 +6077,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType ...@@ -6075,7 +6077,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
6075 ] 6077 ]
6076 ] 6078 ]
6077 ] ; 6079 ] ;
6078 - sp:variable _:b29 6080 + sp:variable _:b23
6079 ]) 6081 ])
6080 ] . 6082 ] .
6081 6083
...@@ -7193,80 +7195,62 @@ ep-dpr-spin-lib:selectWorkScale ...@@ -7193,80 +7195,62 @@ ep-dpr-spin-lib:selectWorkScale
7193 ]) 7195 ])
7194 ] . 7196 ] .
7195 7197
7196 -_:b29 7198 +_:b1 sp:varName "uri"^^xsd:string .
7197 - sp:varName "volumeFlowRateAtStdType"^^xsd:string .
7198 -
7199 -_:b28
7200 - sp:varName "specificVolumeScale"^^xsd:string .
7201 -
7202 -_:b27
7203 - sp:varName "safetyActivityType"^^xsd:string .
7204 -
7205 -_:b26
7206 - sp:varName "productionFlowPurposeType"^^xsd:string .
7207 -
7208 -_:b25
7209 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7210 -
7211 -_:b24
7212 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7213 -
7214 -_:b23
7215 - sp:varName "productionFlowDefinitionType"^^xsd:string .
7216 7199
7217 -_:b22 7200 +_:b2 sp:varName "UUID"^^xsd:string .
7218 - sp:varName "productionFacilityType"^^xsd:string .
7219 7201
7220 -_:b21 7202 +_:b3 sp:varName "uri"^^xsd:string .
7221 - sp:varName "productVolumeReportPeriodType"^^xsd:string .
7222 7203
7223 -_:b20 7204 +_:b4 sp:varName "uri"^^xsd:string .
7224 - sp:varName "densityScale"^^xsd:string .
7225 7205
7226 -_:b19 7206 +_:b5 sp:varName "uri"^^xsd:string .
7227 - sp:varName "uri"^^xsd:string .
7228 7207
7229 -_:b18 7208 +_:b6 sp:varName "uri"^^xsd:string .
7230 - sp:varName "uri"^^xsd:string .
7231 7209
7232 -_:b17 7210 +_:b7 sp:varName "uri"^^xsd:string .
7233 - sp:varName "uri"^^xsd:string .
7234 7211
7235 -_:b16 7212 +_:b8 sp:varName "uri"^^xsd:string .
7236 - sp:varName "uri"^^xsd:string .
7237 7213
7238 -_:b15 7214 +_:b9 sp:varName "uri"^^xsd:string .
7239 - sp:varName "uri"^^xsd:string .
7240 7215
7241 -_:b14 7216 +_:b10
7242 sp:varName "uri"^^xsd:string . 7217 sp:varName "uri"^^xsd:string .
7243 7218
7244 -_:b13 7219 +_:b11
7245 sp:varName "uri"^^xsd:string . 7220 sp:varName "uri"^^xsd:string .
7246 7221
7247 _:b12 7222 _:b12
7248 sp:varName "uri"^^xsd:string . 7223 sp:varName "uri"^^xsd:string .
7249 7224
7250 -_:b11 7225 +_:b13
7251 sp:varName "uri"^^xsd:string . 7226 sp:varName "uri"^^xsd:string .
7252 7227
7253 -_:b10 7228 +_:b14
7254 - sp:varName "uri"^^xsd:string . 7229 + sp:varName "densityScale"^^xsd:string .
7255 7230
7256 -_:b9 sp:varName "uri"^^xsd:string . 7231 +_:b15
7232 + sp:varName "productVolumeReportPeriodType"^^xsd:string .
7257 7233
7258 -_:b8 sp:varName "uri"^^xsd:string . 7234 +_:b16
7235 + sp:varName "productionFacilityType"^^xsd:string .
7259 7236
7260 -_:b7 sp:varName "uri"^^xsd:string . 7237 +_:b17
7238 + sp:varName "productionFlowDefinitionType"^^xsd:string .
7261 7239
7262 -_:b6 sp:varName "uri"^^xsd:string . 7240 +_:b18
7241 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7263 7242
7264 -_:b5 sp:varName "uri"^^xsd:string . 7243 +_:b19
7244 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7265 7245
7266 -_:b4 sp:varName "uri"^^xsd:string . 7246 +_:b20
7247 + sp:varName "productionFlowPurposeType"^^xsd:string .
7267 7248
7268 -_:b3 sp:varName "uri"^^xsd:string . 7249 +_:b21
7250 + sp:varName "safetyActivityType"^^xsd:string .
7269 7251
7270 -_:b2 sp:varName "UUID"^^xsd:string . 7252 +_:b22
7253 + sp:varName "specificVolumeScale"^^xsd:string .
7271 7254
7272 -_:b1 sp:varName "uri"^^xsd:string . 7255 +_:b23
7256 + sp:varName "volumeFlowRateAtStdType"^^xsd:string .
......
...@@ -90,7 +90,7 @@ ep-mpr-spin-lib:buildPersonRoleTypeURI ...@@ -90,7 +90,7 @@ ep-mpr-spin-lib:buildPersonRoleTypeURI
90 sp:expression 90 sp:expression
91 [ rdf:type ep-spin-lib:buildURI ; 91 [ rdf:type ep-spin-lib:buildURI ;
92 sp:arg1 "https://www.reportinghub.no/ep/data/personRoleType/" ; 92 sp:arg1 "https://www.reportinghub.no/ep/data/personRoleType/" ;
93 - sp:arg2 [ rdf:type fn:concat ; 93 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
94 sp:arg1 spin:_arg1 94 sp:arg1 spin:_arg1
95 ] 95 ]
96 ] ; 96 ] ;
...@@ -114,9 +114,13 @@ arg2 is the interval identifier"""^^xsd:string ; ...@@ -114,9 +114,13 @@ arg2 is the interval identifier"""^^xsd:string ;
114 [ rdf:type ep-spin-lib:buildURI ; 114 [ rdf:type ep-spin-lib:buildURI ;
115 sp:arg1 "https://www.reportinghub.no/ep/data/productionReport/" ; 115 sp:arg1 "https://www.reportinghub.no/ep/data/productionReport/" ;
116 sp:arg2 [ rdf:type fn:concat ; 116 sp:arg2 [ rdf:type fn:concat ;
117 - sp:arg1 spin:_arg1 ; 117 + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
118 + sp:arg1 spin:_arg1
119 + ] ;
118 sp:arg2 "$" ; 120 sp:arg2 "$" ;
119 - sp:arg3 spin:_arg2 121 + sp:arg3 [ rdf:type ep-spin-lib:normalizeString ;
122 + sp:arg1 spin:_arg2
123 + ]
120 ] 124 ]
121 ] ; 125 ] ;
122 sp:variable 126 sp:variable
......
...@@ -3,11 +3,13 @@ ...@@ -3,11 +3,13 @@
3 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults 3 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults
4 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults 4 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults
5 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest 5 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest
6 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
6 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 7 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
7 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 8 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1
8 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 9 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
9 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1 10 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1
10 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1 11 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1
12 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1
11 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1 13 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
12 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 14 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
13 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 15 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
...@@ -16,11 +18,13 @@ ...@@ -16,11 +18,13 @@
16 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 18 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
17 19
18 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . 20 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
21 +@prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> .
19 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . 22 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
20 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . 23 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
21 @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . 24 @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
22 @prefix TRANSFORM_mpr-geographicContext-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1#> . 25 @prefix TRANSFORM_mpr-geographicContext-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1#> .
23 @prefix TRANSFORM_mpr-installationReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1#> . 26 @prefix TRANSFORM_mpr-installationReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1#> .
27 +@prefix TRANSFORM_mpr-operationalHSEReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1#> .
24 @prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . 28 @prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
25 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . 29 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
26 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . 30 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
...@@ -44,5 +48,5 @@ ...@@ -44,5 +48,5 @@
44 48
45 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> 49 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
46 rdf:type owl:Ontology ; 50 rdf:type owl:Ontology ;
47 - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ; 51 + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ;
48 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 1 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.epim.no/schemas/mprml/1 3 # imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 5 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
5 # imports: http://www.reportinghub.no/ep/schema/1.0/core 6 # imports: http://www.reportinghub.no/ep/schema/1.0/core
6 # imports: http://www.reportinghub.no/ep/schema/1.0/flow 7 # imports: http://www.reportinghub.no/ep/schema/1.0/flow
7 # imports: http://www.reportinghub.no/ep/schema/1.0/material 8 # imports: http://www.reportinghub.no/ep/schema/1.0/material
8 9
9 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . 10 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> .
11 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
10 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . 12 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
11 @prefix owl: <http://www.w3.org/2002/07/owl#> . 13 @prefix owl: <http://www.w3.org/2002/07/owl#> .
12 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 14 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
...@@ -19,31 +21,30 @@ ...@@ -19,31 +21,30 @@
19 <http://www.epim.no/schemas/mprml/1#Cs_datedComment> 21 <http://www.epim.no/schemas/mprml/1#Cs_datedComment>
20 spin:rule 22 spin:rule
21 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
22 - rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ; 24 + rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ;
23 sp:templates ([ sp:object _:b1 ; 25 sp:templates ([ sp:object _:b1 ;
24 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 26 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
25 sp:subject 27 sp:subject
26 - [ sp:varName "commentingActivity"^^xsd:string 28 + [ sp:varName "commentator"^^xsd:string
27 ] 29 ]
28 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Person> ;
29 - sp:predicate rdf:type ;
30 - sp:subject _:b1
31 - ] [ sp:object _:b2 ;
32 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
33 - sp:subject _:b1
34 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ; 30 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
35 sp:predicate rdf:type ; 31 sp:predicate rdf:type ;
36 - sp:subject _:b2 32 + sp:subject _:b1
37 ] [ sp:object 33 ] [ sp:object
38 [ sp:varName "personRoleType"^^xsd:string 34 [ sp:varName "personRoleType"^^xsd:string
39 ] ; 35 ] ;
40 sp:predicate rdf:type ; 36 sp:predicate rdf:type ;
41 - sp:subject _:b2 37 + sp:subject _:b1
42 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRoleType> ; 38 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRoleType> ;
43 sp:predicate rdf:type ; 39 sp:predicate rdf:type ;
44 sp:subject 40 sp:subject
45 [ sp:varName "personRoleType"^^xsd:string 41 [ sp:varName "personRoleType"^^xsd:string
46 ] 42 ]
43 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
44 + sp:predicate rdfs:subClassOf ;
45 + sp:subject
46 + [ sp:varName "personRoleType"^^xsd:string
47 + ]
47 ] [ sp:object 48 ] [ sp:object
48 [ sp:varName "role"^^xsd:string 49 [ sp:varName "role"^^xsd:string
49 ] ; 50 ] ;
...@@ -57,15 +58,13 @@ ...@@ -57,15 +58,13 @@
57 sp:subject 58 sp:subject
58 [ sp:varName "commentingActivity"^^xsd:string 59 [ sp:varName "commentingActivity"^^xsd:string
59 ] 60 ]
60 - ] [ rdf:type sp:NotExists ; 61 + ] [ sp:object
61 - sp:elements ([ sp:object 62 + [ sp:varName "commentator"^^xsd:string
62 - [ sp:varName "commentator"^^xsd:string 63 + ] ;
63 - ] ; 64 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
64 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 65 + sp:subject
65 - sp:subject 66 + [ sp:varName "commentingActivity"^^xsd:string
66 - [ sp:varName "commentingActivity"^^xsd:string 67 + ]
67 - ]
68 - ])
69 ] [ sp:object 68 ] [ sp:object
70 [ sp:varName "role"^^xsd:string 69 [ sp:varName "role"^^xsd:string
71 ] ; 70 ] ;
...@@ -84,12 +83,18 @@ ...@@ -84,12 +83,18 @@
84 ] ; 83 ] ;
85 spin:rule 84 spin:rule
86 [ rdf:type sp:Construct ; 85 [ rdf:type sp:Construct ;
87 - rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ; 86 + rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ;
88 - sp:templates ([ sp:object _:b3 ; 87 + sp:templates ([ sp:object _:b2 ;
89 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 88 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
90 sp:subject 89 sp:subject
91 - [ sp:varName "commentator"^^xsd:string 90 + [ sp:varName "commentingActivity"^^xsd:string
92 ] 91 ]
92 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Person> ;
93 + sp:predicate rdf:type ;
94 + sp:subject _:b2
95 + ] [ sp:object _:b3 ;
96 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
97 + sp:subject _:b2
93 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ; 98 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
94 sp:predicate rdf:type ; 99 sp:predicate rdf:type ;
95 sp:subject _:b3 100 sp:subject _:b3
...@@ -103,6 +108,11 @@ ...@@ -103,6 +108,11 @@
103 sp:subject 108 sp:subject
104 [ sp:varName "personRoleType"^^xsd:string 109 [ sp:varName "personRoleType"^^xsd:string
105 ] 110 ]
111 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
112 + sp:predicate rdfs:subClassOf ;
113 + sp:subject
114 + [ sp:varName "personRoleType"^^xsd:string
115 + ]
106 ] [ sp:object 116 ] [ sp:object
107 [ sp:varName "role"^^xsd:string 117 [ sp:varName "role"^^xsd:string
108 ] ; 118 ] ;
...@@ -116,13 +126,15 @@ ...@@ -116,13 +126,15 @@
116 sp:subject 126 sp:subject
117 [ sp:varName "commentingActivity"^^xsd:string 127 [ sp:varName "commentingActivity"^^xsd:string
118 ] 128 ]
119 - ] [ sp:object 129 + ] [ rdf:type sp:NotExists ;
120 - [ sp:varName "commentator"^^xsd:string 130 + sp:elements ([ sp:object
121 - ] ; 131 + [ sp:varName "commentator"^^xsd:string
122 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ; 132 + ] ;
123 - sp:subject 133 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
124 - [ sp:varName "commentingActivity"^^xsd:string 134 + sp:subject
125 - ] 135 + [ sp:varName "commentingActivity"^^xsd:string
136 + ]
137 + ])
126 ] [ sp:object 138 ] [ sp:object
127 [ sp:varName "role"^^xsd:string 139 [ sp:varName "role"^^xsd:string
128 ] ; 140 ] ;
...@@ -141,43 +153,8 @@ ...@@ -141,43 +153,8 @@
141 ] ; 153 ] ;
142 spin:rule 154 spin:rule
143 [ rdf:type sp:Construct ; 155 [ rdf:type sp:Construct ;
144 - rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ;
145 - sp:templates ([ sp:object _:b4 ;
146 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
147 - sp:subject
148 - [ sp:varName "commentingActivity"^^xsd:string
149 - ]
150 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Person> ;
151 - sp:predicate rdf:type ;
152 - sp:subject _:b4
153 - ] [ sp:object _:b5 ;
154 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
155 - sp:subject _:b4
156 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#WholeLifePerson> ;
157 - sp:predicate rdf:type ;
158 - sp:subject _:b5
159 - ] [ sp:object
160 - [ sp:varName "who"^^xsd:string
161 - ] ;
162 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
163 - sp:subject _:b5
164 - ]) ;
165 - sp:where ([ sp:object spin:_this ;
166 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
167 - sp:subject
168 - [ sp:varName "commentingActivity"^^xsd:string
169 - ]
170 - ] [ sp:object
171 - [ sp:varName "who"^^xsd:string
172 - ] ;
173 - sp:predicate <http://www.epim.no/schemas/mprml/1#who> ;
174 - sp:subject spin:_this
175 - ])
176 - ] ;
177 - spin:rule
178 - [ rdf:type sp:Construct ;
179 rdfs:comment "STEP 90200 Create the commenting activity"^^xsd:string ; 156 rdfs:comment "STEP 90200 Create the commenting activity"^^xsd:string ;
180 - sp:templates ([ sp:object _:b6 ; 157 + sp:templates ([ sp:object _:b4 ;
181 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 158 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
182 sp:subject 159 sp:subject
183 [ sp:varName "activityForComment"^^xsd:string 160 [ sp:varName "activityForComment"^^xsd:string
...@@ -186,31 +163,31 @@ ...@@ -186,31 +163,31 @@
186 [ sp:varName "typeOfPartCommentedOn"^^xsd:string 163 [ sp:varName "typeOfPartCommentedOn"^^xsd:string
187 ] ; 164 ] ;
188 sp:predicate rdf:type ; 165 sp:predicate rdf:type ;
189 - sp:subject _:b6 166 + sp:subject _:b4
190 ] [ sp:object 167 ] [ sp:object
191 [ sp:varName "dTimStart"^^xsd:string 168 [ sp:varName "dTimStart"^^xsd:string
192 ] ; 169 ] ;
193 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 170 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
194 - sp:subject _:b6 171 + sp:subject _:b4
195 ] [ sp:object 172 ] [ sp:object
196 [ sp:varName "dTimEnd"^^xsd:string 173 [ sp:varName "dTimEnd"^^xsd:string
197 ] ; 174 ] ;
198 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 175 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
199 - sp:subject _:b6 176 + sp:subject _:b4
200 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MakeAComment> ; 177 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MakeAComment> ;
201 sp:predicate rdf:type ; 178 sp:predicate rdf:type ;
202 - sp:subject _:b7 179 + sp:subject _:b5
203 - ] [ sp:object _:b6 ; 180 + ] [ sp:object _:b4 ;
204 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ; 181 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
205 - sp:subject _:b7 182 + sp:subject _:b5
206 ] [ sp:object 183 ] [ sp:object
207 [ sp:varName "remark"^^xsd:string 184 [ sp:varName "remark"^^xsd:string
208 ] ; 185 ] ;
209 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ; 186 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ;
210 - sp:subject _:b7 187 + sp:subject _:b5
211 ] [ sp:object spin:_this ; 188 ] [ sp:object spin:_this ;
212 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 189 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
213 - sp:subject _:b7 190 + sp:subject _:b5
214 ]) ; 191 ]) ;
215 sp:where ([ sp:object spin:_this ; 192 sp:where ([ sp:object spin:_this ;
216 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ; 193 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
...@@ -242,9 +219,59 @@ ...@@ -242,9 +219,59 @@
242 sp:predicate <http://www.epim.no/schemas/mprml/1#remark> ; 219 sp:predicate <http://www.epim.no/schemas/mprml/1#remark> ;
243 sp:subject spin:_this 220 sp:subject spin:_this
244 ]) 221 ])
222 + ] ;
223 + spin:rule
224 + [ rdf:type sp:Construct ;
225 + rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ;
226 + sp:templates ([ sp:object _:b6 ;
227 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
228 + sp:subject
229 + [ sp:varName "commentingActivity"^^xsd:string
230 + ]
231 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Person> ;
232 + sp:predicate rdf:type ;
233 + sp:subject _:b6
234 + ] [ sp:object
235 + [ sp:varName "person"^^xsd:string
236 + ] ;
237 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
238 + sp:subject _:b6
239 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#WholeLifePerson> ;
240 + sp:predicate rdf:type ;
241 + sp:subject
242 + [ sp:varName "person"^^xsd:string
243 + ]
244 + ] [ sp:object
245 + [ sp:varName "who"^^xsd:string
246 + ] ;
247 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
248 + sp:subject
249 + [ sp:varName "person"^^xsd:string
250 + ]
251 + ]) ;
252 + sp:where ([ sp:object spin:_this ;
253 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
254 + sp:subject
255 + [ sp:varName "commentingActivity"^^xsd:string
256 + ]
257 + ] [ sp:object
258 + [ sp:varName "who"^^xsd:string
259 + ] ;
260 + sp:predicate <http://www.epim.no/schemas/mprml/1#who> ;
261 + sp:subject spin:_this
262 + ] [ rdf:type sp:Bind ;
263 + sp:expression
264 + [ rdf:type ep-dpr-spin-lib:buildPersonURI ;
265 + sp:arg1 [ sp:varName "who"^^xsd:string
266 + ]
267 + ] ;
268 + sp:variable
269 + [ sp:varName "person"^^xsd:string
270 + ]
271 + ])
245 ] . 272 ] .
246 273
247 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> 274 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1>
248 rdf:type owl:Ontology ; 275 rdf:type owl:Ontology ;
249 - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; 276 + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
250 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 277 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -21,56 +21,22 @@ ...@@ -21,56 +21,22 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 40305 Set the time since most recent defined hazard and accident situation"^^xsd:string ; 24 + rdfs:comment "STEP 40302 Set the safety consideration description"^^xsd:string ;
25 sp:templates ([ sp:object _:b1 ; 25 sp:templates ([ sp:object _:b1 ;
26 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ; 26 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
27 sp:subject 27 sp:subject
28 [ sp:varName "productionOperation"^^xsd:string 28 [ sp:varName "productionOperation"^^xsd:string
29 ] 29 ]
30 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ; 30 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ;
31 sp:predicate rdf:type ; 31 sp:predicate rdf:type ;
32 sp:subject _:b1 32 sp:subject _:b1
33 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#DefinedHazardAndAccidentSituation> ;
34 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
35 - sp:subject _:b1
36 - ] [ sp:object _:b2 ;
37 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
38 - sp:subject _:b1
39 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
40 - sp:predicate rdf:type ;
41 - sp:subject _:b2
42 - ] [ sp:object _:b3 ;
43 - sp:predicate rdf:type ;
44 - sp:subject _:b2
45 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
46 - sp:predicate rdf:type ;
47 - sp:subject _:b3
48 ] [ sp:object 33 ] [ sp:object
49 - [ sp:varName "realDefinedSituation"^^xsd:string 34 + [ sp:varName "safetyDescription"^^xsd:string
50 - ] ;
51 - sp:predicate
52 - [ sp:varName "sinceDefinedSituationScale"^^xsd:string
53 ] ; 35 ] ;
54 - sp:subject _:b3 36 + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
37 + sp:subject _:b1
55 ]) ; 38 ]) ;
56 - sp:where ([ sp:object spin:_this ; 39 + sp:where ([ sp:object
57 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
58 - sp:subject
59 - [ sp:varName "productionReport"^^xsd:string
60 - ]
61 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
62 - sp:predicate rdf:type ;
63 - sp:subject
64 - [ sp:varName "productionOperationReport"^^xsd:string
65 - ]
66 - ] [ sp:object
67 - [ sp:varName "productionReport"^^xsd:string
68 - ] ;
69 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
70 - sp:subject
71 - [ sp:varName "productionOperationReport"^^xsd:string
72 - ]
73 - ] [ sp:object
74 [ sp:varName "productionOperationRef"^^xsd:string 40 [ sp:varName "productionOperationRef"^^xsd:string
75 ] ; 41 ] ;
76 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 42 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -112,83 +78,49 @@ ...@@ -112,83 +78,49 @@
112 [ sp:varName "productionOperation"^^xsd:string 78 [ sp:varName "productionOperation"^^xsd:string
113 ] 79 ]
114 ] [ sp:object 80 ] [ sp:object
115 - [ sp:varName "sinceDefinedSituationRef"^^xsd:string 81 + [ sp:varName "safetyDescription"^^xsd:string
116 ] ; 82 ] ;
117 - sp:predicate <http://www.epim.no/schemas/mprml/1#sinceDefinedSituationRef> ; 83 + sp:predicate <http://www.epim.no/schemas/mprml/1#safetyDescription> ;
118 sp:subject 84 sp:subject
119 [ sp:varName "operationalHSERef"^^xsd:string 85 [ sp:varName "operationalHSERef"^^xsd:string
120 ] 86 ]
121 - ] [ sp:object
122 - [ sp:varName "realSinceDefinedSituation"^^xsd:string
123 - ] ;
124 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
125 - sp:subject
126 - [ sp:varName "sinceDefinedSituationRef"^^xsd:string
127 - ]
128 - ] [ sp:object
129 - [ sp:varName "uomSinceDefinedSituation"^^xsd:string
130 - ] ;
131 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
132 - sp:subject
133 - [ sp:varName "sinceDefinedSituationRef"^^xsd:string
134 - ]
135 - ] [ rdf:type sp:Bind ;
136 - sp:expression
137 - [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
138 - sp:arg1 [ sp:varName "uomSinceDefinedSituation"^^xsd:string
139 - ]
140 - ] ;
141 - sp:variable
142 - [ sp:varName "sinceDefinedSituationScale"^^xsd:string
143 - ]
144 ]) 87 ])
145 ] ; 88 ] ;
146 spin:rule 89 spin:rule
147 [ rdf:type sp:Construct ; 90 [ rdf:type sp:Construct ;
148 - rdfs:comment "STEP 40309 Set the mean time between incidents"^^xsd:string ; 91 + rdfs:comment "STEP 40303 Set the time since most recent lost time accident"^^xsd:string ;
149 - sp:templates ([ sp:object _:b4 ; 92 + sp:templates ([ sp:object _:b2 ;
150 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasCompositionOfAllPartsOfDefinedType> ; 93 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
151 sp:subject 94 sp:subject
152 [ sp:varName "productionOperation"^^xsd:string 95 [ sp:varName "productionOperation"^^xsd:string
153 ] 96 ]
154 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#CompositionOfAllPartsOfDefinedType> ; 97 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
155 sp:predicate rdf:type ; 98 sp:predicate rdf:type ;
156 - sp:subject _:b4 99 + sp:subject _:b2
157 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ; 100 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LostTimeAccident> ;
158 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 101 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
159 - sp:subject _:b4 102 + sp:subject _:b2
160 - ] [ sp:object _:b5 ; 103 + ] [ sp:object _:b3 ;
161 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#meanTimeBetweenParts> ; 104 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
162 - sp:subject _:b4 105 + sp:subject _:b2
106 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
107 + sp:predicate rdf:type ;
108 + sp:subject _:b3
109 + ] [ sp:object _:b4 ;
110 + sp:predicate rdf:type ;
111 + sp:subject _:b3
163 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ; 112 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
164 sp:predicate rdf:type ; 113 sp:predicate rdf:type ;
165 - sp:subject _:b5 114 + sp:subject _:b4
166 ] [ sp:object 115 ] [ sp:object
167 - [ sp:varName "realMeantimeIncident"^^xsd:string 116 + [ sp:varName "realSinceLostTime"^^xsd:string
168 ] ; 117 ] ;
169 sp:predicate 118 sp:predicate
170 - [ sp:varName "meantimeIncidentScale"^^xsd:string 119 + [ sp:varName "sinceLostTimeScale"^^xsd:string
171 ] ; 120 ] ;
172 - sp:subject _:b5 121 + sp:subject _:b4
173 ]) ; 122 ]) ;
174 - sp:where ([ sp:object spin:_this ; 123 + sp:where ([ sp:object
175 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
176 - sp:subject
177 - [ sp:varName "productionReport"^^xsd:string
178 - ]
179 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
180 - sp:predicate rdf:type ;
181 - sp:subject
182 - [ sp:varName "productionOperationReport"^^xsd:string
183 - ]
184 - ] [ sp:object
185 - [ sp:varName "productionReport"^^xsd:string
186 - ] ;
187 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
188 - sp:subject
189 - [ sp:varName "productionOperationReport"^^xsd:string
190 - ]
191 - ] [ sp:object
192 [ sp:varName "productionOperationRef"^^xsd:string 124 [ sp:varName "productionOperationRef"^^xsd:string
193 ] ; 125 ] ;
194 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 126 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -230,89 +162,72 @@ ...@@ -230,89 +162,72 @@
230 [ sp:varName "productionOperation"^^xsd:string 162 [ sp:varName "productionOperation"^^xsd:string
231 ] 163 ]
232 ] [ sp:object 164 ] [ sp:object
233 - [ sp:varName "operationalHSERef"^^xsd:string 165 + [ sp:varName "sinceLostTimeRef"^^xsd:string
234 - ] ;
235 - sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
236 - sp:subject
237 - [ sp:varName "installationReportRef"^^xsd:string
238 - ]
239 - ] [ sp:object
240 - [ sp:varName "safetyRef"^^xsd:string
241 ] ; 166 ] ;
242 - sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ; 167 + sp:predicate <http://www.epim.no/schemas/mprml/1#sinceLostTimeRef> ;
243 sp:subject 168 sp:subject
244 [ sp:varName "operationalHSERef"^^xsd:string 169 [ sp:varName "operationalHSERef"^^xsd:string
245 ] 170 ]
246 ] [ sp:object 171 ] [ sp:object
247 - [ sp:varName "meantimeIncidentRef"^^xsd:string 172 + [ sp:varName "realSinceLostTime"^^xsd:string
248 - ] ;
249 - sp:predicate <http://www.epim.no/schemas/mprml/1#meantimeIncidentRef> ;
250 - sp:subject
251 - [ sp:varName "safetyRef"^^xsd:string
252 - ]
253 - ] [ sp:object
254 - [ sp:varName "realMeantimeIncident"^^xsd:string
255 ] ; 173 ] ;
256 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 174 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
257 sp:subject 175 sp:subject
258 - [ sp:varName "meantimeIncidentRef"^^xsd:string 176 + [ sp:varName "sinceLostTimeRef"^^xsd:string
259 ] 177 ]
260 ] [ sp:object 178 ] [ sp:object
261 - [ sp:varName "uomMeantimeIncident"^^xsd:string 179 + [ sp:varName "uomSinceLostTime"^^xsd:string
262 ] ; 180 ] ;
263 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 181 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
264 sp:subject 182 sp:subject
265 - [ sp:varName "meantimeIncidentRef"^^xsd:string 183 + [ sp:varName "sinceLostTimeRef"^^xsd:string
266 ] 184 ]
267 ] [ rdf:type sp:Bind ; 185 ] [ rdf:type sp:Bind ;
268 sp:expression 186 sp:expression
269 [ rdf:type ep-mpr-spin-lib:selectDurationScale ; 187 [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
270 - sp:arg1 [ sp:varName "uomMeantimeIncident"^^xsd:string 188 + sp:arg1 [ sp:varName "uomSinceLostTime"^^xsd:string
271 ] 189 ]
272 ] ; 190 ] ;
273 sp:variable 191 sp:variable
274 - [ sp:varName "meantimeIncidentScale"^^xsd:string 192 + [ sp:varName "sinceLostTimeScale"^^xsd:string
275 ] 193 ]
276 ]) 194 ])
277 ] ; 195 ] ;
278 spin:rule 196 spin:rule
279 [ rdf:type sp:Construct ; 197 [ rdf:type sp:Construct ;
280 - rdfs:comment "STEP 40307 Set the number of number of medical treatments"^^xsd:string ; 198 + rdfs:comment "STEP 40305 Set the time since most recent defined hazard and accident situation"^^xsd:string ;
281 - sp:templates ([ sp:object _:b6 ; 199 + sp:templates ([ sp:object _:b5 ;
282 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 200 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
283 sp:subject 201 sp:subject
284 [ sp:varName "productionOperation"^^xsd:string 202 [ sp:varName "productionOperation"^^xsd:string
285 ] 203 ]
286 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ; 204 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
287 sp:predicate rdf:type ; 205 sp:predicate rdf:type ;
288 - sp:subject _:b6 206 + sp:subject _:b5
289 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MedicalTreatment> ; 207 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#DefinedHazardAndAccidentSituation> ;
290 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 208 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
209 + sp:subject _:b5
210 + ] [ sp:object _:b6 ;
211 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
212 + sp:subject _:b5
213 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
214 + sp:predicate rdf:type ;
291 sp:subject _:b6 215 sp:subject _:b6
292 - ] [ sp:object 216 + ] [ sp:object _:b7 ;
293 - [ sp:varName "medicalTreatmentCount"^^xsd:string 217 + sp:predicate rdf:type ;
294 - ] ;
295 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
296 sp:subject _:b6 218 sp:subject _:b6
297 - ]) ; 219 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
298 - sp:where ([ sp:object spin:_this ;
299 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
300 - sp:subject
301 - [ sp:varName "productionReport"^^xsd:string
302 - ]
303 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
304 sp:predicate rdf:type ; 220 sp:predicate rdf:type ;
305 - sp:subject 221 + sp:subject _:b7
306 - [ sp:varName "productionOperationReport"^^xsd:string
307 - ]
308 ] [ sp:object 222 ] [ sp:object
309 - [ sp:varName "productionReport"^^xsd:string 223 + [ sp:varName "realSinceDefinedSituation"^^xsd:string
310 ] ; 224 ] ;
311 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 225 + sp:predicate
312 - sp:subject 226 + [ sp:varName "sinceDefinedSituationScale"^^xsd:string
313 - [ sp:varName "productionOperationReport"^^xsd:string 227 + ] ;
314 - ] 228 + sp:subject _:b7
315 - ] [ sp:object 229 + ]) ;
230 + sp:where ([ sp:object
316 [ sp:varName "productionOperationRef"^^xsd:string 231 [ sp:varName "productionOperationRef"^^xsd:string
317 ] ; 232 ] ;
318 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 233 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -354,59 +269,72 @@ ...@@ -354,59 +269,72 @@
354 [ sp:varName "productionOperation"^^xsd:string 269 [ sp:varName "productionOperation"^^xsd:string
355 ] 270 ]
356 ] [ sp:object 271 ] [ sp:object
272 + [ sp:varName "sinceDefinedSituationRef"^^xsd:string
273 + ] ;
274 + sp:predicate <http://www.epim.no/schemas/mprml/1#sinceDefinedSituationRef> ;
275 + sp:subject
357 [ sp:varName "operationalHSERef"^^xsd:string 276 [ sp:varName "operationalHSERef"^^xsd:string
277 + ]
278 + ] [ sp:object
279 + [ sp:varName "realSinceDefinedSituation"^^xsd:string
358 ] ; 280 ] ;
359 - sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ; 281 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
360 sp:subject 282 sp:subject
361 - [ sp:varName "installationReportRef"^^xsd:string 283 + [ sp:varName "sinceDefinedSituationRef"^^xsd:string
362 ] 284 ]
363 ] [ sp:object 285 ] [ sp:object
364 - [ sp:varName "medicalTreatmentCount"^^xsd:string 286 + [ sp:varName "uomSinceDefinedSituation"^^xsd:string
365 ] ; 287 ] ;
366 - sp:predicate <http://www.epim.no/schemas/mprml/1#medicalTreatmentCount> ; 288 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
367 sp:subject 289 sp:subject
368 - [ sp:varName "operationalHSERef"^^xsd:string 290 + [ sp:varName "sinceDefinedSituationRef"^^xsd:string
291 + ]
292 + ] [ rdf:type sp:Bind ;
293 + sp:expression
294 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
295 + sp:arg1 [ sp:varName "uomSinceDefinedSituation"^^xsd:string
296 + ]
297 + ] ;
298 + sp:variable
299 + [ sp:varName "sinceDefinedSituationScale"^^xsd:string
369 ] 300 ]
370 ]) 301 ])
371 ] ; 302 ] ;
372 spin:rule 303 spin:rule
373 [ rdf:type sp:Construct ; 304 [ rdf:type sp:Construct ;
374 - rdfs:comment "STEP 40301 Set the number of personnel safety introductions"^^xsd:string ; 305 + rdfs:comment "STEP 40304 Set the time since most recent accident prevention exercise"^^xsd:string ;
375 - sp:templates ([ sp:object _:b7 ; 306 + sp:templates ([ sp:object _:b8 ;
376 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 307 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
377 sp:subject 308 sp:subject
378 [ sp:varName "productionOperation"^^xsd:string 309 [ sp:varName "productionOperation"^^xsd:string
379 ] 310 ]
380 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ; 311 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
381 sp:predicate rdf:type ; 312 sp:predicate rdf:type ;
382 - sp:subject _:b7 313 + sp:subject _:b8
383 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#PersonnelSafetyIntroduction> ; 314 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentPreventionExercise> ;
384 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 315 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
385 - sp:subject _:b7 316 + sp:subject _:b8
386 - ] [ sp:object 317 + ] [ sp:object _:b9 ;
387 - [ sp:varName "safetyIntroCount"^^xsd:string 318 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
388 - ] ; 319 + sp:subject _:b8
389 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ; 320 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
390 - sp:subject _:b7
391 - ]) ;
392 - sp:where ([ sp:object spin:_this ;
393 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
394 - sp:subject
395 - [ sp:varName "productionReport"^^xsd:string
396 - ]
397 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
398 sp:predicate rdf:type ; 321 sp:predicate rdf:type ;
399 - sp:subject 322 + sp:subject _:b9
400 - [ sp:varName "productionOperationReport"^^xsd:string 323 + ] [ sp:object _:b10 ;
401 - ] 324 + sp:predicate rdf:type ;
325 + sp:subject _:b9
326 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
327 + sp:predicate rdf:type ;
328 + sp:subject _:b10
402 ] [ sp:object 329 ] [ sp:object
403 - [ sp:varName "productionReport"^^xsd:string 330 + [ sp:varName "realSincePreventionExercise"^^xsd:string
404 ] ; 331 ] ;
405 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 332 + sp:predicate
406 - sp:subject 333 + [ sp:varName "sincePreventionExerciseScale"^^xsd:string
407 - [ sp:varName "productionOperationReport"^^xsd:string 334 + ] ;
408 - ] 335 + sp:subject _:b10
409 - ] [ sp:object 336 + ]) ;
337 + sp:where ([ sp:object
410 [ sp:varName "productionOperationRef"^^xsd:string 338 [ sp:varName "productionOperationRef"^^xsd:string
411 ] ; 339 ] ;
412 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 340 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -448,59 +376,58 @@ ...@@ -448,59 +376,58 @@
448 [ sp:varName "productionOperation"^^xsd:string 376 [ sp:varName "productionOperation"^^xsd:string
449 ] 377 ]
450 ] [ sp:object 378 ] [ sp:object
379 + [ sp:varName "sincePreventionExerciseRef"^^xsd:string
380 + ] ;
381 + sp:predicate <http://www.epim.no/schemas/mprml/1#sincePreventionExerciseRef> ;
382 + sp:subject
451 [ sp:varName "operationalHSERef"^^xsd:string 383 [ sp:varName "operationalHSERef"^^xsd:string
384 + ]
385 + ] [ sp:object
386 + [ sp:varName "realSincePreventionExercise"^^xsd:string
452 ] ; 387 ] ;
453 - sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ; 388 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
454 sp:subject 389 sp:subject
455 - [ sp:varName "installationReportRef"^^xsd:string 390 + [ sp:varName "sincePreventionExerciseRef"^^xsd:string
456 ] 391 ]
457 ] [ sp:object 392 ] [ sp:object
458 - [ sp:varName "safetyIntroCount"^^xsd:string 393 + [ sp:varName "uomSincePreventionExercise"^^xsd:string
459 ] ; 394 ] ;
460 - sp:predicate <http://www.epim.no/schemas/mprml/1#safetyIntroCount> ; 395 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
461 sp:subject 396 sp:subject
462 - [ sp:varName "operationalHSERef"^^xsd:string 397 + [ sp:varName "sincePreventionExerciseRef"^^xsd:string
398 + ]
399 + ] [ rdf:type sp:Bind ;
400 + sp:expression
401 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
402 + sp:arg1 [ sp:varName "uomSincePreventionExercise"^^xsd:string
403 + ]
404 + ] ;
405 + sp:variable
406 + [ sp:varName "sincePreventionExerciseScale"^^xsd:string
463 ] 407 ]
464 ]) 408 ])
465 ] ; 409 ] ;
466 spin:rule 410 spin:rule
467 [ rdf:type sp:Construct ; 411 [ rdf:type sp:Construct ;
468 - rdfs:comment "STEP 40308 Set the number of number of alarms"^^xsd:string ; 412 + rdfs:comment "STEP 40306 Set the number of number of accidents and injuries"^^xsd:string ;
469 - sp:templates ([ sp:object _:b8 ; 413 + sp:templates ([ sp:object _:b11 ;
470 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 414 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
471 sp:subject 415 sp:subject
472 [ sp:varName "productionOperation"^^xsd:string 416 [ sp:varName "productionOperation"^^xsd:string
473 ] 417 ]
474 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ; 418 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
475 sp:predicate rdf:type ; 419 sp:predicate rdf:type ;
476 - sp:subject _:b8 420 + sp:subject _:b11
477 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Alarm> ; 421 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
478 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 422 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
479 - sp:subject _:b8 423 + sp:subject _:b11
480 ] [ sp:object 424 ] [ sp:object
481 - [ sp:varName "alarmCount"^^xsd:string 425 + [ sp:varName "incidentCount"^^xsd:string
482 ] ; 426 ] ;
483 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ; 427 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
484 - sp:subject _:b8 428 + sp:subject _:b11
485 ]) ; 429 ]) ;
486 - sp:where ([ sp:object spin:_this ; 430 + sp:where ([ sp:object
487 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
488 - sp:subject
489 - [ sp:varName "productionReport"^^xsd:string
490 - ]
491 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
492 - sp:predicate rdf:type ;
493 - sp:subject
494 - [ sp:varName "productionOperationReport"^^xsd:string
495 - ]
496 - ] [ sp:object
497 - [ sp:varName "productionReport"^^xsd:string
498 - ] ;
499 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
500 - sp:subject
501 - [ sp:varName "productionOperationReport"^^xsd:string
502 - ]
503 - ] [ sp:object
504 [ sp:varName "productionOperationRef"^^xsd:string 431 [ sp:varName "productionOperationRef"^^xsd:string
505 ] ; 432 ] ;
506 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 433 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -549,9 +476,9 @@ ...@@ -549,9 +476,9 @@
549 [ sp:varName "installationReportRef"^^xsd:string 476 [ sp:varName "installationReportRef"^^xsd:string
550 ] 477 ]
551 ] [ sp:object 478 ] [ sp:object
552 - [ sp:varName "alarmCount"^^xsd:string 479 + [ sp:varName "incidentCount"^^xsd:string
553 ] ; 480 ] ;
554 - sp:predicate <http://www.epim.no/schemas/mprml/1#alarmCount> ; 481 + sp:predicate <http://www.epim.no/schemas/mprml/1#incidentCount> ;
555 sp:subject 482 sp:subject
556 [ sp:varName "operationalHSERef"^^xsd:string 483 [ sp:varName "operationalHSERef"^^xsd:string
557 ] 484 ]
...@@ -559,43 +486,22 @@ ...@@ -559,43 +486,22 @@
559 ] ; 486 ] ;
560 spin:rule 487 spin:rule
561 [ rdf:type sp:Construct ; 488 [ rdf:type sp:Construct ;
562 - rdfs:comment """STEP 40311 Set the safety counts - for year to date incidents 489 + rdfs:comment """STEP 40312 Set the whole activity and the type of part activity for comment
563 period not processed"""^^xsd:string ; 490 period not processed"""^^xsd:string ;
564 - sp:templates ([ sp:object _:b9 ; 491 + sp:templates ([ sp:object
565 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 492 + [ sp:varName "commentRef"^^xsd:string
566 - sp:subject
567 - [ sp:varName "annualProductionOperationToDate"^^xsd:string
568 - ]
569 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
570 - sp:predicate rdf:type ;
571 - sp:subject _:b9
572 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Incident> ;
573 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
574 - sp:subject _:b9
575 - ] [ sp:object
576 - [ sp:varName "safetyCount"^^xsd:string
577 ] ; 493 ] ;
578 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ; 494 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
579 - sp:subject _:b9
580 - ]) ;
581 - sp:where ([ sp:object spin:_this ;
582 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
583 - sp:subject
584 - [ sp:varName "productionReport"^^xsd:string
585 - ]
586 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
587 - sp:predicate rdf:type ;
588 sp:subject 495 sp:subject
589 - [ sp:varName "productionOperationReport"^^xsd:string 496 + [ sp:varName "productionOperation"^^xsd:string
590 ] 497 ]
591 ] [ sp:object 498 ] [ sp:object
592 - [ sp:varName "productionReport"^^xsd:string 499 + [ sp:varName "commentRef"^^xsd:string
593 ] ; 500 ] ;
594 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 501 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
595 - sp:subject 502 + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#HealthSafetyAndEnvironmentActivity>
596 - [ sp:varName "productionOperationReport"^^xsd:string 503 + ]) ;
597 - ] 504 + sp:where ([ sp:object
598 - ] [ sp:object
599 [ sp:varName "productionOperationRef"^^xsd:string 505 [ sp:varName "productionOperationRef"^^xsd:string
600 ] ; 506 ] ;
601 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 507 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -663,73 +569,38 @@ period not processed"""^^xsd:string ; ...@@ -663,73 +569,38 @@ period not processed"""^^xsd:string ;
663 [ sp:varName "operationalHSERef"^^xsd:string 569 [ sp:varName "operationalHSERef"^^xsd:string
664 ] 570 ]
665 ] [ sp:object 571 ] [ sp:object
666 - [ sp:varName "safetyCountRef"^^xsd:string 572 + [ sp:varName "commentRef"^^xsd:string
667 ] ; 573 ] ;
668 - sp:predicate <http://www.epim.no/schemas/mprml/1#safetyCountRef> ; 574 + sp:predicate <http://www.epim.no/schemas/mprml/1#commentRef> ;
669 sp:subject 575 sp:subject
670 [ sp:varName "safetyRef"^^xsd:string 576 [ sp:varName "safetyRef"^^xsd:string
671 ] 577 ]
672 - ] [ sp:object
673 - [ sp:varName "safetyCount"^^xsd:string
674 - ] ;
675 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
676 - sp:subject
677 - [ sp:varName "safetyCountRef"^^xsd:string
678 - ]
679 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
680 - sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
681 - sp:subject
682 - [ sp:varName "safetyCountRef"^^xsd:string
683 - ]
684 - ] [ rdf:type sp:Optional ;
685 - sp:elements ([ sp:object
686 - [ sp:varName "reportingPeriod"^^xsd:string
687 - ] ;
688 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
689 - sp:subject
690 - [ sp:varName "safetyCountRef"^^xsd:string
691 - ]
692 - ])
693 ]) 578 ])
694 ] ; 579 ] ;
695 spin:rule 580 spin:rule
696 [ rdf:type sp:Construct ; 581 [ rdf:type sp:Construct ;
697 - rdfs:comment "STEP 40306 Set the number of number of accidents and injuries"^^xsd:string ; 582 + rdfs:comment """STEP 40310 Set the safety counts - except year to date incidents
698 - sp:templates ([ sp:object _:b10 ; 583 +period not processed"""^^xsd:string ;
584 + sp:templates ([ sp:object _:b12 ;
699 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 585 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
700 sp:subject 586 sp:subject
701 [ sp:varName "productionOperation"^^xsd:string 587 [ sp:varName "productionOperation"^^xsd:string
702 ] 588 ]
703 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ; 589 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
704 sp:predicate rdf:type ; 590 sp:predicate rdf:type ;
705 - sp:subject _:b10 591 + sp:subject _:b12
706 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ; 592 + ] [ sp:object
593 + [ sp:varName "safetyActivityType"^^xsd:string
594 + ] ;
707 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 595 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
708 - sp:subject _:b10 596 + sp:subject _:b12
709 ] [ sp:object 597 ] [ sp:object
710 - [ sp:varName "incidentCount"^^xsd:string 598 + [ sp:varName "safetyCount"^^xsd:string
711 ] ; 599 ] ;
712 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ; 600 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
713 - sp:subject _:b10 601 + sp:subject _:b12
714 ]) ; 602 ]) ;
715 - sp:where ([ sp:object spin:_this ; 603 + sp:where ([ sp:object
716 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
717 - sp:subject
718 - [ sp:varName "productionReport"^^xsd:string
719 - ]
720 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
721 - sp:predicate rdf:type ;
722 - sp:subject
723 - [ sp:varName "productionOperationReport"^^xsd:string
724 - ]
725 - ] [ sp:object
726 - [ sp:varName "productionReport"^^xsd:string
727 - ] ;
728 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
729 - sp:subject
730 - [ sp:varName "productionOperationReport"^^xsd:string
731 - ]
732 - ] [ sp:object
733 [ sp:varName "productionOperationRef"^^xsd:string 604 [ sp:varName "productionOperationRef"^^xsd:string
734 ] ; 605 ] ;
735 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 606 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -778,66 +649,83 @@ period not processed"""^^xsd:string ; ...@@ -778,66 +649,83 @@ period not processed"""^^xsd:string ;
778 [ sp:varName "installationReportRef"^^xsd:string 649 [ sp:varName "installationReportRef"^^xsd:string
779 ] 650 ]
780 ] [ sp:object 651 ] [ sp:object
781 - [ sp:varName "incidentCount"^^xsd:string 652 + [ sp:varName "safetyRef"^^xsd:string
782 ] ; 653 ] ;
783 - sp:predicate <http://www.epim.no/schemas/mprml/1#incidentCount> ; 654 + sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
784 sp:subject 655 sp:subject
785 [ sp:varName "operationalHSERef"^^xsd:string 656 [ sp:varName "operationalHSERef"^^xsd:string
786 ] 657 ]
658 + ] [ sp:object
659 + [ sp:varName "safetyCountRef"^^xsd:string
660 + ] ;
661 + sp:predicate <http://www.epim.no/schemas/mprml/1#safetyCountRef> ;
662 + sp:subject
663 + [ sp:varName "safetyRef"^^xsd:string
664 + ]
665 + ] [ sp:object
666 + [ sp:varName "safetyCount"^^xsd:string
667 + ] ;
668 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
669 + sp:subject
670 + [ sp:varName "safetyCountRef"^^xsd:string
671 + ]
672 + ] [ rdf:type sp:Optional ;
673 + sp:elements ([ sp:object
674 + [ sp:varName "safetyTypeRef"^^xsd:string
675 + ] ;
676 + sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
677 + sp:subject
678 + [ sp:varName "safetyCountRef"^^xsd:string
679 + ]
680 + ])
681 + ] [ rdf:type sp:Optional ;
682 + sp:elements ([ sp:object
683 + [ sp:varName "reportingPeriod"^^xsd:string
684 + ] ;
685 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
686 + sp:subject
687 + [ sp:varName "safetyCountRef"^^xsd:string
688 + ]
689 + ])
690 + ] [ rdf:type sp:NotExists ;
691 + sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
692 + sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
693 + sp:subject
694 + [ sp:varName "safetyCountRef"^^xsd:string
695 + ]
696 + ])
697 + ] [ rdf:type sp:Bind ;
698 + sp:expression
699 + [ rdf:type ep-mpr-spin-lib:selectSafetyActivityType ;
700 + sp:arg1 [ sp:varName "safetyTypeRef"^^xsd:string
701 + ]
702 + ] ;
703 + sp:variable
704 + [ sp:varName "safetyActivityType"^^xsd:string
705 + ]
787 ]) 706 ])
788 ] ; 707 ] ;
789 spin:rule 708 spin:rule
790 [ rdf:type sp:Construct ; 709 [ rdf:type sp:Construct ;
791 - rdfs:comment "STEP 40304 Set the time since most recent accident prevention exercise"^^xsd:string ; 710 + rdfs:comment "STEP 40301 Set the number of personnel safety introductions"^^xsd:string ;
792 - sp:templates ([ sp:object _:b11 ; 711 + sp:templates ([ sp:object _:b13 ;
793 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ; 712 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
794 sp:subject 713 sp:subject
795 [ sp:varName "productionOperation"^^xsd:string 714 [ sp:varName "productionOperation"^^xsd:string
796 ] 715 ]
797 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ; 716 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
798 sp:predicate rdf:type ; 717 sp:predicate rdf:type ;
799 - sp:subject _:b11 718 + sp:subject _:b13
800 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentPreventionExercise> ; 719 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#PersonnelSafetyIntroduction> ;
801 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 720 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
802 - sp:subject _:b11
803 - ] [ sp:object _:b12 ;
804 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
805 - sp:subject _:b11
806 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
807 - sp:predicate rdf:type ;
808 - sp:subject _:b12
809 - ] [ sp:object _:b13 ;
810 - sp:predicate rdf:type ;
811 - sp:subject _:b12
812 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
813 - sp:predicate rdf:type ;
814 sp:subject _:b13 721 sp:subject _:b13
815 ] [ sp:object 722 ] [ sp:object
816 - [ sp:varName "realSincePreventionExercise"^^xsd:string 723 + [ sp:varName "safetyIntroCount"^^xsd:string
817 - ] ;
818 - sp:predicate
819 - [ sp:varName "sincePreventionExerciseScale"^^xsd:string
820 ] ; 724 ] ;
725 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
821 sp:subject _:b13 726 sp:subject _:b13
822 ]) ; 727 ]) ;
823 - sp:where ([ sp:object spin:_this ; 728 + sp:where ([ sp:object
824 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
825 - sp:subject
826 - [ sp:varName "productionReport"^^xsd:string
827 - ]
828 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
829 - sp:predicate rdf:type ;
830 - sp:subject
831 - [ sp:varName "productionOperationReport"^^xsd:string
832 - ]
833 - ] [ sp:object
834 - [ sp:varName "productionReport"^^xsd:string
835 - ] ;
836 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
837 - sp:subject
838 - [ sp:varName "productionOperationReport"^^xsd:string
839 - ]
840 - ] [ sp:object
841 [ sp:varName "productionOperationRef"^^xsd:string 729 [ sp:varName "productionOperationRef"^^xsd:string
842 ] ; 730 ] ;
843 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 731 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -879,72 +767,50 @@ period not processed"""^^xsd:string ; ...@@ -879,72 +767,50 @@ period not processed"""^^xsd:string ;
879 [ sp:varName "productionOperation"^^xsd:string 767 [ sp:varName "productionOperation"^^xsd:string
880 ] 768 ]
881 ] [ sp:object 769 ] [ sp:object
882 - [ sp:varName "sincePreventionExerciseRef"^^xsd:string
883 - ] ;
884 - sp:predicate <http://www.epim.no/schemas/mprml/1#sincePreventionExerciseRef> ;
885 - sp:subject
886 [ sp:varName "operationalHSERef"^^xsd:string 770 [ sp:varName "operationalHSERef"^^xsd:string
887 - ]
888 - ] [ sp:object
889 - [ sp:varName "realSincePreventionExercise"^^xsd:string
890 ] ; 771 ] ;
891 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 772 + sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
892 sp:subject 773 sp:subject
893 - [ sp:varName "sincePreventionExerciseRef"^^xsd:string 774 + [ sp:varName "installationReportRef"^^xsd:string
894 ] 775 ]
895 ] [ sp:object 776 ] [ sp:object
896 - [ sp:varName "uomSincePreventionExercise"^^xsd:string 777 + [ sp:varName "safetyIntroCount"^^xsd:string
897 ] ; 778 ] ;
898 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 779 + sp:predicate <http://www.epim.no/schemas/mprml/1#safetyIntroCount> ;
899 sp:subject 780 sp:subject
900 - [ sp:varName "sincePreventionExerciseRef"^^xsd:string 781 + [ sp:varName "operationalHSERef"^^xsd:string
901 - ]
902 - ] [ rdf:type sp:Bind ;
903 - sp:expression
904 - [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
905 - sp:arg1 [ sp:varName "uomSincePreventionExercise"^^xsd:string
906 - ]
907 - ] ;
908 - sp:variable
909 - [ sp:varName "sincePreventionExerciseScale"^^xsd:string
910 ] 782 ]
911 ]) 783 ])
912 ] ; 784 ] ;
913 spin:rule 785 spin:rule
914 [ rdf:type sp:Construct ; 786 [ rdf:type sp:Construct ;
915 - rdfs:comment "STEP 40302 Set the safety consideration description"^^xsd:string ; 787 + rdfs:comment "STEP 40309 Set the mean time between incidents"^^xsd:string ;
916 sp:templates ([ sp:object _:b14 ; 788 sp:templates ([ sp:object _:b14 ;
917 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 789 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasCompositionOfAllPartsOfDefinedType> ;
918 sp:subject 790 sp:subject
919 [ sp:varName "productionOperation"^^xsd:string 791 [ sp:varName "productionOperation"^^xsd:string
920 ] 792 ]
921 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ; 793 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#CompositionOfAllPartsOfDefinedType> ;
922 sp:predicate rdf:type ; 794 sp:predicate rdf:type ;
923 sp:subject _:b14 795 sp:subject _:b14
924 - ] [ sp:object 796 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
925 - [ sp:varName "safetyDescription"^^xsd:string 797 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
926 - ] ;
927 - sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
928 sp:subject _:b14 798 sp:subject _:b14
929 - ]) ; 799 + ] [ sp:object _:b15 ;
930 - sp:where ([ sp:object spin:_this ; 800 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#meanTimeBetweenParts> ;
931 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 801 + sp:subject _:b14
932 - sp:subject 802 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
933 - [ sp:varName "productionReport"^^xsd:string
934 - ]
935 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
936 sp:predicate rdf:type ; 803 sp:predicate rdf:type ;
937 - sp:subject 804 + sp:subject _:b15
938 - [ sp:varName "productionOperationReport"^^xsd:string
939 - ]
940 ] [ sp:object 805 ] [ sp:object
941 - [ sp:varName "productionReport"^^xsd:string 806 + [ sp:varName "realMeantimeIncident"^^xsd:string
942 ] ; 807 ] ;
943 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 808 + sp:predicate
944 - sp:subject 809 + [ sp:varName "meantimeIncidentScale"^^xsd:string
945 - [ sp:varName "productionOperationReport"^^xsd:string 810 + ] ;
946 - ] 811 + sp:subject _:b15
947 - ] [ sp:object 812 + ]) ;
813 + sp:where ([ sp:object
948 [ sp:varName "productionOperationRef"^^xsd:string 814 [ sp:varName "productionOperationRef"^^xsd:string
949 ] ; 815 ] ;
950 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 816 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -986,66 +852,72 @@ period not processed"""^^xsd:string ; ...@@ -986,66 +852,72 @@ period not processed"""^^xsd:string ;
986 [ sp:varName "productionOperation"^^xsd:string 852 [ sp:varName "productionOperation"^^xsd:string
987 ] 853 ]
988 ] [ sp:object 854 ] [ sp:object
989 - [ sp:varName "safetyDescription"^^xsd:string 855 + [ sp:varName "operationalHSERef"^^xsd:string
990 ] ; 856 ] ;
991 - sp:predicate <http://www.epim.no/schemas/mprml/1#safetyDescription> ; 857 + sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
858 + sp:subject
859 + [ sp:varName "installationReportRef"^^xsd:string
860 + ]
861 + ] [ sp:object
862 + [ sp:varName "safetyRef"^^xsd:string
863 + ] ;
864 + sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
992 sp:subject 865 sp:subject
993 [ sp:varName "operationalHSERef"^^xsd:string 866 [ sp:varName "operationalHSERef"^^xsd:string
994 ] 867 ]
868 + ] [ sp:object
869 + [ sp:varName "meantimeIncidentRef"^^xsd:string
870 + ] ;
871 + sp:predicate <http://www.epim.no/schemas/mprml/1#meantimeIncidentRef> ;
872 + sp:subject
873 + [ sp:varName "safetyRef"^^xsd:string
874 + ]
875 + ] [ sp:object
876 + [ sp:varName "realMeantimeIncident"^^xsd:string
877 + ] ;
878 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
879 + sp:subject
880 + [ sp:varName "meantimeIncidentRef"^^xsd:string
881 + ]
882 + ] [ sp:object
883 + [ sp:varName "uomMeantimeIncident"^^xsd:string
884 + ] ;
885 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
886 + sp:subject
887 + [ sp:varName "meantimeIncidentRef"^^xsd:string
888 + ]
889 + ] [ rdf:type sp:Bind ;
890 + sp:expression
891 + [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
892 + sp:arg1 [ sp:varName "uomMeantimeIncident"^^xsd:string
893 + ]
894 + ] ;
895 + sp:variable
896 + [ sp:varName "meantimeIncidentScale"^^xsd:string
897 + ]
995 ]) 898 ])
996 ] ; 899 ] ;
997 spin:rule 900 spin:rule
998 [ rdf:type sp:Construct ; 901 [ rdf:type sp:Construct ;
999 - rdfs:comment "STEP 40303 Set the time since most recent lost time accident"^^xsd:string ; 902 + rdfs:comment "STEP 40307 Set the number of number of medical treatments"^^xsd:string ;
1000 - sp:templates ([ sp:object _:b15 ; 903 + sp:templates ([ sp:object _:b16 ;
1001 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ; 904 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
1002 sp:subject 905 sp:subject
1003 [ sp:varName "productionOperation"^^xsd:string 906 [ sp:varName "productionOperation"^^xsd:string
1004 ] 907 ]
1005 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ; 908 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
1006 - sp:predicate rdf:type ;
1007 - sp:subject _:b15
1008 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LostTimeAccident> ;
1009 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
1010 - sp:subject _:b15
1011 - ] [ sp:object _:b16 ;
1012 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
1013 - sp:subject _:b15
1014 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
1015 sp:predicate rdf:type ; 909 sp:predicate rdf:type ;
1016 sp:subject _:b16 910 sp:subject _:b16
1017 - ] [ sp:object _:b17 ; 911 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MedicalTreatment> ;
1018 - sp:predicate rdf:type ; 912 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
1019 sp:subject _:b16 913 sp:subject _:b16
1020 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
1021 - sp:predicate rdf:type ;
1022 - sp:subject _:b17
1023 ] [ sp:object 914 ] [ sp:object
1024 - [ sp:varName "realSinceLostTime"^^xsd:string 915 + [ sp:varName "medicalTreatmentCount"^^xsd:string
1025 - ] ;
1026 - sp:predicate
1027 - [ sp:varName "sinceLostTimeScale"^^xsd:string
1028 ] ; 916 ] ;
1029 - sp:subject _:b17 917 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
918 + sp:subject _:b16
1030 ]) ; 919 ]) ;
1031 - sp:where ([ sp:object spin:_this ; 920 + sp:where ([ sp:object
1032 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
1033 - sp:subject
1034 - [ sp:varName "productionReport"^^xsd:string
1035 - ]
1036 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
1037 - sp:predicate rdf:type ;
1038 - sp:subject
1039 - [ sp:varName "productionOperationReport"^^xsd:string
1040 - ]
1041 - ] [ sp:object
1042 - [ sp:varName "productionReport"^^xsd:string
1043 - ] ;
1044 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
1045 - sp:subject
1046 - [ sp:varName "productionOperationReport"^^xsd:string
1047 - ]
1048 - ] [ sp:object
1049 [ sp:varName "productionOperationRef"^^xsd:string 921 [ sp:varName "productionOperationRef"^^xsd:string
1050 ] ; 922 ] ;
1051 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 923 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -1087,78 +959,43 @@ period not processed"""^^xsd:string ; ...@@ -1087,78 +959,43 @@ period not processed"""^^xsd:string ;
1087 [ sp:varName "productionOperation"^^xsd:string 959 [ sp:varName "productionOperation"^^xsd:string
1088 ] 960 ]
1089 ] [ sp:object 961 ] [ sp:object
1090 - [ sp:varName "sinceLostTimeRef"^^xsd:string
1091 - ] ;
1092 - sp:predicate <http://www.epim.no/schemas/mprml/1#sinceLostTimeRef> ;
1093 - sp:subject
1094 [ sp:varName "operationalHSERef"^^xsd:string 962 [ sp:varName "operationalHSERef"^^xsd:string
1095 - ]
1096 - ] [ sp:object
1097 - [ sp:varName "realSinceLostTime"^^xsd:string
1098 ] ; 963 ] ;
1099 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 964 + sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
1100 sp:subject 965 sp:subject
1101 - [ sp:varName "sinceLostTimeRef"^^xsd:string 966 + [ sp:varName "installationReportRef"^^xsd:string
1102 ] 967 ]
1103 ] [ sp:object 968 ] [ sp:object
1104 - [ sp:varName "uomSinceLostTime"^^xsd:string 969 + [ sp:varName "medicalTreatmentCount"^^xsd:string
1105 ] ; 970 ] ;
1106 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 971 + sp:predicate <http://www.epim.no/schemas/mprml/1#medicalTreatmentCount> ;
1107 sp:subject 972 sp:subject
1108 - [ sp:varName "sinceLostTimeRef"^^xsd:string 973 + [ sp:varName "operationalHSERef"^^xsd:string
1109 - ]
1110 - ] [ rdf:type sp:Bind ;
1111 - sp:expression
1112 - [ rdf:type ep-mpr-spin-lib:selectDurationScale ;
1113 - sp:arg1 [ sp:varName "uomSinceLostTime"^^xsd:string
1114 - ]
1115 - ] ;
1116 - sp:variable
1117 - [ sp:varName "sinceLostTimeScale"^^xsd:string
1118 ] 974 ]
1119 ]) 975 ])
1120 ] ; 976 ] ;
1121 spin:rule 977 spin:rule
1122 [ rdf:type sp:Construct ; 978 [ rdf:type sp:Construct ;
1123 - rdfs:comment """STEP 40310 Set the safety counts - except year to date incidents 979 + rdfs:comment """STEP 40311 Set the safety counts - for year to date incidents
1124 period not processed"""^^xsd:string ; 980 period not processed"""^^xsd:string ;
1125 - sp:templates ([ sp:object _:b18 ; 981 + sp:templates ([ sp:object _:b17 ;
1126 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ; 982 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
1127 sp:subject 983 sp:subject
1128 - [ sp:varName "productionOperation"^^xsd:string 984 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
1129 ] 985 ]
1130 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ; 986 ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
1131 sp:predicate rdf:type ; 987 sp:predicate rdf:type ;
1132 - sp:subject _:b18 988 + sp:subject _:b17
1133 - ] [ sp:object 989 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Incident> ;
1134 - [ sp:varName "safetyActivityType"^^xsd:string
1135 - ] ;
1136 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ; 990 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
1137 - sp:subject _:b18 991 + sp:subject _:b17
1138 ] [ sp:object 992 ] [ sp:object
1139 [ sp:varName "safetyCount"^^xsd:string 993 [ sp:varName "safetyCount"^^xsd:string
1140 ] ; 994 ] ;
1141 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ; 995 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
1142 - sp:subject _:b18 996 + sp:subject _:b17
1143 ]) ; 997 ]) ;
1144 - sp:where ([ sp:object spin:_this ; 998 + sp:where ([ sp:object
1145 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
1146 - sp:subject
1147 - [ sp:varName "productionReport"^^xsd:string
1148 - ]
1149 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
1150 - sp:predicate rdf:type ;
1151 - sp:subject
1152 - [ sp:varName "productionOperationReport"^^xsd:string
1153 - ]
1154 - ] [ sp:object
1155 - [ sp:varName "productionReport"^^xsd:string
1156 - ] ;
1157 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
1158 - sp:subject
1159 - [ sp:varName "productionOperationReport"^^xsd:string
1160 - ]
1161 - ] [ sp:object
1162 [ sp:varName "productionOperationRef"^^xsd:string 999 [ sp:varName "productionOperationRef"^^xsd:string
1163 ] ; 1000 ] ;
1164 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 1001 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -1200,6 +1037,18 @@ period not processed"""^^xsd:string ; ...@@ -1200,6 +1037,18 @@ period not processed"""^^xsd:string ;
1200 [ sp:varName "productionOperation"^^xsd:string 1037 [ sp:varName "productionOperation"^^xsd:string
1201 ] 1038 ]
1202 ] [ sp:object 1039 ] [ sp:object
1040 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
1041 + ] ;
1042 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1043 + sp:subject
1044 + [ sp:varName "productionOperation"^^xsd:string
1045 + ]
1046 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
1047 + sp:predicate rdf:type ;
1048 + sp:subject
1049 + [ sp:varName "annualProductionOperationToDate"^^xsd:string
1050 + ]
1051 + ] [ sp:object
1203 [ sp:varName "operationalHSERef"^^xsd:string 1052 [ sp:varName "operationalHSERef"^^xsd:string
1204 ] ; 1053 ] ;
1205 sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ; 1054 sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
...@@ -1227,15 +1076,11 @@ period not processed"""^^xsd:string ; ...@@ -1227,15 +1076,11 @@ period not processed"""^^xsd:string ;
1227 sp:subject 1076 sp:subject
1228 [ sp:varName "safetyCountRef"^^xsd:string 1077 [ sp:varName "safetyCountRef"^^xsd:string
1229 ] 1078 ]
1230 - ] [ rdf:type sp:Optional ; 1079 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
1231 - sp:elements ([ sp:object 1080 + sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
1232 - [ sp:varName "safetyTypeRef"^^xsd:string 1081 + sp:subject
1233 - ] ; 1082 + [ sp:varName "safetyCountRef"^^xsd:string
1234 - sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ; 1083 + ]
1235 - sp:subject
1236 - [ sp:varName "safetyCountRef"^^xsd:string
1237 - ]
1238 - ])
1239 ] [ rdf:type sp:Optional ; 1084 ] [ rdf:type sp:Optional ;
1240 sp:elements ([ sp:object 1085 sp:elements ([ sp:object
1241 [ sp:varName "reportingPeriod"^^xsd:string 1086 [ sp:varName "reportingPeriod"^^xsd:string
...@@ -1245,59 +1090,29 @@ period not processed"""^^xsd:string ; ...@@ -1245,59 +1090,29 @@ period not processed"""^^xsd:string ;
1245 [ sp:varName "safetyCountRef"^^xsd:string 1090 [ sp:varName "safetyCountRef"^^xsd:string
1246 ] 1091 ]
1247 ]) 1092 ])
1248 - ] [ rdf:type sp:NotExists ;
1249 - sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
1250 - sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
1251 - sp:subject
1252 - [ sp:varName "safetyCountRef"^^xsd:string
1253 - ]
1254 - ])
1255 - ] [ rdf:type sp:Bind ;
1256 - sp:expression
1257 - [ rdf:type ep-mpr-spin-lib:selectSafetyActivityType ;
1258 - sp:arg1 [ sp:varName "safetyTypeRef"^^xsd:string
1259 - ]
1260 - ] ;
1261 - sp:variable
1262 - [ sp:varName "safetyActivityType"^^xsd:string
1263 - ]
1264 ]) 1093 ])
1265 ] ; 1094 ] ;
1266 spin:rule 1095 spin:rule
1267 [ rdf:type sp:Construct ; 1096 [ rdf:type sp:Construct ;
1268 - rdfs:comment """STEP 40312 Set the whole activity and the type of part activity for comment 1097 + rdfs:comment "STEP 40308 Set the number of number of alarms"^^xsd:string ;
1269 -period not processed"""^^xsd:string ; 1098 + sp:templates ([ sp:object _:b18 ;
1270 - sp:templates ([ sp:object 1099 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
1271 - [ sp:varName "commentRef"^^xsd:string
1272 - ] ;
1273 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
1274 sp:subject 1100 sp:subject
1275 [ sp:varName "productionOperation"^^xsd:string 1101 [ sp:varName "productionOperation"^^xsd:string
1276 ] 1102 ]
1277 - ] [ sp:object 1103 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
1278 - [ sp:varName "commentRef"^^xsd:string
1279 - ] ;
1280 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
1281 - sp:subject <http://www.reportinghub.no/ep/schema/production-activity#HealthSafetyAndEnvironmentActivity>
1282 - ]) ;
1283 - sp:where ([ sp:object spin:_this ;
1284 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
1285 - sp:subject
1286 - [ sp:varName "productionReport"^^xsd:string
1287 - ]
1288 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
1289 sp:predicate rdf:type ; 1104 sp:predicate rdf:type ;
1290 - sp:subject 1105 + sp:subject _:b18
1291 - [ sp:varName "productionOperationReport"^^xsd:string 1106 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Alarm> ;
1292 - ] 1107 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
1108 + sp:subject _:b18
1293 ] [ sp:object 1109 ] [ sp:object
1294 - [ sp:varName "productionReport"^^xsd:string 1110 + [ sp:varName "alarmCount"^^xsd:string
1295 ] ; 1111 ] ;
1296 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 1112 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
1297 - sp:subject 1113 + sp:subject _:b18
1298 - [ sp:varName "productionOperationReport"^^xsd:string 1114 + ]) ;
1299 - ] 1115 + sp:where ([ sp:object
1300 - ] [ sp:object
1301 [ sp:varName "productionOperationRef"^^xsd:string 1116 [ sp:varName "productionOperationRef"^^xsd:string
1302 ] ; 1117 ] ;
1303 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 1118 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -1339,18 +1154,6 @@ period not processed"""^^xsd:string ; ...@@ -1339,18 +1154,6 @@ period not processed"""^^xsd:string ;
1339 [ sp:varName "productionOperation"^^xsd:string 1154 [ sp:varName "productionOperation"^^xsd:string
1340 ] 1155 ]
1341 ] [ sp:object 1156 ] [ sp:object
1342 - [ sp:varName "annualProductionOperationToDate"^^xsd:string
1343 - ] ;
1344 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1345 - sp:subject
1346 - [ sp:varName "productionOperation"^^xsd:string
1347 - ]
1348 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
1349 - sp:predicate rdf:type ;
1350 - sp:subject
1351 - [ sp:varName "annualProductionOperationToDate"^^xsd:string
1352 - ]
1353 - ] [ sp:object
1354 [ sp:varName "operationalHSERef"^^xsd:string 1157 [ sp:varName "operationalHSERef"^^xsd:string
1355 ] ; 1158 ] ;
1356 sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ; 1159 sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
...@@ -1358,23 +1161,16 @@ period not processed"""^^xsd:string ; ...@@ -1358,23 +1161,16 @@ period not processed"""^^xsd:string ;
1358 [ sp:varName "installationReportRef"^^xsd:string 1161 [ sp:varName "installationReportRef"^^xsd:string
1359 ] 1162 ]
1360 ] [ sp:object 1163 ] [ sp:object
1361 - [ sp:varName "safetyRef"^^xsd:string 1164 + [ sp:varName "alarmCount"^^xsd:string
1362 ] ; 1165 ] ;
1363 - sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ; 1166 + sp:predicate <http://www.epim.no/schemas/mprml/1#alarmCount> ;
1364 sp:subject 1167 sp:subject
1365 [ sp:varName "operationalHSERef"^^xsd:string 1168 [ sp:varName "operationalHSERef"^^xsd:string
1366 ] 1169 ]
1367 - ] [ sp:object
1368 - [ sp:varName "commentRef"^^xsd:string
1369 - ] ;
1370 - sp:predicate <http://www.epim.no/schemas/mprml/1#commentRef> ;
1371 - sp:subject
1372 - [ sp:varName "safetyRef"^^xsd:string
1373 - ]
1374 ]) 1170 ])
1375 ] . 1171 ] .
1376 1172
1377 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> 1173 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1>
1378 rdf:type owl:Ontology ; 1174 rdf:type owl:Ontology ;
1379 - 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> ; 1175 + 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> ;
1380 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1176 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
6 6
7 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
8 @prefix arg: <http://spinrdf.org/arg#> . 8 @prefix arg: <http://spinrdf.org/arg#> .
9 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
9 @prefix owl: <http://www.w3.org/2002/07/owl#> . 10 @prefix owl: <http://www.w3.org/2002/07/owl#> .
10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 11 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 12 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
...@@ -18,18 +19,24 @@ ...@@ -18,18 +19,24 @@
18 <http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> 19 <http://www.epim.no/schemas/mprml/1#Cs_businessAssociate>
19 spin:rule 20 spin:rule
20 [ rdf:type sp:Construct ; 21 [ rdf:type sp:Construct ;
21 - rdfs:comment "STEP 00044 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 22 + rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
22 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 23 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
23 sp:predicate rdf:type ; 24 sp:predicate rdf:type ;
24 - sp:subject _:b1 25 + sp:subject
26 + [ sp:varName "organization"^^xsd:string
27 + ]
25 ] [ sp:object 28 ] [ sp:object
26 [ sp:varName "organizationName"^^xsd:string 29 [ sp:varName "organizationName"^^xsd:string
27 ] ; 30 ] ;
28 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 31 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
29 - sp:subject _:b1 32 + sp:subject
33 + [ sp:varName "organization"^^xsd:string
34 + ]
30 ] [ sp:object spin:_this ; 35 ] [ sp:object spin:_this ;
31 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 36 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
32 - sp:subject _:b1 37 + sp:subject
38 + [ sp:varName "organization"^^xsd:string
39 + ]
33 ]) ; 40 ]) ;
34 sp:where ([ sp:object 41 sp:where ([ sp:object
35 [ sp:varName "organizationName"^^xsd:string 42 [ sp:varName "organizationName"^^xsd:string
...@@ -43,46 +50,13 @@ ...@@ -43,46 +50,13 @@
43 [ sp:varName "somethingElse"^^xsd:string 50 [ sp:varName "somethingElse"^^xsd:string
44 ] 51 ]
45 ]) 52 ])
46 - ] [ rdf:type sp:NotExists ; 53 + ] [ rdf:type sp:Bind ;
47 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 54 + sp:expression
48 - sp:predicate rdf:type ; 55 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
49 - sp:subject 56 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
50 - [ sp:varName "organization"^^xsd:string 57 + ]
51 - ]
52 - ] [ sp:object
53 - [ sp:varName "organizationName"^^xsd:string
54 - ] ;
55 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
56 - sp:subject
57 - [ sp:varName "organization"^^xsd:string
58 - ]
59 - ])
60 - ])
61 - ] ;
62 - spin:rule
63 - [ rdf:type sp:Construct ;
64 - rdfs:comment "STEP 00043 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
65 - sp:templates ([ sp:object spin:_this ;
66 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
67 - sp:subject
68 - [ sp:varName "organization"^^xsd:string
69 - ]
70 - ]) ;
71 - sp:where ([ sp:object
72 - [ sp:varName "organizationName"^^xsd:string
73 - ] ;
74 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
75 - sp:subject spin:_this
76 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
77 - sp:predicate rdf:type ;
78 - sp:subject
79 - [ sp:varName "organization"^^xsd:string
80 - ]
81 - ] [ sp:object
82 - [ sp:varName "organizationName"^^xsd:string
83 ] ; 58 ] ;
84 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 59 + sp:variable
85 - sp:subject
86 [ sp:varName "organization"^^xsd:string 60 [ sp:varName "organization"^^xsd:string
87 ] 61 ]
88 ]) 62 ])
...@@ -153,7 +127,7 @@ ...@@ -153,7 +127,7 @@
153 <http://www.epim.no/schemas/mprml/1#RefNameString> 127 <http://www.epim.no/schemas/mprml/1#RefNameString>
154 spin:rule 128 spin:rule
155 [ rdf:type sp:Construct ; 129 [ rdf:type sp:Construct ;
156 - rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; 130 + rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ;
157 sp:templates ([ sp:object spin:_this ; 131 sp:templates ([ sp:object spin:_this ;
158 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 132 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
159 sp:subject 133 sp:subject
...@@ -161,7 +135,7 @@ ...@@ -161,7 +135,7 @@
161 ] 135 ]
162 ]) ; 136 ]) ;
163 sp:where ([ sp:object spin:_this ; 137 sp:where ([ sp:object spin:_this ;
164 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 138 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
165 sp:subject 139 sp:subject
166 [ sp:varName "something"^^xsd:string 140 [ sp:varName "something"^^xsd:string
167 ] 141 ]
...@@ -189,7 +163,7 @@ ...@@ -189,7 +163,7 @@
189 ] ; 163 ] ;
190 spin:rule 164 spin:rule
191 [ rdf:type sp:Construct ; 165 [ rdf:type sp:Construct ;
192 - rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; 166 + rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ;
193 sp:templates ([ sp:object spin:_this ; 167 sp:templates ([ sp:object spin:_this ;
194 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 168 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
195 sp:subject 169 sp:subject
...@@ -197,7 +171,7 @@ ...@@ -197,7 +171,7 @@
197 ] 171 ]
198 ]) ; 172 ]) ;
199 sp:where ([ sp:object spin:_this ; 173 sp:where ([ sp:object spin:_this ;
200 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 174 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
201 sp:subject 175 sp:subject
202 [ sp:varName "something"^^xsd:string 176 [ sp:varName "something"^^xsd:string
203 ] 177 ]
...@@ -225,103 +199,7 @@ ...@@ -225,103 +199,7 @@
225 ] ; 199 ] ;
226 spin:rule 200 spin:rule
227 [ rdf:type sp:Construct ; 201 [ rdf:type sp:Construct ;
228 - rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 202 + rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ;
229 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
230 - sp:predicate rdf:type ;
231 - sp:subject _:b2
232 - ] [ sp:object
233 - [ sp:varName "organizationName"^^xsd:string
234 - ] ;
235 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
236 - sp:subject _:b2
237 - ] [ sp:object spin:_this ;
238 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
239 - sp:subject _:b2
240 - ]) ;
241 - sp:where ([ sp:object spin:_this ;
242 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
243 - sp:subject
244 - [ sp:varName "something"^^xsd:string
245 - ]
246 - ] [ sp:object
247 - [ sp:varName "organizationName"^^xsd:string
248 - ] ;
249 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
250 - sp:subject spin:_this
251 - ] [ rdf:type sp:NotExists ;
252 - sp:elements ([ sp:object spin:_this ;
253 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
254 - sp:subject
255 - [ sp:varName "somethingElse"^^xsd:string
256 - ]
257 - ])
258 - ] [ rdf:type sp:NotExists ;
259 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
260 - sp:predicate rdf:type ;
261 - sp:subject
262 - [ sp:varName "organization"^^xsd:string
263 - ]
264 - ] [ sp:object
265 - [ sp:varName "organizationName"^^xsd:string
266 - ] ;
267 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
268 - sp:subject
269 - [ sp:varName "organization"^^xsd:string
270 - ]
271 - ])
272 - ])
273 - ] ;
274 - spin:rule
275 - [ rdf:type sp:Construct ;
276 - rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
277 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
278 - sp:predicate rdf:type ;
279 - sp:subject _:b3
280 - ] [ sp:object
281 - [ sp:varName "organizationName"^^xsd:string
282 - ] ;
283 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
284 - sp:subject _:b3
285 - ] [ sp:object spin:_this ;
286 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
287 - sp:subject _:b3
288 - ]) ;
289 - sp:where ([ sp:object spin:_this ;
290 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
291 - sp:subject
292 - [ sp:varName "something"^^xsd:string
293 - ]
294 - ] [ sp:object
295 - [ sp:varName "organizationName"^^xsd:string
296 - ] ;
297 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
298 - sp:subject spin:_this
299 - ] [ rdf:type sp:NotExists ;
300 - sp:elements ([ sp:object spin:_this ;
301 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
302 - sp:subject
303 - [ sp:varName "somethingElse"^^xsd:string
304 - ]
305 - ])
306 - ] [ rdf:type sp:NotExists ;
307 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
308 - sp:predicate rdf:type ;
309 - sp:subject
310 - [ sp:varName "organization"^^xsd:string
311 - ]
312 - ] [ sp:object
313 - [ sp:varName "organizationName"^^xsd:string
314 - ] ;
315 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
316 - sp:subject
317 - [ sp:varName "organization"^^xsd:string
318 - ]
319 - ])
320 - ])
321 - ] ;
322 - spin:rule
323 - [ rdf:type sp:Construct ;
324 - rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
325 sp:templates ([ sp:object spin:_this ; 203 sp:templates ([ sp:object spin:_this ;
326 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 204 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
327 sp:subject 205 sp:subject
...@@ -329,7 +207,7 @@ ...@@ -329,7 +207,7 @@
329 ] 207 ]
330 ]) ; 208 ]) ;
331 sp:where ([ sp:object spin:_this ; 209 sp:where ([ sp:object spin:_this ;
332 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 210 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
333 sp:subject 211 sp:subject
334 [ sp:varName "something"^^xsd:string 212 [ sp:varName "something"^^xsd:string
335 ] 213 ]
...@@ -357,7 +235,7 @@ ...@@ -357,7 +235,7 @@
357 ] ; 235 ] ;
358 spin:rule 236 spin:rule
359 [ rdf:type sp:Construct ; 237 [ rdf:type sp:Construct ;
360 - rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; 238 + rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ;
361 sp:templates ([ sp:object spin:_this ; 239 sp:templates ([ sp:object spin:_this ;
362 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 240 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
363 sp:subject 241 sp:subject
...@@ -365,7 +243,7 @@ ...@@ -365,7 +243,7 @@
365 ] 243 ]
366 ]) ; 244 ]) ;
367 sp:where ([ sp:object spin:_this ; 245 sp:where ([ sp:object spin:_this ;
368 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 246 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
369 sp:subject 247 sp:subject
370 [ sp:varName "something"^^xsd:string 248 [ sp:varName "something"^^xsd:string
371 ] 249 ]
...@@ -393,21 +271,27 @@ ...@@ -393,21 +271,27 @@
393 ] ; 271 ] ;
394 spin:rule 272 spin:rule
395 [ rdf:type sp:Construct ; 273 [ rdf:type sp:Construct ;
396 - rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 274 + rdfs:comment "STEP 00027 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
397 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 275 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
398 sp:predicate rdf:type ; 276 sp:predicate rdf:type ;
399 - sp:subject _:b4 277 + sp:subject
278 + [ sp:varName "organization"^^xsd:string
279 + ]
400 ] [ sp:object 280 ] [ sp:object
401 [ sp:varName "organizationName"^^xsd:string 281 [ sp:varName "organizationName"^^xsd:string
402 ] ; 282 ] ;
403 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 283 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
404 - sp:subject _:b4 284 + sp:subject
285 + [ sp:varName "organization"^^xsd:string
286 + ]
405 ] [ sp:object spin:_this ; 287 ] [ sp:object spin:_this ;
406 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 288 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
407 - sp:subject _:b4 289 + sp:subject
290 + [ sp:varName "organization"^^xsd:string
291 + ]
408 ]) ; 292 ]) ;
409 sp:where ([ sp:object spin:_this ; 293 sp:where ([ sp:object spin:_this ;
410 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 294 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
411 sp:subject 295 sp:subject
412 [ sp:varName "something"^^xsd:string 296 [ sp:varName "something"^^xsd:string
413 ] 297 ]
...@@ -423,42 +307,21 @@ ...@@ -423,42 +307,21 @@
423 [ sp:varName "somethingElse"^^xsd:string 307 [ sp:varName "somethingElse"^^xsd:string
424 ] 308 ]
425 ]) 309 ])
426 - ] [ rdf:type sp:NotExists ; 310 + ] [ rdf:type sp:Bind ;
427 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 311 + sp:expression
428 - sp:predicate rdf:type ; 312 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
429 - sp:subject 313 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
430 - [ sp:varName "organization"^^xsd:string 314 + ]
431 - ] 315 + ] ;
432 - ] [ sp:object 316 + sp:variable
433 - [ sp:varName "organizationName"^^xsd:string 317 + [ sp:varName "organization"^^xsd:string
434 - ] ; 318 + ]
435 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
436 - sp:subject
437 - [ sp:varName "organization"^^xsd:string
438 - ]
439 - ])
440 ]) 319 ])
441 ] ; 320 ] ;
442 spin:rule 321 spin:rule
443 [ rdf:type sp:Construct ; 322 [ rdf:type sp:Construct ;
444 - rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; 323 + rdfs:comment "STEP 00023 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
445 - sp:templates ([ sp:object spin:_this ; 324 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
446 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
447 - sp:subject
448 - [ sp:varName "organization"^^xsd:string
449 - ]
450 - ]) ;
451 - sp:where ([ sp:object spin:_this ;
452 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
453 - sp:subject
454 - [ sp:varName "something"^^xsd:string
455 - ]
456 - ] [ sp:object
457 - [ sp:varName "organizationName"^^xsd:string
458 - ] ;
459 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
460 - sp:subject spin:_this
461 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
462 sp:predicate rdf:type ; 325 sp:predicate rdf:type ;
463 sp:subject 326 sp:subject
464 [ sp:varName "organization"^^xsd:string 327 [ sp:varName "organization"^^xsd:string
...@@ -470,19 +333,14 @@ ...@@ -470,19 +333,14 @@
470 sp:subject 333 sp:subject
471 [ sp:varName "organization"^^xsd:string 334 [ sp:varName "organization"^^xsd:string
472 ] 335 ]
473 - ]) 336 + ] [ sp:object spin:_this ;
474 - ] ;
475 - spin:rule
476 - [ rdf:type sp:Construct ;
477 - rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
478 - sp:templates ([ sp:object spin:_this ;
479 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 337 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
480 sp:subject 338 sp:subject
481 [ sp:varName "organization"^^xsd:string 339 [ sp:varName "organization"^^xsd:string
482 ] 340 ]
483 ]) ; 341 ]) ;
484 sp:where ([ sp:object spin:_this ; 342 sp:where ([ sp:object spin:_this ;
485 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 343 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
486 sp:subject 344 sp:subject
487 [ sp:varName "something"^^xsd:string 345 [ sp:varName "something"^^xsd:string
488 ] 346 ]
...@@ -491,23 +349,27 @@ ...@@ -491,23 +349,27 @@
491 ] ; 349 ] ;
492 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 350 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
493 sp:subject spin:_this 351 sp:subject spin:_this
494 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 352 + ] [ rdf:type sp:NotExists ;
495 - sp:predicate rdf:type ; 353 + sp:elements ([ sp:object spin:_this ;
496 - sp:subject 354 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
497 - [ sp:varName "organization"^^xsd:string 355 + sp:subject
498 - ] 356 + [ sp:varName "somethingElse"^^xsd:string
499 - ] [ sp:object 357 + ]
500 - [ sp:varName "organizationName"^^xsd:string 358 + ])
359 + ] [ rdf:type sp:Bind ;
360 + sp:expression
361 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
362 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
363 + ]
501 ] ; 364 ] ;
502 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 365 + sp:variable
503 - sp:subject
504 [ sp:varName "organization"^^xsd:string 366 [ sp:varName "organization"^^xsd:string
505 ] 367 ]
506 ]) 368 ])
507 ] ; 369 ] ;
508 spin:rule 370 spin:rule
509 [ rdf:type sp:Construct ; 371 [ rdf:type sp:Construct ;
510 - rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ; 372 + rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
511 sp:templates ([ sp:object spin:_this ; 373 sp:templates ([ sp:object spin:_this ;
512 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 374 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
513 sp:subject 375 sp:subject
...@@ -515,7 +377,7 @@ ...@@ -515,7 +377,7 @@
515 ] 377 ]
516 ]) ; 378 ]) ;
517 sp:where ([ sp:object spin:_this ; 379 sp:where ([ sp:object spin:_this ;
518 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; 380 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
519 sp:subject 381 sp:subject
520 [ sp:varName "something"^^xsd:string 382 [ sp:varName "something"^^xsd:string
521 ] 383 ]
...@@ -543,8 +405,20 @@ ...@@ -543,8 +405,20 @@
543 ] ; 405 ] ;
544 spin:rule 406 spin:rule
545 [ rdf:type sp:Construct ; 407 [ rdf:type sp:Construct ;
546 - rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; 408 + rdfs:comment "STEP 00031 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
547 - sp:templates ([ sp:object spin:_this ; 409 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
410 + sp:predicate rdf:type ;
411 + sp:subject
412 + [ sp:varName "organization"^^xsd:string
413 + ]
414 + ] [ sp:object
415 + [ sp:varName "organizationName"^^xsd:string
416 + ] ;
417 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
418 + sp:subject
419 + [ sp:varName "organization"^^xsd:string
420 + ]
421 + ] [ sp:object spin:_this ;
548 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 422 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
549 sp:subject 423 sp:subject
550 [ sp:varName "organization"^^xsd:string 424 [ sp:varName "organization"^^xsd:string
...@@ -560,26 +434,27 @@ ...@@ -560,26 +434,27 @@
560 ] ; 434 ] ;
561 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 435 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
562 sp:subject spin:_this 436 sp:subject spin:_this
563 - ] [ rdf:type sp:NamedGraph ; 437 + ] [ rdf:type sp:NotExists ;
564 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 438 + sp:elements ([ sp:object spin:_this ;
565 - sp:predicate rdf:type ; 439 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
566 - sp:subject
567 - [ sp:varName "organization"^^xsd:string
568 - ]
569 - ] [ sp:object
570 - [ sp:varName "organizationName"^^xsd:string
571 - ] ;
572 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
573 sp:subject 440 sp:subject
574 - [ sp:varName "organization"^^xsd:string 441 + [ sp:varName "somethingElse"^^xsd:string
575 ] 442 ]
576 - ]) ; 443 + ])
577 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 444 + ] [ rdf:type sp:Bind ;
445 + sp:expression
446 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
447 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
448 + ]
449 + ] ;
450 + sp:variable
451 + [ sp:varName "organization"^^xsd:string
452 + ]
578 ]) 453 ])
579 ] ; 454 ] ;
580 spin:rule 455 spin:rule
581 [ rdf:type sp:Construct ; 456 [ rdf:type sp:Construct ;
582 - rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ; 457 + rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ;
583 sp:templates ([ sp:object spin:_this ; 458 sp:templates ([ sp:object spin:_this ;
584 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 459 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
585 sp:subject 460 sp:subject
...@@ -587,7 +462,7 @@ ...@@ -587,7 +462,7 @@
587 ] 462 ]
588 ]) ; 463 ]) ;
589 sp:where ([ sp:object spin:_this ; 464 sp:where ([ sp:object spin:_this ;
590 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; 465 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
591 sp:subject 466 sp:subject
592 [ sp:varName "something"^^xsd:string 467 [ sp:varName "something"^^xsd:string
593 ] 468 ]
...@@ -596,22 +471,25 @@ ...@@ -596,22 +471,25 @@
596 ] ; 471 ] ;
597 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 472 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
598 sp:subject spin:_this 473 sp:subject spin:_this
599 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 474 + ] [ rdf:type sp:NamedGraph ;
600 - sp:predicate rdf:type ; 475 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
601 - sp:subject 476 + sp:predicate rdf:type ;
602 - [ sp:varName "organization"^^xsd:string 477 + sp:subject
603 - ] 478 + [ sp:varName "organization"^^xsd:string
604 - ] [ sp:object 479 + ]
605 - [ sp:varName "organizationName"^^xsd:string 480 + ] [ sp:object
606 - ] ; 481 + [ sp:varName "organizationName"^^xsd:string
607 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 482 + ] ;
608 - sp:subject 483 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
609 - [ sp:varName "organization"^^xsd:string 484 + sp:subject
610 - ] 485 + [ sp:varName "organization"^^xsd:string
486 + ]
487 + ]) ;
488 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
611 ]) 489 ])
612 ] . 490 ] .
613 491
614 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> 492 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
615 rdf:type owl:Ontology ; 493 rdf:type owl:Ontology ;
616 - owl:imports <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/dpr/spin/1.1/lib> ; 494 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
617 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 495 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -21,96 +21,49 @@ ...@@ -21,96 +21,49 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 24 + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
25 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; 25 + sp:templates ([ sp:object
26 - sp:predicate rdf:type ; 26 + [ sp:varName "reportKind"^^xsd:string
27 - sp:subject _:b1
28 - ] [ sp:object
29 - [ sp:varName "productionReport"^^xsd:string
30 - ] ;
31 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
32 - sp:subject _:b1
33 - ] [ sp:object
34 - [ sp:varName "name"^^xsd:string
35 - ] ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
37 - sp:subject _:b1
38 - ] [ sp:object
39 - [ sp:varName "reportPeriodType"^^xsd:string
40 - ] ;
41 - sp:predicate rdf:type ;
42 - sp:subject _:b1
43 - ] [ sp:object _:b2 ;
44 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
45 - sp:subject _:b1
46 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
47 - sp:predicate rdf:type ;
48 - sp:subject _:b2
49 - ] [ sp:object
50 - [ sp:varName "productVolumeRef"^^xsd:string
51 - ] ;
52 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
53 - sp:subject _:b2
54 - ] [ sp:object _:b3 ;
55 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
56 - sp:subject _:b2
57 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
58 - sp:predicate rdf:type ;
59 - sp:subject _:b3
60 - ] [ sp:object _:b4 ;
61 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
62 - sp:subject _:b1
63 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
64 - sp:predicate rdf:type ;
65 - sp:subject _:b4
66 - ] [ sp:object
67 - [ sp:varName "productVolumeRef"^^xsd:string
68 ] ; 27 ] ;
69 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
70 - sp:subject _:b4
71 - ] [ sp:object _:b5 ;
72 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
73 - sp:subject _:b4
74 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
75 sp:predicate rdf:type ; 28 sp:predicate rdf:type ;
76 - sp:subject _:b5 29 + sp:subject
77 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 30 + [ sp:varName "productVolumeReport"^^xsd:string
78 - sp:predicate rdf:type ; 31 + ]
79 - sp:subject _:b6 32 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
80 - ] [ sp:object
81 - [ sp:varName "productVolumeRef"^^xsd:string
82 - ] ;
83 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
84 - sp:subject _:b6
85 - ] [ sp:object _:b7 ;
86 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
87 - sp:subject _:b6
88 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
89 sp:predicate rdf:type ; 33 sp:predicate rdf:type ;
90 - sp:subject _:b7 34 + sp:subject
91 - ] [ sp:object _:b2 ; 35 + [ sp:varName "reportKind"^^xsd:string
92 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; 36 + ]
93 - sp:subject _:b6 37 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
94 - ] [ sp:object _:b4 ; 38 + sp:predicate rdfs:subClassOf ;
95 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; 39 + sp:subject
96 - sp:subject _:b6 40 + [ sp:varName "reportKind"^^xsd:string
97 - ] [ sp:object _:b3 ; 41 + ]
98 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
99 - sp:subject _:b7
100 - ] [ sp:object _:b5 ;
101 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
102 - sp:subject _:b7
103 ] [ sp:object 42 ] [ sp:object
104 - [ sp:varName "title"^^xsd:string 43 + [ sp:varName "kind"^^xsd:string
105 ] ; 44 ] ;
106 - sp:predicate <http://purl.org/dc/elements/1.1/title> ; 45 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
107 - sp:subject _:b1 46 + sp:subject
47 + [ sp:varName "reportKind"^^xsd:string
48 + ]
108 ]) ; 49 ]) ;
109 sp:where ([ sp:object spin:_this ; 50 sp:where ([ sp:object spin:_this ;
110 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 51 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
111 sp:subject 52 sp:subject
112 [ sp:varName "productionReport"^^xsd:string 53 [ sp:varName "productionReport"^^xsd:string
113 ] 54 ]
55 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
56 + sp:predicate rdf:type ;
57 + sp:subject
58 + [ sp:varName "productVolumeReport"^^xsd:string
59 + ]
60 + ] [ sp:object
61 + [ sp:varName "productionReport"^^xsd:string
62 + ] ;
63 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
64 + sp:subject
65 + [ sp:varName "productVolumeReport"^^xsd:string
66 + ]
114 ] [ sp:object 67 ] [ sp:object
115 [ sp:varName "productVolumeRef"^^xsd:string 68 [ sp:varName "productVolumeRef"^^xsd:string
116 ] ; 69 ] ;
...@@ -135,103 +88,173 @@ ...@@ -135,103 +88,173 @@
135 sp:subject 88 sp:subject
136 [ sp:varName "nameRef"^^xsd:string 89 [ sp:varName "nameRef"^^xsd:string
137 ] 90 ]
138 - ] [ rdf:type sp:Optional ; 91 + ] [ sp:object
139 - sp:elements ([ sp:object 92 + [ sp:varName "kind"^^xsd:string
140 - [ sp:varName "periodKindRef"^^xsd:string 93 + ] ;
141 - ] ; 94 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
142 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; 95 + sp:subject
143 - sp:subject 96 + [ sp:varName "productVolumeRef"^^xsd:string
144 - [ sp:varName "productVolumeRef"^^xsd:string 97 + ]
145 - ] 98 + ] [ rdf:type sp:Bind ;
146 - ]) 99 + sp:expression
147 - ] [ rdf:type sp:Optional ; 100 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
101 + sp:arg1 [ sp:varName "kind"^^xsd:string
102 + ]
103 + ] ;
104 + sp:variable
105 + [ sp:varName "reportKind"^^xsd:string
106 + ]
107 + ])
108 + ] ;
109 + spin:rule
110 + [ rdf:type sp:Construct ;
111 + rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ;
112 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
113 + sp:predicate rdf:type ;
114 + sp:subject _:b1
115 + ] [ sp:object
116 + [ sp:varName "contextFacility"^^xsd:string
117 + ] ;
118 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
119 + sp:subject _:b1
120 + ] [ sp:object _:b1 ;
121 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
122 + sp:subject
123 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
124 + ]
125 + ] [ sp:object _:b1 ;
126 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
127 + sp:subject
128 + [ sp:varName "productionFacilityToDate"^^xsd:string
129 + ]
130 + ]) ;
131 + sp:where ([ sp:object
132 + [ sp:varName "productVolumeRef"^^xsd:string
133 + ] ;
134 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
135 + sp:subject spin:_this
136 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
137 + sp:predicate rdf:type ;
138 + sp:subject
139 + [ sp:varName "productVolumeRef"^^xsd:string
140 + ]
141 + ] [ rdf:type sp:NotExists ;
148 sp:elements ([ sp:object 142 sp:elements ([ sp:object
149 - [ sp:varName "titleRef"^^xsd:string 143 + [ sp:varName "installationRef"^^xsd:string
150 ] ; 144 ] ;
151 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; 145 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
152 sp:subject 146 sp:subject
153 [ sp:varName "productVolumeRef"^^xsd:string 147 [ sp:varName "productVolumeRef"^^xsd:string
154 ] 148 ]
155 ] [ sp:object 149 ] [ sp:object
156 - [ sp:varName "title"^^xsd:string 150 + [ sp:varName "installationRef"^^xsd:string
157 ] ; 151 ] ;
158 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 152 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
159 sp:subject 153 sp:subject
160 - [ sp:varName "titleRef"^^xsd:string 154 + [ sp:varName "productionFacility"^^xsd:string
161 ] 155 ]
162 ]) 156 ])
163 - ] [ rdf:type sp:Bind ; 157 + ] [ sp:object
164 - sp:expression 158 + [ sp:varName "contextFacilityRef"^^xsd:string
165 - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
166 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
167 - ]
168 ] ; 159 ] ;
169 - sp:variable 160 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
170 - [ sp:varName "reportPeriodType"^^xsd:string 161 + sp:subject
162 + [ sp:varName "productVolumeRef"^^xsd:string
163 + ]
164 + ] [ sp:object
165 + [ sp:varName "contextFacilityRef"^^xsd:string
166 + ] ;
167 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
168 + sp:subject
169 + [ sp:varName "contextFacility"^^xsd:string
170 + ]
171 + ] [ sp:object
172 + [ sp:varName "productVolumeRef"^^xsd:string
173 + ] ;
174 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
175 + sp:subject
176 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
177 + ]
178 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
179 + sp:predicate rdf:type ;
180 + sp:subject
181 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
182 + ]
183 + ] [ sp:object
184 + [ sp:varName "productionFacilityToDate"^^xsd:string
185 + ] ;
186 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
187 + sp:subject
188 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
189 + ]
190 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
191 + sp:predicate rdf:type ;
192 + sp:subject
193 + [ sp:varName "productionFacilityToDate"^^xsd:string
171 ] 194 ]
172 ]) 195 ])
173 ] ; 196 ] ;
174 spin:rule 197 spin:rule
175 [ rdf:type sp:Construct ; 198 [ rdf:type sp:Construct ;
176 - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; 199 + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
177 sp:templates ([ sp:object 200 sp:templates ([ sp:object
178 - [ sp:varName "dTimStart"^^xsd:string 201 + [ sp:varName "dateStart"^^xsd:string
179 ] ; 202 ] ;
180 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 203 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
181 sp:subject 204 sp:subject
182 [ sp:varName "productionFlow"^^xsd:string 205 [ sp:varName "productionFlow"^^xsd:string
183 ] 206 ]
184 ] [ sp:object 207 ] [ sp:object
185 - [ sp:varName "dTimEnd"^^xsd:string 208 + [ sp:varName "dateEnd"^^xsd:string
186 ] ; 209 ] ;
187 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 210 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
188 sp:subject 211 sp:subject
189 [ sp:varName "productionFlow"^^xsd:string 212 [ sp:varName "productionFlow"^^xsd:string
190 ] 213 ]
191 ] [ sp:object 214 ] [ sp:object
192 - [ sp:varName "dTimEnd"^^xsd:string 215 + [ sp:varName "dateEnd"^^xsd:string
193 ] ; 216 ] ;
194 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 217 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
195 sp:subject 218 sp:subject
196 [ sp:varName "productionFlowToDate"^^xsd:string 219 [ sp:varName "productionFlowToDate"^^xsd:string
197 ] 220 ]
198 ] [ sp:object 221 ] [ sp:object
199 - [ sp:varName "dTimStart"^^xsd:string 222 + [ sp:varName "dateStart"^^xsd:string
200 ] ; 223 ] ;
201 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 224 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
202 sp:subject 225 sp:subject
203 [ sp:varName "productionInventory"^^xsd:string 226 [ sp:varName "productionInventory"^^xsd:string
204 ] 227 ]
205 ] [ sp:object 228 ] [ sp:object
206 - [ sp:varName "dTimEnd"^^xsd:string 229 + [ sp:varName "dateEnd"^^xsd:string
207 ] ; 230 ] ;
208 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 231 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
209 sp:subject 232 sp:subject
210 [ sp:varName "productionInventory"^^xsd:string 233 [ sp:varName "productionInventory"^^xsd:string
211 ] 234 ]
212 ] [ sp:object 235 ] [ sp:object
213 - [ sp:varName "dTimEnd"^^xsd:string 236 + [ sp:varName "dateEnd"^^xsd:string
214 ] ; 237 ] ;
215 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 238 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
216 sp:subject 239 sp:subject
217 [ sp:varName "productionInventoryToDate"^^xsd:string 240 [ sp:varName "productionInventoryToDate"^^xsd:string
218 ] 241 ]
219 ] [ sp:object 242 ] [ sp:object
220 - [ sp:varName "dTimStart"^^xsd:string 243 + [ sp:varName "dateStart"^^xsd:string
221 ] ; 244 ] ;
222 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 245 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
223 sp:subject 246 sp:subject
224 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 247 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
225 ] 248 ]
226 ] [ sp:object 249 ] [ sp:object
227 - [ sp:varName "dTimEnd"^^xsd:string 250 + [ sp:varName "dateEnd"^^xsd:string
228 ] ; 251 ] ;
229 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 252 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
230 sp:subject 253 sp:subject
231 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 254 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
232 ] 255 ]
233 ] [ sp:object 256 ] [ sp:object
234 - [ sp:varName "dTimEnd"^^xsd:string 257 + [ sp:varName "dateEnd"^^xsd:string
235 ] ; 258 ] ;
236 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 259 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
237 sp:subject 260 sp:subject
...@@ -249,16 +272,16 @@ ...@@ -249,16 +272,16 @@
249 [ sp:varName "productVolumeRef"^^xsd:string 272 [ sp:varName "productVolumeRef"^^xsd:string
250 ] 273 ]
251 ] [ sp:object 274 ] [ sp:object
252 - [ sp:varName "dTimStart"^^xsd:string 275 + [ sp:varName "dateStart"^^xsd:string
253 ] ; 276 ] ;
254 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 277 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
255 sp:subject 278 sp:subject
256 [ sp:varName "productVolumeRef"^^xsd:string 279 [ sp:varName "productVolumeRef"^^xsd:string
257 ] 280 ]
258 ] [ sp:object 281 ] [ sp:object
259 - [ sp:varName "dTimEnd"^^xsd:string 282 + [ sp:varName "dateEnd"^^xsd:string
260 ] ; 283 ] ;
261 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 284 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
262 sp:subject 285 sp:subject
263 [ sp:varName "productVolumeRef"^^xsd:string 286 [ sp:varName "productVolumeRef"^^xsd:string
264 ] 287 ]
...@@ -338,52 +361,57 @@ ...@@ -338,52 +361,57 @@
338 ] ; 361 ] ;
339 spin:rule 362 spin:rule
340 [ rdf:type sp:Construct ; 363 [ rdf:type sp:Construct ;
341 - rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; 364 + rdfs:comment """STEP 20060 Set the facility operator
342 - sp:templates ([ sp:object 365 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
343 - [ sp:varName "contextFacility"^^xsd:string 366 + sp:templates ([ sp:object _:b2 ;
344 - ] ; 367 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
345 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
346 sp:subject 368 sp:subject
347 - [ sp:varName "productionFacility"^^xsd:string 369 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
348 ] 370 ]
371 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
372 + sp:predicate rdf:type ;
373 + sp:subject _:b2
374 + ] [ sp:object
375 + [ sp:varName "operator"^^xsd:string
376 + ] ;
377 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
378 + sp:subject _:b2
349 ]) ; 379 ]) ;
350 sp:where ([ sp:object 380 sp:where ([ sp:object
351 [ sp:varName "productVolumeRef"^^xsd:string 381 [ sp:varName "productVolumeRef"^^xsd:string
352 ] ; 382 ] ;
353 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 383 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
354 sp:subject spin:_this 384 sp:subject spin:_this
355 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
356 - sp:predicate rdf:type ;
357 - sp:subject
358 - [ sp:varName "productVolumeRef"^^xsd:string
359 - ]
360 ] [ sp:object 385 ] [ sp:object
361 - [ sp:varName "installationRef"^^xsd:string
362 - ] ;
363 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
364 - sp:subject
365 [ sp:varName "productVolumeRef"^^xsd:string 386 [ sp:varName "productVolumeRef"^^xsd:string
366 - ]
367 - ] [ sp:object
368 - [ sp:varName "installationRef"^^xsd:string
369 ] ; 387 ] ;
370 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 388 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
371 sp:subject 389 sp:subject
372 - [ sp:varName "productionFacility"^^xsd:string 390 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
391 + ]
392 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
393 + sp:predicate rdf:type ;
394 + sp:subject
395 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
396 + ]
397 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
398 + sp:predicate rdf:type ;
399 + sp:subject
400 + [ sp:varName "productVolumeRef"^^xsd:string
373 ] 401 ]
374 ] [ sp:object 402 ] [ sp:object
375 - [ sp:varName "contextFacilityRef"^^xsd:string 403 + [ sp:varName "operatorRef"^^xsd:string
376 ] ; 404 ] ;
377 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 405 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
378 sp:subject 406 sp:subject
379 [ sp:varName "productVolumeRef"^^xsd:string 407 [ sp:varName "productVolumeRef"^^xsd:string
380 ] 408 ]
381 ] [ sp:object 409 ] [ sp:object
382 - [ sp:varName "contextFacilityRef"^^xsd:string 410 + [ sp:varName "operatorRef"^^xsd:string
383 ] ; 411 ] ;
384 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 412 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
385 sp:subject 413 sp:subject
386 - [ sp:varName "contextFacility"^^xsd:string 414 + [ sp:varName "operator"^^xsd:string
387 ] 415 ]
388 ]) 416 ])
389 ] ; 417 ] ;
...@@ -457,121 +485,116 @@ ...@@ -457,121 +485,116 @@
457 ] ; 485 ] ;
458 spin:rule 486 spin:rule
459 [ rdf:type sp:Construct ; 487 [ rdf:type sp:Construct ;
460 - rdfs:comment """STEP 20060 Set the facility operator 488 + rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ;
461 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; 489 + sp:templates ([ sp:object
462 - sp:templates ([ sp:object _:b8 ; 490 + [ sp:varName "contextFacility"^^xsd:string
463 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; 491 + ] ;
492 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
464 sp:subject 493 sp:subject
465 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 494 + [ sp:varName "productionFacility"^^xsd:string
466 ] 495 ]
467 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
468 - sp:predicate rdf:type ;
469 - sp:subject _:b8
470 - ] [ sp:object
471 - [ sp:varName "operator"^^xsd:string
472 - ] ;
473 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
474 - sp:subject _:b8
475 ]) ; 496 ]) ;
476 sp:where ([ sp:object 497 sp:where ([ sp:object
477 [ sp:varName "productVolumeRef"^^xsd:string 498 [ sp:varName "productVolumeRef"^^xsd:string
478 ] ; 499 ] ;
479 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 500 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
480 - sp:subject spin:_this 501 + sp:subject spin:_this
481 - ] [ sp:object 502 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
482 - [ sp:varName "productVolumeRef"^^xsd:string
483 - ] ;
484 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
485 - sp:subject
486 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
487 - ]
488 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
489 sp:predicate rdf:type ; 503 sp:predicate rdf:type ;
490 sp:subject 504 sp:subject
491 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 505 + [ sp:varName "productVolumeRef"^^xsd:string
492 ] 506 ]
493 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 507 + ] [ sp:object
494 - sp:predicate rdf:type ; 508 + [ sp:varName "installationRef"^^xsd:string
509 + ] ;
510 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
495 sp:subject 511 sp:subject
496 [ sp:varName "productVolumeRef"^^xsd:string 512 [ sp:varName "productVolumeRef"^^xsd:string
497 ] 513 ]
498 ] [ sp:object 514 ] [ sp:object
499 - [ sp:varName "operatorRef"^^xsd:string 515 + [ sp:varName "installationRef"^^xsd:string
500 ] ; 516 ] ;
501 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 517 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
518 + sp:subject
519 + [ sp:varName "productionFacility"^^xsd:string
520 + ]
521 + ] [ sp:object
522 + [ sp:varName "contextFacilityRef"^^xsd:string
523 + ] ;
524 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
502 sp:subject 525 sp:subject
503 [ sp:varName "productVolumeRef"^^xsd:string 526 [ sp:varName "productVolumeRef"^^xsd:string
504 ] 527 ]
505 ] [ sp:object 528 ] [ sp:object
506 - [ sp:varName "operatorRef"^^xsd:string 529 + [ sp:varName "contextFacilityRef"^^xsd:string
507 ] ; 530 ] ;
508 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 531 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
509 sp:subject 532 sp:subject
510 - [ sp:varName "operator"^^xsd:string 533 + [ sp:varName "contextFacility"^^xsd:string
511 ] 534 ]
512 ]) 535 ])
513 ] ; 536 ] ;
514 spin:rule 537 spin:rule
515 [ rdf:type sp:Construct ; 538 [ rdf:type sp:Construct ;
516 - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; 539 + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
517 sp:templates ([ sp:object 540 sp:templates ([ sp:object
518 - [ sp:varName "dateStart"^^xsd:string 541 + [ sp:varName "dTimStart"^^xsd:string
519 ] ; 542 ] ;
520 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 543 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
521 sp:subject 544 sp:subject
522 [ sp:varName "productionFlow"^^xsd:string 545 [ sp:varName "productionFlow"^^xsd:string
523 ] 546 ]
524 ] [ sp:object 547 ] [ sp:object
525 - [ sp:varName "dateEnd"^^xsd:string 548 + [ sp:varName "dTimEnd"^^xsd:string
526 ] ; 549 ] ;
527 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 550 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
528 sp:subject 551 sp:subject
529 [ sp:varName "productionFlow"^^xsd:string 552 [ sp:varName "productionFlow"^^xsd:string
530 ] 553 ]
531 ] [ sp:object 554 ] [ sp:object
532 - [ sp:varName "dateEnd"^^xsd:string 555 + [ sp:varName "dTimEnd"^^xsd:string
533 ] ; 556 ] ;
534 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 557 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
535 sp:subject 558 sp:subject
536 [ sp:varName "productionFlowToDate"^^xsd:string 559 [ sp:varName "productionFlowToDate"^^xsd:string
537 ] 560 ]
538 ] [ sp:object 561 ] [ sp:object
539 - [ sp:varName "dateStart"^^xsd:string 562 + [ sp:varName "dTimStart"^^xsd:string
540 ] ; 563 ] ;
541 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 564 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
542 sp:subject 565 sp:subject
543 [ sp:varName "productionInventory"^^xsd:string 566 [ sp:varName "productionInventory"^^xsd:string
544 ] 567 ]
545 ] [ sp:object 568 ] [ sp:object
546 - [ sp:varName "dateEnd"^^xsd:string 569 + [ sp:varName "dTimEnd"^^xsd:string
547 ] ; 570 ] ;
548 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 571 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
549 sp:subject 572 sp:subject
550 [ sp:varName "productionInventory"^^xsd:string 573 [ sp:varName "productionInventory"^^xsd:string
551 ] 574 ]
552 ] [ sp:object 575 ] [ sp:object
553 - [ sp:varName "dateEnd"^^xsd:string 576 + [ sp:varName "dTimEnd"^^xsd:string
554 ] ; 577 ] ;
555 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 578 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
556 sp:subject 579 sp:subject
557 [ sp:varName "productionInventoryToDate"^^xsd:string 580 [ sp:varName "productionInventoryToDate"^^xsd:string
558 ] 581 ]
559 ] [ sp:object 582 ] [ sp:object
560 - [ sp:varName "dateStart"^^xsd:string 583 + [ sp:varName "dTimStart"^^xsd:string
561 ] ; 584 ] ;
562 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 585 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
563 sp:subject 586 sp:subject
564 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 587 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
565 ] 588 ]
566 ] [ sp:object 589 ] [ sp:object
567 - [ sp:varName "dateEnd"^^xsd:string 590 + [ sp:varName "dTimEnd"^^xsd:string
568 ] ; 591 ] ;
569 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 592 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
570 sp:subject 593 sp:subject
571 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 594 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
572 ] 595 ]
573 ] [ sp:object 596 ] [ sp:object
574 - [ sp:varName "dateEnd"^^xsd:string 597 + [ sp:varName "dTimEnd"^^xsd:string
575 ] ; 598 ] ;
576 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 599 sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
577 sp:subject 600 sp:subject
...@@ -589,16 +612,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -589,16 +612,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
589 [ sp:varName "productVolumeRef"^^xsd:string 612 [ sp:varName "productVolumeRef"^^xsd:string
590 ] 613 ]
591 ] [ sp:object 614 ] [ sp:object
592 - [ sp:varName "dateStart"^^xsd:string 615 + [ sp:varName "dTimStart"^^xsd:string
593 ] ; 616 ] ;
594 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 617 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
595 sp:subject 618 sp:subject
596 [ sp:varName "productVolumeRef"^^xsd:string 619 [ sp:varName "productVolumeRef"^^xsd:string
597 ] 620 ]
598 ] [ sp:object 621 ] [ sp:object
599 - [ sp:varName "dateEnd"^^xsd:string 622 + [ sp:varName "dTimEnd"^^xsd:string
600 ] ; 623 ] ;
601 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 624 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
602 sp:subject 625 sp:subject
603 [ sp:varName "productVolumeRef"^^xsd:string 626 [ sp:varName "productVolumeRef"^^xsd:string
604 ] 627 ]
...@@ -678,132 +701,96 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -678,132 +701,96 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
678 ] ; 701 ] ;
679 spin:rule 702 spin:rule
680 [ rdf:type sp:Construct ; 703 [ rdf:type sp:Construct ;
681 - rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ; 704 + rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
682 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 705 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
683 sp:predicate rdf:type ; 706 sp:predicate rdf:type ;
684 - sp:subject _:b9 707 + sp:subject _:b3
685 ] [ sp:object 708 ] [ sp:object
686 - [ sp:varName "contextFacility"^^xsd:string 709 + [ sp:varName "productionReport"^^xsd:string
687 ] ; 710 ] ;
688 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 711 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
689 - sp:subject _:b9 712 + sp:subject _:b3
690 - ] [ sp:object _:b9 ; 713 + ] [ sp:object
691 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 714 + [ sp:varName "name"^^xsd:string
692 - sp:subject
693 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
694 - ]
695 - ] [ sp:object _:b9 ;
696 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
697 - sp:subject
698 - [ sp:varName "productionFacilityToDate"^^xsd:string
699 - ]
700 - ]) ;
701 - sp:where ([ sp:object
702 - [ sp:varName "productVolumeRef"^^xsd:string
703 ] ; 715 ] ;
704 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 716 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
705 - sp:subject spin:_this 717 + sp:subject _:b3
706 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
707 - sp:predicate rdf:type ;
708 - sp:subject
709 - [ sp:varName "productVolumeRef"^^xsd:string
710 - ]
711 - ] [ rdf:type sp:NotExists ;
712 - sp:elements ([ sp:object
713 - [ sp:varName "installationRef"^^xsd:string
714 - ] ;
715 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
716 - sp:subject
717 - [ sp:varName "productVolumeRef"^^xsd:string
718 - ]
719 - ] [ sp:object
720 - [ sp:varName "installationRef"^^xsd:string
721 - ] ;
722 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
723 - sp:subject
724 - [ sp:varName "productionFacility"^^xsd:string
725 - ]
726 - ])
727 ] [ sp:object 718 ] [ sp:object
728 - [ sp:varName "contextFacilityRef"^^xsd:string 719 + [ sp:varName "reportPeriodType"^^xsd:string
729 ] ; 720 ] ;
730 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 721 + sp:predicate rdf:type ;
731 - sp:subject 722 + sp:subject _:b3
732 - [ sp:varName "productVolumeRef"^^xsd:string 723 + ] [ sp:object _:b4 ;
733 - ] 724 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
725 + sp:subject _:b3
726 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
727 + sp:predicate rdf:type ;
728 + sp:subject _:b4
734 ] [ sp:object 729 ] [ sp:object
735 - [ sp:varName "contextFacilityRef"^^xsd:string 730 + [ sp:varName "productVolumeRef"^^xsd:string
736 ] ; 731 ] ;
737 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 732 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
738 - sp:subject 733 + sp:subject _:b4
739 - [ sp:varName "contextFacility"^^xsd:string 734 + ] [ sp:object _:b5 ;
740 - ] 735 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
736 + sp:subject _:b4
737 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
738 + sp:predicate rdf:type ;
739 + sp:subject _:b5
740 + ] [ sp:object _:b6 ;
741 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
742 + sp:subject _:b3
743 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
744 + sp:predicate rdf:type ;
745 + sp:subject _:b6
741 ] [ sp:object 746 ] [ sp:object
742 [ sp:varName "productVolumeRef"^^xsd:string 747 [ sp:varName "productVolumeRef"^^xsd:string
743 ] ; 748 ] ;
744 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 749 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
745 - sp:subject 750 + sp:subject _:b6
746 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 751 + ] [ sp:object _:b7 ;
747 - ] 752 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
753 + sp:subject _:b6
754 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
755 + sp:predicate rdf:type ;
756 + sp:subject _:b7
748 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 757 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
749 sp:predicate rdf:type ; 758 sp:predicate rdf:type ;
750 - sp:subject 759 + sp:subject _:b8
751 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
752 - ]
753 ] [ sp:object 760 ] [ sp:object
754 - [ sp:varName "productionFacilityToDate"^^xsd:string 761 + [ sp:varName "productVolumeRef"^^xsd:string
755 ] ; 762 ] ;
763 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
764 + sp:subject _:b8
765 + ] [ sp:object _:b9 ;
756 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 766 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
757 - sp:subject 767 + sp:subject _:b8
758 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
759 - ]
760 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 768 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
761 sp:predicate rdf:type ; 769 sp:predicate rdf:type ;
762 - sp:subject 770 + sp:subject _:b9
763 - [ sp:varName "productionFacilityToDate"^^xsd:string 771 + ] [ sp:object _:b4 ;
764 - ] 772 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
765 - ]) 773 + sp:subject _:b8
766 - ] ; 774 + ] [ sp:object _:b6 ;
767 - spin:rule 775 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
768 - [ rdf:type sp:Construct ; 776 + sp:subject _:b8
769 - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; 777 + ] [ sp:object _:b5 ;
770 - sp:templates ([ sp:object 778 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
771 - [ sp:varName "reportKind"^^xsd:string 779 + sp:subject _:b9
772 - ] ; 780 + ] [ sp:object _:b7 ;
773 - sp:predicate rdf:type ; 781 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
774 - sp:subject 782 + sp:subject _:b9
775 - [ sp:varName "productVolumeReport"^^xsd:string
776 - ]
777 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
778 - sp:predicate rdf:type ;
779 - sp:subject
780 - [ sp:varName "reportKind"^^xsd:string
781 - ]
782 ] [ sp:object 783 ] [ sp:object
783 - [ sp:varName "kind"^^xsd:string 784 + [ sp:varName "title"^^xsd:string
784 ] ; 785 ] ;
785 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 786 + sp:predicate <http://purl.org/dc/elements/1.1/title> ;
786 - sp:subject 787 + sp:subject _:b3
787 - [ sp:varName "reportKind"^^xsd:string
788 - ]
789 ]) ; 788 ]) ;
790 sp:where ([ sp:object spin:_this ; 789 sp:where ([ sp:object spin:_this ;
791 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 790 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
792 sp:subject 791 sp:subject
793 [ sp:varName "productionReport"^^xsd:string 792 [ sp:varName "productionReport"^^xsd:string
794 ] 793 ]
795 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
796 - sp:predicate rdf:type ;
797 - sp:subject
798 - [ sp:varName "productVolumeReport"^^xsd:string
799 - ]
800 - ] [ sp:object
801 - [ sp:varName "productionReport"^^xsd:string
802 - ] ;
803 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
804 - sp:subject
805 - [ sp:varName "productVolumeReport"^^xsd:string
806 - ]
807 ] [ sp:object 794 ] [ sp:object
808 [ sp:varName "productVolumeRef"^^xsd:string 795 [ sp:varName "productVolumeRef"^^xsd:string
809 ] ; 796 ] ;
...@@ -828,35 +815,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -828,35 +815,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
828 sp:subject 815 sp:subject
829 [ sp:varName "nameRef"^^xsd:string 816 [ sp:varName "nameRef"^^xsd:string
830 ] 817 ]
831 - ] [ sp:object 818 + ] [ rdf:type sp:Optional ;
832 - [ sp:varName "kind"^^xsd:string 819 + sp:elements ([ sp:object
833 - ] ; 820 + [ sp:varName "periodKindRef"^^xsd:string
834 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 821 + ] ;
835 - sp:subject 822 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
836 - [ sp:varName "productVolumeRef"^^xsd:string 823 + sp:subject
837 - ] 824 + [ sp:varName "productVolumeRef"^^xsd:string
838 - ] [ rdf:type sp:Bind ; 825 + ]
839 - sp:expression 826 + ])
840 - [ rdf:type ep-spin-lib:normalizeString ; 827 + ] [ rdf:type sp:Optional ;
841 - sp:arg1 [ sp:varName "kind"^^xsd:string 828 + sp:elements ([ sp:object
842 - ] 829 + [ sp:varName "titleRef"^^xsd:string
843 - ] ; 830 + ] ;
844 - sp:variable 831 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
845 - [ sp:varName "normalizedKind"^^xsd:string 832 + sp:subject
846 - ] 833 + [ sp:varName "productVolumeRef"^^xsd:string
834 + ]
835 + ] [ sp:object
836 + [ sp:varName "title"^^xsd:string
837 + ] ;
838 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
839 + sp:subject
840 + [ sp:varName "titleRef"^^xsd:string
841 + ]
842 + ])
847 ] [ rdf:type sp:Bind ; 843 ] [ rdf:type sp:Bind ;
848 sp:expression 844 sp:expression
849 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; 845 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
850 - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string 846 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
851 ] 847 ]
852 ] ; 848 ] ;
853 sp:variable 849 sp:variable
854 - [ sp:varName "reportKind"^^xsd:string 850 + [ sp:varName "reportPeriodType"^^xsd:string
855 ] 851 ]
856 ]) 852 ])
857 ] . 853 ] .
858 854
859 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> 855 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
860 rdf:type owl:Ontology ; 856 rdf:type owl:Ontology ;
861 - 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> ; 857 + 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> ;
862 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 858 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -21,19 +21,32 @@ ...@@ -21,19 +21,32 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 40207 Set the marine operation activity comment"^^xsd:string ; 24 + rdfs:comment "STEP 40205 Set the standby vessel"^^xsd:string ;
25 - sp:templates ([ sp:object 25 + sp:templates ([ sp:object _:b1 ;
26 - [ sp:varName "activityRef"^^xsd:string 26 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedBy> ;
27 + sp:subject
28 + [ sp:varName "standbyVesselOperation"^^xsd:string
29 + ]
30 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ;
31 + sp:predicate rdf:type ;
32 + sp:subject _:b1
33 + ] [ sp:object
34 + [ sp:varName "standbyVessel"^^xsd:string
27 ] ; 35 ] ;
28 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ; 36 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
37 + sp:subject _:b1
38 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ;
39 + sp:predicate rdf:type ;
29 sp:subject 40 sp:subject
30 - [ sp:varName "marineOperation"^^xsd:string 41 + [ sp:varName "standbyVessel"^^xsd:string
31 ] 42 ]
32 ] [ sp:object 43 ] [ sp:object
33 - [ sp:varName "activityRef"^^xsd:string 44 + [ sp:varName "standbyVesselName"^^xsd:string
34 ] ; 45 ] ;
35 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ; 46 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
36 - sp:subject <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> 47 + sp:subject
48 + [ sp:varName "standbyVessel"^^xsd:string
49 + ]
37 ]) ; 50 ]) ;
38 sp:where ([ sp:object 51 sp:where ([ sp:object
39 [ sp:varName "productionOperationRef"^^xsd:string 52 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -93,36 +106,50 @@ ...@@ -93,36 +106,50 @@
93 [ sp:varName "productionActivityRef"^^xsd:string 106 [ sp:varName "productionActivityRef"^^xsd:string
94 ] 107 ]
95 ] [ sp:object 108 ] [ sp:object
96 - [ sp:varName "marineOperationRef"^^xsd:string 109 + [ sp:varName "marineOperation"^^xsd:string
97 ] ; 110 ] ;
98 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 111 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
99 sp:subject 112 sp:subject
100 - [ sp:varName "marineOperation"^^xsd:string 113 + [ sp:varName "standbyVesselOperation"^^xsd:string
114 + ]
115 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
116 + sp:predicate rdf:type ;
117 + sp:subject
118 + [ sp:varName "standbyVesselOperation"^^xsd:string
101 ] 119 ]
102 ] [ sp:object 120 ] [ sp:object
103 - [ sp:varName "activityRef"^^xsd:string 121 + [ sp:varName "standbyVesselName"^^xsd:string
104 ] ; 122 ] ;
105 - sp:predicate <http://www.epim.no/schemas/mprml/1#activityRef> ; 123 + sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVessel> ;
106 sp:subject 124 sp:subject
107 [ sp:varName "marineOperationRef"^^xsd:string 125 [ sp:varName "marineOperationRef"^^xsd:string
108 ] 126 ]
127 + ] [ rdf:type sp:Bind ;
128 + sp:expression
129 + [ rdf:type ep-dpr-spin-lib:buildShipURI ;
130 + sp:arg1 [ sp:varName "standbyVesselName"^^xsd:string
131 + ]
132 + ] ;
133 + sp:variable
134 + [ sp:varName "standbyVessel"^^xsd:string
135 + ]
109 ]) 136 ])
110 ] ; 137 ] ;
111 spin:rule 138 spin:rule
112 [ rdf:type sp:Construct ; 139 [ rdf:type sp:Construct ;
113 - rdfs:comment "STEP 40206 Set the basket movement comment"^^xsd:string ; 140 + rdfs:comment "STEP 40207 Set the standby vessel operation comment"^^xsd:string ;
114 sp:templates ([ sp:object 141 sp:templates ([ sp:object
115 - [ sp:varName "basketMovementRef"^^xsd:string 142 + [ sp:varName "standbyVesselCommentRef"^^xsd:string
116 ] ; 143 ] ;
117 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ; 144 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
118 sp:subject 145 sp:subject
119 - [ sp:varName "marineOperation"^^xsd:string 146 + [ sp:varName "standbyVesselOperation"^^xsd:string
120 ] 147 ]
121 ] [ sp:object 148 ] [ sp:object
122 - [ sp:varName "basketMovementRef"^^xsd:string 149 + [ sp:varName "standbyVesselCommentRef"^^xsd:string
123 ] ; 150 ] ;
124 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ; 151 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
125 - sp:subject <http://www.reportinghub.no/ep/schema/production-activity#BasketMovement> 152 + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation>
126 ]) ; 153 ]) ;
127 sp:where ([ sp:object 154 sp:where ([ sp:object
128 [ sp:varName "productionOperationRef"^^xsd:string 155 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -189,9 +216,21 @@ ...@@ -189,9 +216,21 @@
189 [ sp:varName "marineOperation"^^xsd:string 216 [ sp:varName "marineOperation"^^xsd:string
190 ] 217 ]
191 ] [ sp:object 218 ] [ sp:object
192 - [ sp:varName "basketMovementRef"^^xsd:string 219 + [ sp:varName "marineOperation"^^xsd:string
193 ] ; 220 ] ;
194 - sp:predicate <http://www.epim.no/schemas/mprml/1#basketMovementRef> ; 221 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
222 + sp:subject
223 + [ sp:varName "standbyVesselOperation"^^xsd:string
224 + ]
225 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
226 + sp:predicate rdf:type ;
227 + sp:subject
228 + [ sp:varName "standbyVesselOperation"^^xsd:string
229 + ]
230 + ] [ sp:object
231 + [ sp:varName "standbyVesselCommentRef"^^xsd:string
232 + ] ;
233 + sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVesselCommentRef> ;
195 sp:subject 234 sp:subject
196 [ sp:varName "marineOperationRef"^^xsd:string 235 [ sp:varName "marineOperationRef"^^xsd:string
197 ] 236 ]
...@@ -199,19 +238,19 @@ ...@@ -199,19 +238,19 @@
199 ] ; 238 ] ;
200 spin:rule 239 spin:rule
201 [ rdf:type sp:Construct ; 240 [ rdf:type sp:Construct ;
202 - rdfs:comment "STEP 40205 Set the supply ship operation comment"^^xsd:string ; 241 + rdfs:comment "STEP 40206 Set the supply ship operation comment"^^xsd:string ;
203 sp:templates ([ sp:object 242 sp:templates ([ sp:object
204 - [ sp:varName "standbyVesselCommentRef"^^xsd:string 243 + [ sp:varName "supplyShipCommentRef"^^xsd:string
205 ] ; 244 ] ;
206 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ; 245 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
207 sp:subject 246 sp:subject
208 - [ sp:varName "marineOperation"^^xsd:string 247 + [ sp:varName "supplyShipOperation"^^xsd:string
209 ] 248 ]
210 ] [ sp:object 249 ] [ sp:object
211 - [ sp:varName "standbyVesselCommentRef"^^xsd:string 250 + [ sp:varName "supplyShipCommentRef"^^xsd:string
212 ] ; 251 ] ;
213 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ; 252 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
214 - sp:subject <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> 253 + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation>
215 ]) ; 254 ]) ;
216 sp:where ([ sp:object 255 sp:where ([ sp:object
217 [ sp:varName "productionOperationRef"^^xsd:string 256 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -278,9 +317,21 @@ ...@@ -278,9 +317,21 @@
278 [ sp:varName "marineOperation"^^xsd:string 317 [ sp:varName "marineOperation"^^xsd:string
279 ] 318 ]
280 ] [ sp:object 319 ] [ sp:object
281 - [ sp:varName "standbyVesselCommentRef"^^xsd:string 320 + [ sp:varName "marineOperation"^^xsd:string
282 ] ; 321 ] ;
283 - sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVesselCommentRef> ; 322 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
323 + sp:subject
324 + [ sp:varName "supplyShipOperation"^^xsd:string
325 + ]
326 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
327 + sp:predicate rdf:type ;
328 + sp:subject
329 + [ sp:varName "supplyShipOperation"^^xsd:string
330 + ]
331 + ] [ sp:object
332 + [ sp:varName "supplyShipCommentRef"^^xsd:string
333 + ] ;
334 + sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShipCommentRef> ;
284 sp:subject 335 sp:subject
285 [ sp:varName "marineOperationRef"^^xsd:string 336 [ sp:varName "marineOperationRef"^^xsd:string
286 ] 337 ]
...@@ -288,19 +339,32 @@ ...@@ -288,19 +339,32 @@
288 ] ; 339 ] ;
289 spin:rule 340 spin:rule
290 [ rdf:type sp:Construct ; 341 [ rdf:type sp:Construct ;
291 - rdfs:comment "STEP 40204 Set the supply ship operation comment"^^xsd:string ; 342 + rdfs:comment "STEP 40204 Set the supply ship"^^xsd:string ;
292 - sp:templates ([ sp:object 343 + sp:templates ([ sp:object _:b2 ;
293 - [ sp:varName "supplyShipCommentRef"^^xsd:string 344 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedBy> ;
345 + sp:subject
346 + [ sp:varName "supplyShipOperation"^^xsd:string
347 + ]
348 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ;
349 + sp:predicate rdf:type ;
350 + sp:subject _:b2
351 + ] [ sp:object
352 + [ sp:varName "supplyShip"^^xsd:string
294 ] ; 353 ] ;
295 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ; 354 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
355 + sp:subject _:b2
356 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ;
357 + sp:predicate rdf:type ;
296 sp:subject 358 sp:subject
297 - [ sp:varName "marineOperation"^^xsd:string 359 + [ sp:varName "supplyShip"^^xsd:string
298 ] 360 ]
299 ] [ sp:object 361 ] [ sp:object
300 - [ sp:varName "supplyShipCommentRef"^^xsd:string 362 + [ sp:varName "supplyShipName"^^xsd:string
301 ] ; 363 ] ;
302 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ; 364 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
303 - sp:subject <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> 365 + sp:subject
366 + [ sp:varName "supplyShip"^^xsd:string
367 + ]
304 ]) ; 368 ]) ;
305 sp:where ([ sp:object 369 sp:where ([ sp:object
306 [ sp:varName "productionOperationRef"^^xsd:string 370 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -360,37 +424,51 @@ ...@@ -360,37 +424,51 @@
360 [ sp:varName "productionActivityRef"^^xsd:string 424 [ sp:varName "productionActivityRef"^^xsd:string
361 ] 425 ]
362 ] [ sp:object 426 ] [ sp:object
363 - [ sp:varName "marineOperationRef"^^xsd:string 427 + [ sp:varName "marineOperation"^^xsd:string
364 ] ; 428 ] ;
365 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 429 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
366 sp:subject 430 sp:subject
367 - [ sp:varName "marineOperation"^^xsd:string 431 + [ sp:varName "supplyShipOperation"^^xsd:string
432 + ]
433 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
434 + sp:predicate rdf:type ;
435 + sp:subject
436 + [ sp:varName "supplyShipOperation"^^xsd:string
368 ] 437 ]
369 ] [ sp:object 438 ] [ sp:object
370 - [ sp:varName "supplyShipCommentRef"^^xsd:string 439 + [ sp:varName "supplyShipName"^^xsd:string
371 ] ; 440 ] ;
372 - sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShipCommentRef> ; 441 + sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShip> ;
373 sp:subject 442 sp:subject
374 [ sp:varName "marineOperationRef"^^xsd:string 443 [ sp:varName "marineOperationRef"^^xsd:string
375 ] 444 ]
445 + ] [ rdf:type sp:Bind ;
446 + sp:expression
447 + [ rdf:type ep-dpr-spin-lib:buildShipURI ;
448 + sp:arg1 [ sp:varName "supplyShipName"^^xsd:string
449 + ]
450 + ] ;
451 + sp:variable
452 + [ sp:varName "supplyShip"^^xsd:string
453 + ]
376 ]) 454 ])
377 ] ; 455 ] ;
378 spin:rule 456 spin:rule
379 [ rdf:type sp:Construct ; 457 [ rdf:type sp:Construct ;
380 - rdfs:comment "STEP 40203 Create the MarineOperation activity"^^xsd:string ; 458 + rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ;
381 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ; 459 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ;
382 sp:predicate rdf:type ; 460 sp:predicate rdf:type ;
383 - sp:subject _:b1 461 + sp:subject _:b3
384 ] [ sp:object 462 ] [ sp:object
385 [ sp:varName "productionOperation"^^xsd:string 463 [ sp:varName "productionOperation"^^xsd:string
386 ] ; 464 ] ;
387 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 465 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
388 - sp:subject _:b1 466 + sp:subject _:b3
389 ] [ sp:object 467 ] [ sp:object
390 - [ sp:varName "marineOperationRef"^^xsd:string 468 + [ sp:varName "lostProductionRef"^^xsd:string
391 ] ; 469 ] ;
392 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 470 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
393 - sp:subject _:b1 471 + sp:subject _:b3
394 ]) ; 472 ]) ;
395 sp:where ([ sp:object 473 sp:where ([ sp:object
396 [ sp:varName "productionOperationRef"^^xsd:string 474 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -436,6 +514,18 @@ ...@@ -436,6 +514,18 @@
436 [ sp:varName "productionOperation"^^xsd:string 514 [ sp:varName "productionOperation"^^xsd:string
437 ] 515 ]
438 ] [ sp:object 516 ] [ sp:object
517 + [ sp:varName "productionOperation"^^xsd:string
518 + ] ;
519 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
520 + sp:subject
521 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
522 + ]
523 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
524 + sp:predicate rdf:type ;
525 + sp:subject
526 + [ sp:varName "productionOperationProductionAndInjection"^^xsd:string
527 + ]
528 + ] [ sp:object
439 [ sp:varName "productionActivityRef"^^xsd:string 529 [ sp:varName "productionActivityRef"^^xsd:string
440 ] ; 530 ] ;
441 sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ; 531 sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
...@@ -443,9 +533,9 @@ ...@@ -443,9 +533,9 @@
443 [ sp:varName "installationReportRef"^^xsd:string 533 [ sp:varName "installationReportRef"^^xsd:string
444 ] 534 ]
445 ] [ sp:object 535 ] [ sp:object
446 - [ sp:varName "marineOperationRef"^^xsd:string 536 + [ sp:varName "lostProductionRef"^^xsd:string
447 ] ; 537 ] ;
448 - sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ; 538 + sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ;
449 sp:subject 539 sp:subject
450 [ sp:varName "productionActivityRef"^^xsd:string 540 [ sp:varName "productionActivityRef"^^xsd:string
451 ] 541 ]
...@@ -456,17 +546,17 @@ ...@@ -456,17 +546,17 @@
456 rdfs:comment "STEP 40202 Create the ProductionOperationInjection activity"^^xsd:string ; 546 rdfs:comment "STEP 40202 Create the ProductionOperationInjection activity"^^xsd:string ;
457 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationInjection> ; 547 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationInjection> ;
458 sp:predicate rdf:type ; 548 sp:predicate rdf:type ;
459 - sp:subject _:b2 549 + sp:subject _:b4
460 ] [ sp:object 550 ] [ sp:object
461 [ sp:varName "productionOperation"^^xsd:string 551 [ sp:varName "productionOperation"^^xsd:string
462 ] ; 552 ] ;
463 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 553 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
464 - sp:subject _:b2 554 + sp:subject _:b4
465 ] [ sp:object 555 ] [ sp:object
466 [ sp:varName "lostInjectionRef"^^xsd:string 556 [ sp:varName "lostInjectionRef"^^xsd:string
467 ] ; 557 ] ;
468 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 558 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
469 - sp:subject _:b2 559 + sp:subject _:b4
470 ]) ; 560 ]) ;
471 sp:where ([ sp:object 561 sp:where ([ sp:object
472 [ sp:varName "productionOperationRef"^^xsd:string 562 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -541,20 +631,47 @@ ...@@ -541,20 +631,47 @@
541 ] ; 631 ] ;
542 spin:rule 632 spin:rule
543 [ rdf:type sp:Construct ; 633 [ rdf:type sp:Construct ;
544 - rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ; 634 + rdfs:comment "STEP 40203 Create the MarineOperation activity"^^xsd:string ;
545 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ; 635 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ;
546 sp:predicate rdf:type ; 636 sp:predicate rdf:type ;
547 - sp:subject _:b3 637 + sp:subject _:b5
548 ] [ sp:object 638 ] [ sp:object
549 [ sp:varName "productionOperation"^^xsd:string 639 [ sp:varName "productionOperation"^^xsd:string
550 ] ; 640 ] ;
551 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 641 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
552 - sp:subject _:b3 642 + sp:subject _:b5
643 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
644 + sp:predicate rdf:type ;
645 + sp:subject _:b6
646 + ] [ sp:object _:b5 ;
647 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
648 + sp:subject _:b6
649 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
650 + sp:predicate rdf:type ;
651 + sp:subject _:b7
652 + ] [ sp:object _:b5 ;
653 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
654 + sp:subject _:b7
553 ] [ sp:object 655 ] [ sp:object
554 - [ sp:varName "lostProductionRef"^^xsd:string 656 + [ sp:varName "marineOperationRef"^^xsd:string
555 ] ; 657 ] ;
556 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 658 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
557 - sp:subject _:b3 659 + sp:subject _:b5
660 + ] [ sp:object
661 + [ sp:varName "dTimStart"^^xsd:string
662 + ] ;
663 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
664 + sp:subject _:b5
665 + ] [ sp:object
666 + [ sp:varName "dTimEnd"^^xsd:string
667 + ] ;
668 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
669 + sp:subject _:b5
670 + ] [ sp:object
671 + [ sp:varName "generalComment"^^xsd:string
672 + ] ;
673 + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
674 + sp:subject _:b5
558 ]) ; 675 ]) ;
559 sp:where ([ sp:object 676 sp:where ([ sp:object
560 [ sp:varName "productionOperationRef"^^xsd:string 677 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -600,16 +717,195 @@ ...@@ -600,16 +717,195 @@
600 [ sp:varName "productionOperation"^^xsd:string 717 [ sp:varName "productionOperation"^^xsd:string
601 ] 718 ]
602 ] [ sp:object 719 ] [ sp:object
720 + [ sp:varName "productionActivityRef"^^xsd:string
721 + ] ;
722 + sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
723 + sp:subject
724 + [ sp:varName "installationReportRef"^^xsd:string
725 + ]
726 + ] [ sp:object
727 + [ sp:varName "marineOperationRef"^^xsd:string
728 + ] ;
729 + sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
730 + sp:subject
731 + [ sp:varName "productionActivityRef"^^xsd:string
732 + ]
733 + ] [ rdf:type sp:Optional ;
734 + sp:elements ([ sp:object
735 + [ sp:varName "dTimStart"^^xsd:string
736 + ] ;
737 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
738 + sp:subject
739 + [ sp:varName "marineOperationRef"^^xsd:string
740 + ]
741 + ])
742 + ] [ rdf:type sp:Optional ;
743 + sp:elements ([ sp:object
744 + [ sp:varName "dTimEnd"^^xsd:string
745 + ] ;
746 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
747 + sp:subject
748 + [ sp:varName "marineOperationRef"^^xsd:string
749 + ]
750 + ])
751 + ] [ rdf:type sp:Optional ;
752 + sp:elements ([ sp:object
753 + [ sp:varName "generalComment"^^xsd:string
754 + ] ;
755 + sp:predicate <http://www.epim.no/schemas/mprml/1#generalComment> ;
756 + sp:subject
757 + [ sp:varName "marineOperationRef"^^xsd:string
758 + ]
759 + ])
760 + ])
761 + ] ;
762 + spin:rule
763 + [ rdf:type sp:Construct ;
764 + rdfs:comment "STEP 40208 Set the basket movement comment"^^xsd:string ;
765 + sp:templates ([ sp:object
766 + [ sp:varName "basketMovementRef"^^xsd:string
767 + ] ;
768 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
769 + sp:subject
770 + [ sp:varName "marineOperation"^^xsd:string
771 + ]
772 + ] [ sp:object
773 + [ sp:varName "basketMovementRef"^^xsd:string
774 + ] ;
775 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
776 + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#BasketMovement>
777 + ]) ;
778 + sp:where ([ sp:object
779 + [ sp:varName "productionOperationRef"^^xsd:string
780 + ] ;
781 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
782 + sp:subject spin:_this
783 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
784 + sp:predicate rdf:type ;
785 + sp:subject
786 + [ sp:varName "productionOperationRef"^^xsd:string
787 + ]
788 + ] [ sp:object
789 + [ sp:varName "installationReportRef"^^xsd:string
790 + ] ;
791 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
792 + sp:subject
793 + [ sp:varName "productionOperationRef"^^xsd:string
794 + ]
795 + ] [ sp:object
796 + [ sp:varName "installationReportRef"^^xsd:string
797 + ] ;
798 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
799 + sp:subject
800 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
801 + ]
802 + ] [ sp:object
803 + [ sp:varName "productionFacility"^^xsd:string
804 + ] ;
805 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
806 + sp:subject
807 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
808 + ]
809 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
810 + sp:predicate rdf:type ;
811 + sp:subject
812 + [ sp:varName "productionOperation"^^xsd:string
813 + ]
814 + ] [ sp:object
815 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
816 + ] ;
817 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
818 + sp:subject
603 [ sp:varName "productionOperation"^^xsd:string 819 [ sp:varName "productionOperation"^^xsd:string
820 + ]
821 + ] [ sp:object
822 + [ sp:varName "productionActivityRef"^^xsd:string
604 ] ; 823 ] ;
605 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 824 + sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
606 sp:subject 825 sp:subject
607 - [ sp:varName "productionOperationProductionAndInjection"^^xsd:string 826 + [ sp:varName "installationReportRef"^^xsd:string
608 ] 827 ]
609 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ; 828 + ] [ sp:object
829 + [ sp:varName "marineOperationRef"^^xsd:string
830 + ] ;
831 + sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
832 + sp:subject
833 + [ sp:varName "productionActivityRef"^^xsd:string
834 + ]
835 + ] [ sp:object
836 + [ sp:varName "marineOperationRef"^^xsd:string
837 + ] ;
838 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
839 + sp:subject
840 + [ sp:varName "marineOperation"^^xsd:string
841 + ]
842 + ] [ sp:object
843 + [ sp:varName "basketMovementRef"^^xsd:string
844 + ] ;
845 + sp:predicate <http://www.epim.no/schemas/mprml/1#basketMovementRef> ;
846 + sp:subject
847 + [ sp:varName "marineOperationRef"^^xsd:string
848 + ]
849 + ])
850 + ] ;
851 + spin:rule
852 + [ rdf:type sp:Construct ;
853 + rdfs:comment "STEP 40209 Set the marine operation activity comment"^^xsd:string ;
854 + sp:templates ([ sp:object
855 + [ sp:varName "activityRef"^^xsd:string
856 + ] ;
857 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
858 + sp:subject
859 + [ sp:varName "marineOperation"^^xsd:string
860 + ]
861 + ] [ sp:object
862 + [ sp:varName "activityRef"^^xsd:string
863 + ] ;
864 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
865 + sp:subject <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation>
866 + ]) ;
867 + sp:where ([ sp:object
868 + [ sp:varName "productionOperationRef"^^xsd:string
869 + ] ;
870 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
871 + sp:subject spin:_this
872 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
610 sp:predicate rdf:type ; 873 sp:predicate rdf:type ;
611 sp:subject 874 sp:subject
612 - [ sp:varName "productionOperationProductionAndInjection"^^xsd:string 875 + [ sp:varName "productionOperationRef"^^xsd:string
876 + ]
877 + ] [ sp:object
878 + [ sp:varName "installationReportRef"^^xsd:string
879 + ] ;
880 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
881 + sp:subject
882 + [ sp:varName "productionOperationRef"^^xsd:string
883 + ]
884 + ] [ sp:object
885 + [ sp:varName "installationReportRef"^^xsd:string
886 + ] ;
887 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
888 + sp:subject
889 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
890 + ]
891 + ] [ sp:object
892 + [ sp:varName "productionFacility"^^xsd:string
893 + ] ;
894 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
895 + sp:subject
896 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
897 + ]
898 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
899 + sp:predicate rdf:type ;
900 + sp:subject
901 + [ sp:varName "productionOperation"^^xsd:string
902 + ]
903 + ] [ sp:object
904 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
905 + ] ;
906 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
907 + sp:subject
908 + [ sp:varName "productionOperation"^^xsd:string
613 ] 909 ]
614 ] [ sp:object 910 ] [ sp:object
615 [ sp:varName "productionActivityRef"^^xsd:string 911 [ sp:varName "productionActivityRef"^^xsd:string
...@@ -619,12 +915,26 @@ ...@@ -619,12 +915,26 @@
619 [ sp:varName "installationReportRef"^^xsd:string 915 [ sp:varName "installationReportRef"^^xsd:string
620 ] 916 ]
621 ] [ sp:object 917 ] [ sp:object
622 - [ sp:varName "lostProductionRef"^^xsd:string 918 + [ sp:varName "marineOperationRef"^^xsd:string
623 ] ; 919 ] ;
624 - sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ; 920 + sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
625 sp:subject 921 sp:subject
626 [ sp:varName "productionActivityRef"^^xsd:string 922 [ sp:varName "productionActivityRef"^^xsd:string
627 ] 923 ]
924 + ] [ sp:object
925 + [ sp:varName "marineOperationRef"^^xsd:string
926 + ] ;
927 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
928 + sp:subject
929 + [ sp:varName "marineOperation"^^xsd:string
930 + ]
931 + ] [ sp:object
932 + [ sp:varName "activityRef"^^xsd:string
933 + ] ;
934 + sp:predicate <http://www.epim.no/schemas/mprml/1#activityRef> ;
935 + sp:subject
936 + [ sp:varName "marineOperationRef"^^xsd:string
937 + ]
628 ]) 938 ])
629 ] . 939 ] .
630 940
...@@ -632,27 +942,27 @@ ...@@ -632,27 +942,27 @@
632 spin:rule 942 spin:rule
633 [ rdf:type sp:Construct ; 943 [ rdf:type sp:Construct ;
634 rdfs:comment "STEP 40295 Create the ProductionOperationProcessing - loss contributing third party processing - add gas volume"^^xsd:string ; 944 rdfs:comment "STEP 40295 Create the ProductionOperationProcessing - loss contributing third party processing - add gas volume"^^xsd:string ;
635 - sp:templates ([ sp:object _:b4 ; 945 + sp:templates ([ sp:object _:b8 ;
636 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ; 946 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
637 sp:subject 947 sp:subject
638 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string 948 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
639 ] 949 ]
640 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ; 950 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
641 sp:predicate rdf:type ; 951 sp:predicate rdf:type ;
642 - sp:subject _:b4 952 + sp:subject _:b8
643 - ] [ sp:object _:b5 ; 953 + ] [ sp:object _:b9 ;
644 sp:predicate rdf:type ; 954 sp:predicate rdf:type ;
645 - sp:subject _:b4 955 + sp:subject _:b8
646 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 956 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
647 sp:predicate rdf:type ; 957 sp:predicate rdf:type ;
648 - sp:subject _:b5 958 + sp:subject _:b9
649 ] [ sp:object 959 ] [ sp:object
650 [ sp:varName "realVolume"^^xsd:string 960 [ sp:varName "realVolume"^^xsd:string
651 ] ; 961 ] ;
652 sp:predicate 962 sp:predicate
653 [ sp:varName "volumeScale"^^xsd:string 963 [ sp:varName "volumeScale"^^xsd:string
654 ] ; 964 ] ;
655 - sp:subject _:b5 965 + sp:subject _:b9
656 ]) ; 966 ]) ;
657 sp:where ([ sp:object 967 sp:where ([ sp:object
658 [ sp:varName "thirdPartyProcessingRef"^^xsd:string 968 [ sp:varName "thirdPartyProcessingRef"^^xsd:string
...@@ -706,27 +1016,27 @@ ...@@ -706,27 +1016,27 @@
706 spin:rule 1016 spin:rule
707 [ rdf:type sp:Construct ; 1017 [ rdf:type sp:Construct ;
708 rdfs:comment "STEP 40294 Create the ProductionOperationProcessing - loss contributing third party processing - add oil volume"^^xsd:string ; 1018 rdfs:comment "STEP 40294 Create the ProductionOperationProcessing - loss contributing third party processing - add oil volume"^^xsd:string ;
709 - sp:templates ([ sp:object _:b6 ; 1019 + sp:templates ([ sp:object _:b10 ;
710 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ; 1020 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
711 sp:subject 1021 sp:subject
712 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string 1022 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
713 ] 1023 ]
714 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ; 1024 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
715 sp:predicate rdf:type ; 1025 sp:predicate rdf:type ;
716 - sp:subject _:b6 1026 + sp:subject _:b10
717 - ] [ sp:object _:b7 ; 1027 + ] [ sp:object _:b11 ;
718 sp:predicate rdf:type ; 1028 sp:predicate rdf:type ;
719 - sp:subject _:b6 1029 + sp:subject _:b10
720 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1030 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
721 sp:predicate rdf:type ; 1031 sp:predicate rdf:type ;
722 - sp:subject _:b7 1032 + sp:subject _:b11
723 ] [ sp:object 1033 ] [ sp:object
724 [ sp:varName "realVolume"^^xsd:string 1034 [ sp:varName "realVolume"^^xsd:string
725 ] ; 1035 ] ;
726 sp:predicate 1036 sp:predicate
727 [ sp:varName "volumeScale"^^xsd:string 1037 [ sp:varName "volumeScale"^^xsd:string
728 ] ; 1038 ] ;
729 - sp:subject _:b7 1039 + sp:subject _:b11
730 ]) ; 1040 ]) ;
731 sp:where ([ sp:object 1041 sp:where ([ sp:object
732 [ sp:varName "thirdPartyProcessingRef"^^xsd:string 1042 [ sp:varName "thirdPartyProcessingRef"^^xsd:string
...@@ -780,19 +1090,19 @@ ...@@ -780,19 +1090,19 @@
780 spin:rule 1090 spin:rule
781 [ rdf:type sp:Construct ; 1091 [ rdf:type sp:Construct ;
782 rdfs:comment "STEP 40293 Create the ProductionOperationProcessing - loss contributing third party processing - add third party installation"^^xsd:string ; 1092 rdfs:comment "STEP 40293 Create the ProductionOperationProcessing - loss contributing third party processing - add third party installation"^^xsd:string ;
783 - sp:templates ([ sp:object _:b8 ; 1093 + sp:templates ([ sp:object _:b12 ;
784 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; 1094 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
785 sp:subject 1095 sp:subject
786 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string 1096 [ sp:varName "thirdPartyProcessingLoss"^^xsd:string
787 ] 1097 ]
788 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 1098 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
789 sp:predicate rdf:type ; 1099 sp:predicate rdf:type ;
790 - sp:subject _:b8 1100 + sp:subject _:b12
791 ] [ sp:object 1101 ] [ sp:object
792 [ sp:varName "thirdPartyProductionFacility"^^xsd:string 1102 [ sp:varName "thirdPartyProductionFacility"^^xsd:string
793 ] ; 1103 ] ;
794 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 1104 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
795 - sp:subject _:b8 1105 + sp:subject _:b12
796 ]) ; 1106 ]) ;
797 sp:where ([ sp:object 1107 sp:where ([ sp:object
798 [ sp:varName "thirdPartyProcessingRef"^^xsd:string 1108 [ sp:varName "thirdPartyProcessingRef"^^xsd:string
...@@ -832,17 +1142,17 @@ ...@@ -832,17 +1142,17 @@
832 rdfs:comment "STEP 40292 Create the ProductionOperationProcessing - loss contributing third party processing"^^xsd:string ; 1142 rdfs:comment "STEP 40292 Create the ProductionOperationProcessing - loss contributing third party processing"^^xsd:string ;
833 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ; 1143 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
834 sp:predicate rdf:type ; 1144 sp:predicate rdf:type ;
835 - sp:subject _:b9 1145 + sp:subject _:b13
836 ] [ sp:object 1146 ] [ sp:object
837 [ sp:varName "productionOperationProcessing"^^xsd:string 1147 [ sp:varName "productionOperationProcessing"^^xsd:string
838 ] ; 1148 ] ;
839 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 1149 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
840 - sp:subject _:b9 1150 + sp:subject _:b13
841 ] [ sp:object 1151 ] [ sp:object
842 [ sp:varName "thirdPartyProcessingRef"^^xsd:string 1152 [ sp:varName "thirdPartyProcessingRef"^^xsd:string
843 ] ; 1153 ] ;
844 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 1154 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
845 - sp:subject _:b9 1155 + sp:subject _:b13
846 ]) ; 1156 ]) ;
847 sp:where ([ sp:object spin:_this ; 1157 sp:where ([ sp:object spin:_this ;
848 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 1158 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -863,31 +1173,31 @@ ...@@ -863,31 +1173,31 @@
863 [ sp:varName "reasonForLossOfProcessingType"^^xsd:string 1173 [ sp:varName "reasonForLossOfProcessingType"^^xsd:string
864 ] ; 1174 ] ;
865 sp:predicate rdf:type ; 1175 sp:predicate rdf:type ;
866 - sp:subject _:b10 1176 + sp:subject _:b14
867 ] [ sp:object 1177 ] [ sp:object
868 [ sp:varName "productionOperationProcessing"^^xsd:string 1178 [ sp:varName "productionOperationProcessing"^^xsd:string
869 ] ; 1179 ] ;
870 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 1180 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
871 - sp:subject _:b10 1181 + sp:subject _:b14
872 - ] [ sp:object _:b11 ; 1182 + ] [ sp:object _:b15 ;
873 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ; 1183 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
874 - sp:subject _:b10 1184 + sp:subject _:b14
875 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1185 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
876 sp:predicate rdf:type ; 1186 sp:predicate rdf:type ;
877 - sp:subject _:b11 1187 + sp:subject _:b15
878 - ] [ sp:object _:b12 ; 1188 + ] [ sp:object _:b16 ;
879 sp:predicate rdf:type ; 1189 sp:predicate rdf:type ;
880 - sp:subject _:b11 1190 + sp:subject _:b15
881 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1191 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
882 sp:predicate rdf:type ; 1192 sp:predicate rdf:type ;
883 - sp:subject _:b12 1193 + sp:subject _:b16
884 ] [ sp:object 1194 ] [ sp:object
885 [ sp:varName "realVolume"^^xsd:string 1195 [ sp:varName "realVolume"^^xsd:string
886 ] ; 1196 ] ;
887 sp:predicate 1197 sp:predicate
888 [ sp:varName "volumeScale"^^xsd:string 1198 [ sp:varName "volumeScale"^^xsd:string
889 ] ; 1199 ] ;
890 - sp:subject _:b12 1200 + sp:subject _:b16
891 ]) ; 1201 ]) ;
892 sp:where ([ sp:object spin:_this ; 1202 sp:where ([ sp:object spin:_this ;
893 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 1203 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......
...@@ -21,27 +21,50 @@ ...@@ -21,27 +21,50 @@
21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 21 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
22 spin:rule 22 spin:rule
23 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
24 - rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; 24 + rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ;
25 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; 25 + sp:templates ([ sp:object
26 + [ sp:varName "reportKind"^^xsd:string
27 + ] ;
26 sp:predicate rdf:type ; 28 sp:predicate rdf:type ;
27 - sp:subject _:b1 29 + sp:subject
30 + [ sp:varName "productionOperationReport"^^xsd:string
31 + ]
32 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
33 + sp:predicate rdf:type ;
34 + sp:subject
35 + [ sp:varName "reportKind"^^xsd:string
36 + ]
37 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
38 + sp:predicate rdfs:subClassOf ;
39 + sp:subject
40 + [ sp:varName "reportKind"^^xsd:string
41 + ]
28 ] [ sp:object 42 ] [ sp:object
29 - [ sp:varName "contextFacility"^^xsd:string 43 + [ sp:varName "kind"^^xsd:string
30 ] ; 44 ] ;
31 - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; 45 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
32 - sp:subject _:b1
33 - ] [ sp:object _:b1 ;
34 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
35 sp:subject 46 sp:subject
36 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 47 + [ sp:varName "reportKind"^^xsd:string
37 ] 48 ]
38 - ] [ sp:object _:b1 ; 49 + ]) ;
39 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 50 + sp:where ([ sp:object spin:_this ;
51 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
40 sp:subject 52 sp:subject
41 - [ sp:varName "productionFacilityToDate"^^xsd:string 53 + [ sp:varName "productionReport"^^xsd:string
42 ] 54 ]
43 - ]) ; 55 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
44 - sp:where ([ sp:object 56 + sp:predicate rdf:type ;
57 + sp:subject
58 + [ sp:varName "productionOperationReport"^^xsd:string
59 + ]
60 + ] [ sp:object
61 + [ sp:varName "productionReport"^^xsd:string
62 + ] ;
63 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
64 + sp:subject
65 + [ sp:varName "productionOperationReport"^^xsd:string
66 + ]
67 + ] [ sp:object
45 [ sp:varName "productionOperationRef"^^xsd:string 68 [ sp:varName "productionOperationRef"^^xsd:string
46 ] ; 69 ] ;
47 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 70 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -51,76 +74,168 @@ ...@@ -51,76 +74,168 @@
51 sp:subject 74 sp:subject
52 [ sp:varName "productionOperationRef"^^xsd:string 75 [ sp:varName "productionOperationRef"^^xsd:string
53 ] 76 ]
54 - ] [ rdf:type sp:NotExists ;
55 - sp:elements ([ sp:object
56 - [ sp:varName "installationRef"^^xsd:string
57 - ] ;
58 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
59 - sp:subject
60 - [ sp:varName "productionOperationRef"^^xsd:string
61 - ]
62 - ] [ sp:object
63 - [ sp:varName "installationRef"^^xsd:string
64 - ] ;
65 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
66 - sp:subject
67 - [ sp:varName "productionFacility"^^xsd:string
68 - ]
69 - ])
70 ] [ sp:object 77 ] [ sp:object
71 - [ sp:varName "contextFacilityRef"^^xsd:string 78 + [ sp:varName "nameRef"^^xsd:string
72 ] ; 79 ] ;
73 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; 80 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
74 sp:subject 81 sp:subject
75 [ sp:varName "productionOperationRef"^^xsd:string 82 [ sp:varName "productionOperationRef"^^xsd:string
76 ] 83 ]
77 ] [ sp:object 84 ] [ sp:object
78 - [ sp:varName "contextFacilityRef"^^xsd:string 85 + [ sp:varName "name"^^xsd:string
79 ] ; 86 ] ;
80 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 87 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
81 sp:subject 88 sp:subject
82 - [ sp:varName "contextFacility"^^xsd:string 89 + [ sp:varName "nameRef"^^xsd:string
83 ] 90 ]
84 ] [ sp:object 91 ] [ sp:object
85 - [ sp:varName "productVolumeRef"^^xsd:string 92 + [ sp:varName "kind"^^xsd:string
86 ] ; 93 ] ;
87 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 94 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
88 sp:subject 95 sp:subject
89 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 96 + [ sp:varName "productionOperationRef"^^xsd:string
97 + ]
98 + ] [ rdf:type sp:Bind ;
99 + sp:expression
100 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
101 + sp:arg1 [ sp:varName "kind"^^xsd:string
102 + ]
103 + ] ;
104 + sp:variable
105 + [ sp:varName "reportKind"^^xsd:string
90 ] 106 ]
107 + ])
108 + ] ;
109 + spin:rule
110 + [ rdf:type sp:Construct ;
111 + rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
112 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
113 + sp:predicate rdf:type ;
114 + sp:subject _:b1
115 + ] [ sp:object
116 + [ sp:varName "productionReport"^^xsd:string
117 + ] ;
118 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
119 + sp:subject _:b1
120 + ] [ sp:object
121 + [ sp:varName "name"^^xsd:string
122 + ] ;
123 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
124 + sp:subject _:b1
125 + ] [ sp:object
126 + [ sp:varName "reportPeriodType"^^xsd:string
127 + ] ;
128 + sp:predicate rdf:type ;
129 + sp:subject _:b1
130 + ] [ sp:object _:b2 ;
131 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
132 + sp:subject _:b1
91 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 133 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
92 sp:predicate rdf:type ; 134 sp:predicate rdf:type ;
93 - sp:subject 135 + sp:subject _:b2
94 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
95 - ]
96 ] [ sp:object 136 ] [ sp:object
97 - [ sp:varName "productionFacilityToDate"^^xsd:string 137 + [ sp:varName "productionOperationRef"^^xsd:string
98 ] ; 138 ] ;
139 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
140 + sp:subject _:b2
141 + ] [ sp:object _:b3 ;
99 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 142 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
143 + sp:subject _:b2
144 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
145 + sp:predicate rdf:type ;
146 + sp:subject _:b3
147 + ] [ sp:object
148 + [ sp:varName "title"^^xsd:string
149 + ] ;
150 + sp:predicate <http://purl.org/dc/elements/1.1/title> ;
151 + sp:subject _:b1
152 + ]) ;
153 + sp:where ([ sp:object spin:_this ;
154 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
100 sp:subject 155 sp:subject
101 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 156 + [ sp:varName "productionReport"^^xsd:string
102 ] 157 ]
103 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 158 + ] [ sp:object
159 + [ sp:varName "productionOperationRef"^^xsd:string
160 + ] ;
161 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
162 + sp:subject spin:_this
163 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
104 sp:predicate rdf:type ; 164 sp:predicate rdf:type ;
105 sp:subject 165 sp:subject
106 - [ sp:varName "productionFacilityToDate"^^xsd:string 166 + [ sp:varName "productionOperationRef"^^xsd:string
167 + ]
168 + ] [ sp:object
169 + [ sp:varName "nameRef"^^xsd:string
170 + ] ;
171 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
172 + sp:subject
173 + [ sp:varName "productionOperationRef"^^xsd:string
174 + ]
175 + ] [ sp:object
176 + [ sp:varName "name"^^xsd:string
177 + ] ;
178 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
179 + sp:subject
180 + [ sp:varName "nameRef"^^xsd:string
181 + ]
182 + ] [ rdf:type sp:Optional ;
183 + sp:elements ([ sp:object
184 + [ sp:varName "periodKindRef"^^xsd:string
185 + ] ;
186 + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
187 + sp:subject
188 + [ sp:varName "productionOperationRef"^^xsd:string
189 + ]
190 + ])
191 + ] [ rdf:type sp:Optional ;
192 + sp:elements ([ sp:object
193 + [ sp:varName "titleRef"^^xsd:string
194 + ] ;
195 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
196 + sp:subject
197 + [ sp:varName "productionOperationRef"^^xsd:string
198 + ]
199 + ] [ sp:object
200 + [ sp:varName "title"^^xsd:string
201 + ] ;
202 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
203 + sp:subject
204 + [ sp:varName "titleRef"^^xsd:string
205 + ]
206 + ])
207 + ] [ rdf:type sp:Bind ;
208 + sp:expression
209 + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
210 + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
211 + ]
212 + ] ;
213 + sp:variable
214 + [ sp:varName "reportPeriodType"^^xsd:string
107 ] 215 ]
108 ]) 216 ])
109 ] ; 217 ] ;
110 spin:rule 218 spin:rule
111 [ rdf:type sp:Construct ; 219 [ rdf:type sp:Construct ;
112 - rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; 220 + rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
113 sp:templates ([ sp:object 221 sp:templates ([ sp:object
114 - [ sp:varName "productionFacility"^^xsd:string 222 + [ sp:varName "dateStart"^^xsd:string
115 ] ; 223 ] ;
116 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 224 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
117 sp:subject 225 sp:subject
118 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 226 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
119 ] 227 ]
120 ] [ sp:object 228 ] [ sp:object
121 - [ sp:varName "productionFacility"^^xsd:string 229 + [ sp:varName "dateEnd"^^xsd:string
122 ] ; 230 ] ;
123 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 231 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
232 + sp:subject
233 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
234 + ]
235 + ] [ sp:object
236 + [ sp:varName "dateEnd"^^xsd:string
237 + ] ;
238 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
124 sp:subject 239 sp:subject
125 [ sp:varName "productionFacilityToDate"^^xsd:string 240 [ sp:varName "productionFacilityToDate"^^xsd:string
126 ] 241 ]
...@@ -136,18 +251,18 @@ ...@@ -136,18 +251,18 @@
136 [ sp:varName "productionOperationRef"^^xsd:string 251 [ sp:varName "productionOperationRef"^^xsd:string
137 ] 252 ]
138 ] [ sp:object 253 ] [ sp:object
139 - [ sp:varName "installationRef"^^xsd:string 254 + [ sp:varName "dateStart"^^xsd:string
140 ] ; 255 ] ;
141 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 256 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
142 sp:subject 257 sp:subject
143 [ sp:varName "productionOperationRef"^^xsd:string 258 [ sp:varName "productionOperationRef"^^xsd:string
144 ] 259 ]
145 ] [ sp:object 260 ] [ sp:object
146 - [ sp:varName "installationRef"^^xsd:string 261 + [ sp:varName "dateEnd"^^xsd:string
147 ] ; 262 ] ;
148 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 263 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
149 sp:subject 264 sp:subject
150 - [ sp:varName "productionFacility"^^xsd:string 265 + [ sp:varName "productionOperationsRef"^^xsd:string
151 ] 266 ]
152 ] [ sp:object 267 ] [ sp:object
153 [ sp:varName "productionOperationRef"^^xsd:string 268 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -177,45 +292,30 @@ ...@@ -177,45 +292,30 @@
177 ] ; 292 ] ;
178 spin:rule 293 spin:rule
179 [ rdf:type sp:Construct ; 294 [ rdf:type sp:Construct ;
180 - rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; 295 + rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ;
181 sp:templates ([ sp:object 296 sp:templates ([ sp:object
182 - [ sp:varName "reportKind"^^xsd:string 297 + [ sp:varName "dTimStart"^^xsd:string
183 ] ; 298 ] ;
184 - sp:predicate rdf:type ; 299 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
185 - sp:subject
186 - [ sp:varName "productionOperationReport"^^xsd:string
187 - ]
188 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
189 - sp:predicate rdf:type ;
190 sp:subject 300 sp:subject
191 - [ sp:varName "reportKind"^^xsd:string 301 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
192 ] 302 ]
193 ] [ sp:object 303 ] [ sp:object
194 - [ sp:varName "kind"^^xsd:string 304 + [ sp:varName "dTimEnd"^^xsd:string
195 ] ; 305 ] ;
196 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 306 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
197 - sp:subject
198 - [ sp:varName "reportKind"^^xsd:string
199 - ]
200 - ]) ;
201 - sp:where ([ sp:object spin:_this ;
202 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
203 - sp:subject
204 - [ sp:varName "productionReport"^^xsd:string
205 - ]
206 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
207 - sp:predicate rdf:type ;
208 sp:subject 307 sp:subject
209 - [ sp:varName "productionOperationReport"^^xsd:string 308 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
210 ] 309 ]
211 ] [ sp:object 310 ] [ sp:object
212 - [ sp:varName "productionReport"^^xsd:string 311 + [ sp:varName "dTimEnd"^^xsd:string
213 ] ; 312 ] ;
214 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 313 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
215 sp:subject 314 sp:subject
216 - [ sp:varName "productionOperationReport"^^xsd:string 315 + [ sp:varName "productionFacilityToDate"^^xsd:string
217 ] 316 ]
218 - ] [ sp:object 317 + ]) ;
318 + sp:where ([ sp:object
219 [ sp:varName "productionOperationRef"^^xsd:string 319 [ sp:varName "productionOperationRef"^^xsd:string
220 ] ; 320 ] ;
221 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 321 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -226,43 +326,42 @@ ...@@ -226,43 +326,42 @@
226 [ sp:varName "productionOperationRef"^^xsd:string 326 [ sp:varName "productionOperationRef"^^xsd:string
227 ] 327 ]
228 ] [ sp:object 328 ] [ sp:object
229 - [ sp:varName "nameRef"^^xsd:string 329 + [ sp:varName "dTimStart"^^xsd:string
230 ] ; 330 ] ;
231 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 331 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
232 sp:subject 332 sp:subject
233 [ sp:varName "productionOperationRef"^^xsd:string 333 [ sp:varName "productionOperationRef"^^xsd:string
234 ] 334 ]
235 ] [ sp:object 335 ] [ sp:object
236 - [ sp:varName "name"^^xsd:string 336 + [ sp:varName "dTimEnd"^^xsd:string
237 ] ; 337 ] ;
238 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 338 + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
239 sp:subject 339 sp:subject
240 - [ sp:varName "nameRef"^^xsd:string 340 + [ sp:varName "productionOperationRef"^^xsd:string
241 ] 341 ]
242 ] [ sp:object 342 ] [ sp:object
243 - [ sp:varName "kind"^^xsd:string 343 + [ sp:varName "productionOperationRef"^^xsd:string
244 ] ; 344 ] ;
245 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 345 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
246 sp:subject 346 sp:subject
247 - [ sp:varName "productionOperationRef"^^xsd:string 347 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
248 ] 348 ]
249 - ] [ rdf:type sp:Bind ; 349 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
250 - sp:expression 350 + sp:predicate rdf:type ;
251 - [ rdf:type ep-spin-lib:normalizeString ; 351 + sp:subject
252 - sp:arg1 [ sp:varName "kind"^^xsd:string 352 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
253 - ]
254 - ] ;
255 - sp:variable
256 - [ sp:varName "normalizedKind"^^xsd:string
257 ] 353 ]
258 - ] [ rdf:type sp:Bind ; 354 + ] [ sp:object
259 - sp:expression 355 + [ sp:varName "productionFacilityToDate"^^xsd:string
260 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
261 - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
262 - ]
263 ] ; 356 ] ;
264 - sp:variable 357 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
265 - [ sp:varName "reportKind"^^xsd:string 358 + sp:subject
359 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
360 + ]
361 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
362 + sp:predicate rdf:type ;
363 + sp:subject
364 + [ sp:varName "productionFacilityToDate"^^xsd:string
266 ] 365 ]
267 ]) 366 ])
268 ] ; 367 ] ;
...@@ -319,28 +418,21 @@ ...@@ -319,28 +418,21 @@
319 ] ; 418 ] ;
320 spin:rule 419 spin:rule
321 [ rdf:type sp:Construct ; 420 [ rdf:type sp:Construct ;
322 - rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; 421 + rdfs:comment """STEP 40060 Set the facility operator
323 - sp:templates ([ sp:object 422 +role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
324 - [ sp:varName "dTimStart"^^xsd:string 423 + sp:templates ([ sp:object _:b4 ;
325 - ] ; 424 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
326 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
327 - sp:subject
328 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
329 - ]
330 - ] [ sp:object
331 - [ sp:varName "dTimEnd"^^xsd:string
332 - ] ;
333 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
334 sp:subject 425 sp:subject
335 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 426 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
336 ] 427 ]
428 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
429 + sp:predicate rdf:type ;
430 + sp:subject _:b4
337 ] [ sp:object 431 ] [ sp:object
338 - [ sp:varName "dTimEnd"^^xsd:string 432 + [ sp:varName "operator"^^xsd:string
339 ] ; 433 ] ;
340 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 434 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
341 - sp:subject 435 + sp:subject _:b4
342 - [ sp:varName "productionFacilityToDate"^^xsd:string
343 - ]
344 ]) ; 436 ]) ;
345 sp:where ([ sp:object 437 sp:where ([ sp:object
346 [ sp:varName "productionOperationRef"^^xsd:string 438 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -353,20 +445,6 @@ ...@@ -353,20 +445,6 @@
353 [ sp:varName "productionOperationRef"^^xsd:string 445 [ sp:varName "productionOperationRef"^^xsd:string
354 ] 446 ]
355 ] [ sp:object 447 ] [ sp:object
356 - [ sp:varName "dTimStart"^^xsd:string
357 - ] ;
358 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
359 - sp:subject
360 - [ sp:varName "productionOperationRef"^^xsd:string
361 - ]
362 - ] [ sp:object
363 - [ sp:varName "dTimEnd"^^xsd:string
364 - ] ;
365 - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
366 - sp:subject
367 - [ sp:varName "productionOperationRef"^^xsd:string
368 - ]
369 - ] [ sp:object
370 [ sp:varName "productionOperationRef"^^xsd:string 448 [ sp:varName "productionOperationRef"^^xsd:string
371 ] ; 449 ] ;
372 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 450 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -379,40 +457,35 @@ ...@@ -379,40 +457,35 @@
379 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 457 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
380 ] 458 ]
381 ] [ sp:object 459 ] [ sp:object
382 - [ sp:varName "productionFacilityToDate"^^xsd:string 460 + [ sp:varName "operatorRef"^^xsd:string
383 ] ; 461 ] ;
384 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 462 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
385 sp:subject 463 sp:subject
386 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 464 + [ sp:varName "productionOperationRef"^^xsd:string
387 ] 465 ]
388 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; 466 + ] [ sp:object
389 - sp:predicate rdf:type ; 467 + [ sp:varName "operatorRef"^^xsd:string
468 + ] ;
469 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
390 sp:subject 470 sp:subject
391 - [ sp:varName "productionFacilityToDate"^^xsd:string 471 + [ sp:varName "operator"^^xsd:string
392 ] 472 ]
393 ]) 473 ])
394 ] ; 474 ] ;
395 spin:rule 475 spin:rule
396 [ rdf:type sp:Construct ; 476 [ rdf:type sp:Construct ;
397 - rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ; 477 + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ;
398 sp:templates ([ sp:object 478 sp:templates ([ sp:object
399 - [ sp:varName "dateStart"^^xsd:string 479 + [ sp:varName "productionFacility"^^xsd:string
400 - ] ;
401 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
402 - sp:subject
403 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
404 - ]
405 - ] [ sp:object
406 - [ sp:varName "dateEnd"^^xsd:string
407 ] ; 480 ] ;
408 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 481 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
409 sp:subject 482 sp:subject
410 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 483 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
411 ] 484 ]
412 ] [ sp:object 485 ] [ sp:object
413 - [ sp:varName "dateEnd"^^xsd:string 486 + [ sp:varName "productionFacility"^^xsd:string
414 ] ; 487 ] ;
415 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 488 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
416 sp:subject 489 sp:subject
417 [ sp:varName "productionFacilityToDate"^^xsd:string 490 [ sp:varName "productionFacilityToDate"^^xsd:string
418 ] 491 ]
...@@ -428,18 +501,18 @@ ...@@ -428,18 +501,18 @@
428 [ sp:varName "productionOperationRef"^^xsd:string 501 [ sp:varName "productionOperationRef"^^xsd:string
429 ] 502 ]
430 ] [ sp:object 503 ] [ sp:object
431 - [ sp:varName "dateStart"^^xsd:string 504 + [ sp:varName "installationRef"^^xsd:string
432 ] ; 505 ] ;
433 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 506 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
434 sp:subject 507 sp:subject
435 [ sp:varName "productionOperationRef"^^xsd:string 508 [ sp:varName "productionOperationRef"^^xsd:string
436 ] 509 ]
437 ] [ sp:object 510 ] [ sp:object
438 - [ sp:varName "dateEnd"^^xsd:string 511 + [ sp:varName "installationRef"^^xsd:string
439 ] ; 512 ] ;
440 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 513 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
441 sp:subject 514 sp:subject
442 - [ sp:varName "productionOperationsRef"^^xsd:string 515 + [ sp:varName "productionFacility"^^xsd:string
443 ] 516 ]
444 ] [ sp:object 517 ] [ sp:object
445 [ sp:varName "productionOperationRef"^^xsd:string 518 [ sp:varName "productionOperationRef"^^xsd:string
...@@ -469,54 +542,27 @@ ...@@ -469,54 +542,27 @@
469 ] ; 542 ] ;
470 spin:rule 543 spin:rule
471 [ rdf:type sp:Construct ; 544 [ rdf:type sp:Construct ;
472 - rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; 545 + rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ;
473 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ; 546 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
474 - sp:predicate rdf:type ;
475 - sp:subject _:b2
476 - ] [ sp:object
477 - [ sp:varName "productionReport"^^xsd:string
478 - ] ;
479 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
480 - sp:subject _:b2
481 - ] [ sp:object
482 - [ sp:varName "name"^^xsd:string
483 - ] ;
484 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
485 - sp:subject _:b2
486 - ] [ sp:object
487 - [ sp:varName "reportPeriodType"^^xsd:string
488 - ] ;
489 - sp:predicate rdf:type ;
490 - sp:subject _:b2
491 - ] [ sp:object _:b3 ;
492 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
493 - sp:subject _:b2
494 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
495 sp:predicate rdf:type ; 547 sp:predicate rdf:type ;
496 - sp:subject _:b3 548 + sp:subject _:b5
497 ] [ sp:object 549 ] [ sp:object
498 - [ sp:varName "productionOperationRef"^^xsd:string 550 + [ sp:varName "contextFacility"^^xsd:string
499 ] ; 551 ] ;
500 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 552 + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
501 - sp:subject _:b3 553 + sp:subject _:b5
502 - ] [ sp:object _:b4 ; 554 + ] [ sp:object _:b5 ;
503 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 555 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
504 - sp:subject _:b3
505 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
506 - sp:predicate rdf:type ;
507 - sp:subject _:b4
508 - ] [ sp:object
509 - [ sp:varName "title"^^xsd:string
510 - ] ;
511 - sp:predicate <http://purl.org/dc/elements/1.1/title> ;
512 - sp:subject _:b2
513 - ]) ;
514 - sp:where ([ sp:object spin:_this ;
515 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
516 sp:subject 556 sp:subject
517 - [ sp:varName "productionReport"^^xsd:string 557 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
518 ] 558 ]
519 - ] [ sp:object 559 + ] [ sp:object _:b5 ;
560 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
561 + sp:subject
562 + [ sp:varName "productionFacilityToDate"^^xsd:string
563 + ]
564 + ]) ;
565 + sp:where ([ sp:object
520 [ sp:varName "productionOperationRef"^^xsd:string 566 [ sp:varName "productionOperationRef"^^xsd:string
521 ] ; 567 ] ;
522 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 568 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...@@ -526,86 +572,38 @@ ...@@ -526,86 +572,38 @@
526 sp:subject 572 sp:subject
527 [ sp:varName "productionOperationRef"^^xsd:string 573 [ sp:varName "productionOperationRef"^^xsd:string
528 ] 574 ]
529 - ] [ sp:object 575 + ] [ rdf:type sp:NotExists ;
530 - [ sp:varName "nameRef"^^xsd:string
531 - ] ;
532 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
533 - sp:subject
534 - [ sp:varName "productionOperationRef"^^xsd:string
535 - ]
536 - ] [ sp:object
537 - [ sp:varName "name"^^xsd:string
538 - ] ;
539 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
540 - sp:subject
541 - [ sp:varName "nameRef"^^xsd:string
542 - ]
543 - ] [ rdf:type sp:Optional ;
544 - sp:elements ([ sp:object
545 - [ sp:varName "periodKindRef"^^xsd:string
546 - ] ;
547 - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
548 - sp:subject
549 - [ sp:varName "productionOperationRef"^^xsd:string
550 - ]
551 - ])
552 - ] [ rdf:type sp:Optional ;
553 sp:elements ([ sp:object 576 sp:elements ([ sp:object
554 - [ sp:varName "titleRef"^^xsd:string 577 + [ sp:varName "installationRef"^^xsd:string
555 ] ; 578 ] ;
556 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; 579 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
557 sp:subject 580 sp:subject
558 [ sp:varName "productionOperationRef"^^xsd:string 581 [ sp:varName "productionOperationRef"^^xsd:string
559 ] 582 ]
560 ] [ sp:object 583 ] [ sp:object
561 - [ sp:varName "title"^^xsd:string 584 + [ sp:varName "installationRef"^^xsd:string
562 ] ; 585 ] ;
563 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 586 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
564 sp:subject 587 sp:subject
565 - [ sp:varName "titleRef"^^xsd:string 588 + [ sp:varName "productionFacility"^^xsd:string
566 ] 589 ]
567 ]) 590 ])
568 - ] [ rdf:type sp:Bind ; 591 + ] [ sp:object
569 - sp:expression 592 + [ sp:varName "contextFacilityRef"^^xsd:string
570 - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
571 - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
572 - ]
573 ] ; 593 ] ;
574 - sp:variable 594 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
575 - [ sp:varName "reportPeriodType"^^xsd:string
576 - ]
577 - ])
578 - ] ;
579 - spin:rule
580 - [ rdf:type sp:Construct ;
581 - rdfs:comment """STEP 40060 Set the facility operator
582 -role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
583 - sp:templates ([ sp:object _:b5 ;
584 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
585 sp:subject 595 sp:subject
586 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 596 + [ sp:varName "productionOperationRef"^^xsd:string
587 ] 597 ]
588 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
589 - sp:predicate rdf:type ;
590 - sp:subject _:b5
591 ] [ sp:object 598 ] [ sp:object
592 - [ sp:varName "operator"^^xsd:string 599 + [ sp:varName "contextFacilityRef"^^xsd:string
593 - ] ;
594 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
595 - sp:subject _:b5
596 - ]) ;
597 - sp:where ([ sp:object
598 - [ sp:varName "productionOperationRef"^^xsd:string
599 ] ; 600 ] ;
600 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 601 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
601 - sp:subject spin:_this
602 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
603 - sp:predicate rdf:type ;
604 sp:subject 602 sp:subject
605 - [ sp:varName "productionOperationRef"^^xsd:string 603 + [ sp:varName "contextFacility"^^xsd:string
606 ] 604 ]
607 ] [ sp:object 605 ] [ sp:object
608 - [ sp:varName "productionOperationRef"^^xsd:string 606 + [ sp:varName "productVolumeRef"^^xsd:string
609 ] ; 607 ] ;
610 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 608 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
611 sp:subject 609 sp:subject
...@@ -617,23 +615,21 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; ...@@ -617,23 +615,21 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
617 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 615 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
618 ] 616 ]
619 ] [ sp:object 617 ] [ sp:object
620 - [ sp:varName "operatorRef"^^xsd:string 618 + [ sp:varName "productionFacilityToDate"^^xsd:string
621 ] ; 619 ] ;
622 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 620 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
623 sp:subject 621 sp:subject
624 - [ sp:varName "productionOperationRef"^^xsd:string 622 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
625 ] 623 ]
626 - ] [ sp:object 624 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
627 - [ sp:varName "operatorRef"^^xsd:string 625 + sp:predicate rdf:type ;
628 - ] ;
629 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
630 sp:subject 626 sp:subject
631 - [ sp:varName "operator"^^xsd:string 627 + [ sp:varName "productionFacilityToDate"^^xsd:string
632 ] 628 ]
633 ]) 629 ])
634 ] . 630 ] .
635 631
636 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> 632 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
637 rdf:type owl:Ontology ; 633 rdf:type owl:Ontology ;
638 - 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> ; 634 + 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> ;
639 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 635 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -19,52 +19,6 @@ ...@@ -19,52 +19,6 @@
19 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 19 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
20 spin:rule 20 spin:rule
21 [ rdf:type sp:Construct ; 21 [ rdf:type sp:Construct ;
22 - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
23 - sp:templates ([ sp:object
24 - [ sp:varName "intervalIdentifier"^^xsd:string
25 - ] ;
26 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
27 - sp:subject spin:_this
28 - ]) ;
29 - sp:where ([ sp:object
30 - [ sp:varName "contextRef"^^xsd:string
31 - ] ;
32 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
33 - sp:subject spin:_this
34 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
35 - sp:predicate rdf:type ;
36 - sp:subject
37 - [ sp:varName "contextRef"^^xsd:string
38 - ]
39 - ] [ sp:object
40 - [ sp:varName "dateStart"^^xsd:string
41 - ] ;
42 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
43 - sp:subject
44 - [ sp:varName "contextRef"^^xsd:string
45 - ]
46 - ] [ sp:object
47 - [ sp:varName "dateEnd"^^xsd:string
48 - ] ;
49 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
50 - sp:subject
51 - [ sp:varName "contextRef"^^xsd:string
52 - ]
53 - ] [ rdf:type sp:Bind ;
54 - sp:expression
55 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
56 - sp:arg1 [ sp:varName "dateStart"^^xsd:string
57 - ] ;
58 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string
59 - ]
60 - ] ;
61 - sp:variable
62 - [ sp:varName "intervalIdentifier"^^xsd:string
63 - ]
64 - ])
65 - ] ;
66 - spin:rule
67 - [ rdf:type sp:Construct ;
68 rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; 22 rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ;
69 sp:templates ([ sp:object 23 sp:templates ([ sp:object
70 [ sp:varName "contextFacility"^^xsd:string 24 [ sp:varName "contextFacility"^^xsd:string
...@@ -126,7 +80,7 @@ ...@@ -126,7 +80,7 @@
126 ] ; 80 ] ;
127 spin:rule 81 spin:rule
128 [ rdf:type sp:Construct ; 82 [ rdf:type sp:Construct ;
129 - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; 83 + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ;
130 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; 84 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
131 sp:predicate rdf:type ; 85 sp:predicate rdf:type ;
132 sp:subject 86 sp:subject
...@@ -162,21 +116,21 @@ ...@@ -162,21 +116,21 @@
162 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 116 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
163 sp:subject spin:_this 117 sp:subject spin:_this
164 ] [ sp:object 118 ] [ sp:object
165 - [ sp:varName "productionOperationRef"^^xsd:string 119 + [ sp:varName "contextRef"^^xsd:string
166 ] ; 120 ] ;
167 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 121 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
168 sp:subject spin:_this 122 sp:subject spin:_this
169 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; 123 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
170 sp:predicate rdf:type ; 124 sp:predicate rdf:type ;
171 sp:subject 125 sp:subject
172 - [ sp:varName "productionOperationRef"^^xsd:string 126 + [ sp:varName "contextRef"^^xsd:string
173 ] 127 ]
174 ] [ sp:object 128 ] [ sp:object
175 [ sp:varName "installationRef"^^xsd:string 129 [ sp:varName "installationRef"^^xsd:string
176 ] ; 130 ] ;
177 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 131 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
178 sp:subject 132 sp:subject
179 - [ sp:varName "productionOperationRef"^^xsd:string 133 + [ sp:varName "contextRef"^^xsd:string
180 ] 134 ]
181 ] [ sp:object 135 ] [ sp:object
182 [ sp:varName "installationRef"^^xsd:string 136 [ sp:varName "installationRef"^^xsd:string
...@@ -185,25 +139,6 @@ ...@@ -185,25 +139,6 @@
185 sp:subject 139 sp:subject
186 [ sp:varName "installation"^^xsd:string 140 [ sp:varName "installation"^^xsd:string
187 ] 141 ]
188 - ] [ rdf:type sp:NotExists ;
189 - sp:elements ([ sp:object
190 - [ sp:varName "contextRef"^^xsd:string
191 - ] ;
192 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
193 - sp:subject spin:_this
194 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
195 - sp:predicate rdf:type ;
196 - sp:subject
197 - [ sp:varName "contextRef"^^xsd:string
198 - ]
199 - ] [ sp:object
200 - [ sp:varName "something"^^xsd:string
201 - ] ;
202 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
203 - sp:subject
204 - [ sp:varName "contextRef"^^xsd:string
205 - ]
206 - ])
207 ] [ rdf:type sp:Bind ; 142 ] [ rdf:type sp:Bind ;
208 sp:expression 143 sp:expression
209 [ rdf:type spl:object ; 144 [ rdf:type spl:object ;
...@@ -229,7 +164,7 @@ ...@@ -229,7 +164,7 @@
229 ] ; 164 ] ;
230 spin:rule 165 spin:rule
231 [ rdf:type sp:Construct ; 166 [ rdf:type sp:Construct ;
232 - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; 167 + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ;
233 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; 168 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
234 sp:predicate rdf:type ; 169 sp:predicate rdf:type ;
235 sp:subject 170 sp:subject
...@@ -265,21 +200,21 @@ ...@@ -265,21 +200,21 @@
265 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 200 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
266 sp:subject spin:_this 201 sp:subject spin:_this
267 ] [ sp:object 202 ] [ sp:object
268 - [ sp:varName "productVolumeRef"^^xsd:string 203 + [ sp:varName "productionOperationRef"^^xsd:string
269 ] ; 204 ] ;
270 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 205 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
271 sp:subject spin:_this 206 sp:subject spin:_this
272 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 207 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
273 sp:predicate rdf:type ; 208 sp:predicate rdf:type ;
274 sp:subject 209 sp:subject
275 - [ sp:varName "productVolumeRef"^^xsd:string 210 + [ sp:varName "productionOperationRef"^^xsd:string
276 ] 211 ]
277 ] [ sp:object 212 ] [ sp:object
278 [ sp:varName "installationRef"^^xsd:string 213 [ sp:varName "installationRef"^^xsd:string
279 ] ; 214 ] ;
280 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 215 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
281 sp:subject 216 sp:subject
282 - [ sp:varName "productVolumeRef"^^xsd:string 217 + [ sp:varName "productionOperationRef"^^xsd:string
283 ] 218 ]
284 ] [ sp:object 219 ] [ sp:object
285 [ sp:varName "installationRef"^^xsd:string 220 [ sp:varName "installationRef"^^xsd:string
...@@ -290,25 +225,6 @@ ...@@ -290,25 +225,6 @@
290 ] 225 ]
291 ] [ rdf:type sp:NotExists ; 226 ] [ rdf:type sp:NotExists ;
292 sp:elements ([ sp:object 227 sp:elements ([ sp:object
293 - [ sp:varName "productionOperationRef"^^xsd:string
294 - ] ;
295 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
296 - sp:subject spin:_this
297 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
298 - sp:predicate rdf:type ;
299 - sp:subject
300 - [ sp:varName "productionOperationRef"^^xsd:string
301 - ]
302 - ] [ sp:object
303 - [ sp:varName "installationRef"^^xsd:string
304 - ] ;
305 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
306 - sp:subject
307 - [ sp:varName "productionOperationRef"^^xsd:string
308 - ]
309 - ])
310 - ] [ rdf:type sp:NotExists ;
311 - sp:elements ([ sp:object
312 [ sp:varName "contextRef"^^xsd:string 228 [ sp:varName "contextRef"^^xsd:string
313 ] ; 229 ] ;
314 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 230 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
...@@ -319,7 +235,7 @@ ...@@ -319,7 +235,7 @@
319 [ sp:varName "contextRef"^^xsd:string 235 [ sp:varName "contextRef"^^xsd:string
320 ] 236 ]
321 ] [ sp:object 237 ] [ sp:object
322 - [ sp:varName "installationRef"^^xsd:string 238 + [ sp:varName "something"^^xsd:string
323 ] ; 239 ] ;
324 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 240 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
325 sp:subject 241 sp:subject
...@@ -351,10 +267,20 @@ ...@@ -351,10 +267,20 @@
351 ] ; 267 ] ;
352 spin:rule 268 spin:rule
353 [ rdf:type sp:Construct ; 269 [ rdf:type sp:Construct ;
354 - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; 270 + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
355 - sp:templates ([ sp:object "noDate" ; 271 + sp:templates ([ sp:object _:b3 ;
356 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 272 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
357 - sp:subject spin:_this 273 + sp:subject
274 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
275 + ]
276 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
277 + sp:predicate rdf:type ;
278 + sp:subject _:b3
279 + ] [ sp:object
280 + [ sp:varName "operator"^^xsd:string
281 + ] ;
282 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
283 + sp:subject _:b3
358 ]) ; 284 ]) ;
359 sp:where ([ sp:object 285 sp:where ([ sp:object
360 [ sp:varName "contextRef"^^xsd:string 286 [ sp:varName "contextRef"^^xsd:string
...@@ -366,33 +292,37 @@ ...@@ -366,33 +292,37 @@
366 sp:subject 292 sp:subject
367 [ sp:varName "contextRef"^^xsd:string 293 [ sp:varName "contextRef"^^xsd:string
368 ] 294 ]
369 - ] [ rdf:type sp:NotExists ; 295 + ] [ sp:object
370 - sp:elements ([ sp:object 296 + [ sp:varName "operatorRef"^^xsd:string
371 - [ sp:varName "dateEnd"^^xsd:string 297 + ] ;
372 - ] ; 298 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
373 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 299 + sp:subject
374 - sp:subject 300 + [ sp:varName "contextRef"^^xsd:string
375 - [ sp:varName "contextRef"^^xsd:string 301 + ]
376 - ] 302 + ] [ sp:object
377 - ]) 303 + [ sp:varName "operatorRef"^^xsd:string
378 - ] [ rdf:type sp:NotExists ; 304 + ] ;
379 - sp:elements ([ sp:object 305 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
380 - [ sp:varName "date"^^xsd:string 306 + sp:subject
381 - ] ; 307 + [ sp:varName "operator"^^xsd:string
382 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 308 + ]
383 - sp:subject 309 + ] [ sp:object spin:_this ;
384 - [ sp:varName "contextRef"^^xsd:string 310 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
385 - ] 311 + sp:subject
386 - ]) 312 + [ sp:varName "productionReport"^^xsd:string
387 - ] [ rdf:type sp:NotExists ; 313 + ]
388 - sp:elements ([ sp:object 314 + ] [ sp:object
389 - [ sp:varName "dateStart"^^xsd:string 315 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
390 - ] ; 316 + ] ;
391 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 317 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
392 - sp:subject 318 + sp:subject
393 - [ sp:varName "contextRef"^^xsd:string 319 + [ sp:varName "productionReport"^^xsd:string
394 - ] 320 + ]
395 - ]) 321 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
322 + sp:predicate rdf:type ;
323 + sp:subject
324 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
325 + ]
396 ]) 326 ])
397 ] ; 327 ] ;
398 spin:rule 328 spin:rule
...@@ -405,13 +335,13 @@ ...@@ -405,13 +335,13 @@
405 sp:subject 335 sp:subject
406 [ sp:varName "productionReport"^^xsd:string 336 [ sp:varName "productionReport"^^xsd:string
407 ] 337 ]
408 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; 338 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
409 - sp:predicate rdfs:subClassOf ; 339 + sp:predicate rdf:type ;
410 sp:subject 340 sp:subject
411 [ sp:varName "reportKind"^^xsd:string 341 [ sp:varName "reportKind"^^xsd:string
412 ] 342 ]
413 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; 343 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
414 - sp:predicate rdf:type ; 344 + sp:predicate rdfs:subClassOf ;
415 sp:subject 345 sp:subject
416 [ sp:varName "reportKind"^^xsd:string 346 [ sp:varName "reportKind"^^xsd:string
417 ] 347 ]
...@@ -488,17 +418,8 @@ ...@@ -488,17 +418,8 @@
488 ] 418 ]
489 ] [ rdf:type sp:Bind ; 419 ] [ rdf:type sp:Bind ;
490 sp:expression 420 sp:expression
491 - [ rdf:type ep-spin-lib:normalizeString ;
492 - sp:arg1 [ sp:varName "kind"^^xsd:string
493 - ]
494 - ] ;
495 - sp:variable
496 - [ sp:varName "normalizedKind"^^xsd:string
497 - ]
498 - ] [ rdf:type sp:Bind ;
499 - sp:expression
500 [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; 421 [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
501 - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string 422 + sp:arg1 [ sp:varName "kind"^^xsd:string
502 ] 423 ]
503 ] ; 424 ] ;
504 sp:variable 425 sp:variable
...@@ -508,119 +429,55 @@ ...@@ -508,119 +429,55 @@
508 ] ; 429 ] ;
509 spin:rule 430 spin:rule
510 [ rdf:type sp:Construct ; 431 [ rdf:type sp:Construct ;
511 - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; 432 + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
512 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; 433 + sp:templates ([ sp:object "noDate" ;
513 - sp:predicate rdf:type ; 434 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
514 - sp:subject 435 + sp:subject spin:_this
515 - [ sp:varName "productionReport"^^xsd:string
516 - ]
517 - ] [ sp:object _:b3 ;
518 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
519 - sp:subject
520 - [ sp:varName "productionReport"^^xsd:string
521 - ]
522 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
523 - sp:predicate rdf:type ;
524 - sp:subject _:b3
525 - ] [ sp:object spin:_this ;
526 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
527 - sp:subject
528 - [ sp:varName "productionReport"^^xsd:string
529 - ]
530 - ] [ sp:object
531 - [ sp:varName "contextRef"^^xsd:string
532 - ] ;
533 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
534 - sp:subject _:b3
535 ]) ; 436 ]) ;
536 sp:where ([ sp:object 437 sp:where ([ sp:object
537 - [ sp:varName "intervalIdentifier"^^xsd:string 438 + [ sp:varName "contextRef"^^xsd:string
538 ] ; 439 ] ;
539 - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 440 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
540 sp:subject spin:_this 441 sp:subject spin:_this
442 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
443 + sp:predicate rdf:type ;
444 + sp:subject
445 + [ sp:varName "contextRef"^^xsd:string
446 + ]
541 ] [ rdf:type sp:NotExists ; 447 ] [ rdf:type sp:NotExists ;
542 sp:elements ([ sp:object 448 sp:elements ([ sp:object
543 - [ sp:varName "productVolumeRef"^^xsd:string 449 + [ sp:varName "dateEnd"^^xsd:string
544 ] ; 450 ] ;
545 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 451 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
546 - sp:subject spin:_this
547 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
548 - sp:predicate rdf:type ;
549 sp:subject 452 sp:subject
550 - [ sp:varName "productVolumeRef"^^xsd:string 453 + [ sp:varName "contextRef"^^xsd:string
551 ] 454 ]
552 - ] [ sp:object 455 + ])
553 - [ sp:varName "installationRef"^^xsd:string 456 + ] [ rdf:type sp:NotExists ;
457 + sp:elements ([ sp:object
458 + [ sp:varName "date"^^xsd:string
554 ] ; 459 ] ;
555 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 460 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
556 sp:subject 461 sp:subject
557 - [ sp:varName "productVolumeRef"^^xsd:string 462 + [ sp:varName "contextRef"^^xsd:string
558 ] 463 ]
559 ]) 464 ])
560 ] [ rdf:type sp:NotExists ; 465 ] [ rdf:type sp:NotExists ;
561 sp:elements ([ sp:object 466 sp:elements ([ sp:object
562 - [ sp:varName "productionOperationRef"^^xsd:string 467 + [ sp:varName "dateStart"^^xsd:string
563 - ] ;
564 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
565 - sp:subject spin:_this
566 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
567 - sp:predicate rdf:type ;
568 - sp:subject
569 - [ sp:varName "productionOperationRef"^^xsd:string
570 - ]
571 - ] [ sp:object
572 - [ sp:varName "installationRef"^^xsd:string
573 - ] ;
574 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
575 - sp:subject
576 - [ sp:varName "productionOperationRef"^^xsd:string
577 - ]
578 - ])
579 - ] [ rdf:type sp:NotExists ;
580 - sp:elements ([ sp:object
581 - [ sp:varName "contextRef"^^xsd:string
582 - ] ;
583 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
584 - sp:subject spin:_this
585 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
586 - sp:predicate rdf:type ;
587 - sp:subject
588 - [ sp:varName "contextRef"^^xsd:string
589 - ]
590 - ] [ sp:object
591 - [ sp:varName "installationRef"^^xsd:string
592 ] ; 468 ] ;
593 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 469 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
594 sp:subject 470 sp:subject
595 [ sp:varName "contextRef"^^xsd:string 471 [ sp:varName "contextRef"^^xsd:string
596 ] 472 ]
597 ]) 473 ])
598 - ] [ rdf:type sp:Bind ;
599 - sp:expression
600 - [ rdf:type ep-spin-lib:normalizeString ;
601 - sp:arg1 "noInstallation"
602 - ] ;
603 - sp:variable
604 - [ sp:varName "normalizedName"^^xsd:string
605 - ]
606 - ] [ rdf:type sp:Bind ;
607 - sp:expression
608 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
609 - sp:arg1 [ sp:varName "normalizedName"^^xsd:string
610 - ] ;
611 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
612 - ]
613 - ] ;
614 - sp:variable
615 - [ sp:varName "productionReport"^^xsd:string
616 - ]
617 ]) 474 ])
618 ] ; 475 ] ;
619 spin:rule 476 spin:rule
620 [ rdf:type sp:Construct ; 477 [ rdf:type sp:Construct ;
621 - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; 478 + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
622 sp:templates ([ sp:object 479 sp:templates ([ sp:object
623 - [ sp:varName "date"^^xsd:string 480 + [ sp:varName "intervalIdentifier"^^xsd:string
624 ] ; 481 ] ;
625 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 482 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
626 sp:subject spin:_this 483 sp:subject spin:_this
...@@ -636,35 +493,35 @@ ...@@ -636,35 +493,35 @@
636 [ sp:varName "contextRef"^^xsd:string 493 [ sp:varName "contextRef"^^xsd:string
637 ] 494 ]
638 ] [ sp:object 495 ] [ sp:object
639 - [ sp:varName "date"^^xsd:string 496 + [ sp:varName "dateStart"^^xsd:string
640 ] ; 497 ] ;
641 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 498 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
642 sp:subject 499 sp:subject
643 [ sp:varName "contextRef"^^xsd:string 500 [ sp:varName "contextRef"^^xsd:string
644 ] 501 ]
645 - ] [ rdf:type sp:NotExists ; 502 + ] [ sp:object
646 - sp:elements ([ sp:object 503 + [ sp:varName "dateEnd"^^xsd:string
647 - [ sp:varName "dateStart"^^xsd:string 504 + ] ;
648 - ] ; 505 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
649 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 506 + sp:subject
650 - sp:subject 507 + [ sp:varName "contextRef"^^xsd:string
651 - [ sp:varName "contextRef"^^xsd:string 508 + ]
652 - ] 509 + ] [ rdf:type sp:Bind ;
653 - ]) 510 + sp:expression
654 - ] [ rdf:type sp:NotExists ; 511 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
655 - sp:elements ([ sp:object 512 + sp:arg1 [ sp:varName "dateStart"^^xsd:string
656 - [ sp:varName "dateEnd"^^xsd:string 513 + ] ;
657 - ] ; 514 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
658 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 515 + ]
659 - sp:subject 516 + ] ;
660 - [ sp:varName "contextRef"^^xsd:string 517 + sp:variable
661 - ] 518 + [ sp:varName "intervalIdentifier"^^xsd:string
662 - ]) 519 + ]
663 ]) 520 ])
664 ] ; 521 ] ;
665 spin:rule 522 spin:rule
666 [ rdf:type sp:Construct ; 523 [ rdf:type sp:Construct ;
667 - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; 524 + rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ;
668 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; 525 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
669 sp:predicate rdf:type ; 526 sp:predicate rdf:type ;
670 sp:subject 527 sp:subject
...@@ -700,21 +557,21 @@ ...@@ -700,21 +557,21 @@
700 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 557 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
701 sp:subject spin:_this 558 sp:subject spin:_this
702 ] [ sp:object 559 ] [ sp:object
703 - [ sp:varName "contextRef"^^xsd:string 560 + [ sp:varName "productVolumeRef"^^xsd:string
704 ] ; 561 ] ;
705 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 562 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
706 sp:subject spin:_this 563 sp:subject spin:_this
707 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 564 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
708 sp:predicate rdf:type ; 565 sp:predicate rdf:type ;
709 sp:subject 566 sp:subject
710 - [ sp:varName "contextRef"^^xsd:string 567 + [ sp:varName "productVolumeRef"^^xsd:string
711 ] 568 ]
712 ] [ sp:object 569 ] [ sp:object
713 [ sp:varName "installationRef"^^xsd:string 570 [ sp:varName "installationRef"^^xsd:string
714 ] ; 571 ] ;
715 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 572 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
716 sp:subject 573 sp:subject
717 - [ sp:varName "contextRef"^^xsd:string 574 + [ sp:varName "productVolumeRef"^^xsd:string
718 ] 575 ]
719 ] [ sp:object 576 ] [ sp:object
720 [ sp:varName "installationRef"^^xsd:string 577 [ sp:varName "installationRef"^^xsd:string
...@@ -723,6 +580,44 @@ ...@@ -723,6 +580,44 @@
723 sp:subject 580 sp:subject
724 [ sp:varName "installation"^^xsd:string 581 [ sp:varName "installation"^^xsd:string
725 ] 582 ]
583 + ] [ rdf:type sp:NotExists ;
584 + sp:elements ([ sp:object
585 + [ sp:varName "productionOperationRef"^^xsd:string
586 + ] ;
587 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
588 + sp:subject spin:_this
589 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
590 + sp:predicate rdf:type ;
591 + sp:subject
592 + [ sp:varName "productionOperationRef"^^xsd:string
593 + ]
594 + ] [ sp:object
595 + [ sp:varName "installationRef"^^xsd:string
596 + ] ;
597 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
598 + sp:subject
599 + [ sp:varName "productionOperationRef"^^xsd:string
600 + ]
601 + ])
602 + ] [ rdf:type sp:NotExists ;
603 + sp:elements ([ sp:object
604 + [ sp:varName "contextRef"^^xsd:string
605 + ] ;
606 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
607 + sp:subject spin:_this
608 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
609 + sp:predicate rdf:type ;
610 + sp:subject
611 + [ sp:varName "contextRef"^^xsd:string
612 + ]
613 + ] [ sp:object
614 + [ sp:varName "installationRef"^^xsd:string
615 + ] ;
616 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
617 + sp:subject
618 + [ sp:varName "contextRef"^^xsd:string
619 + ]
620 + ])
726 ] [ rdf:type sp:Bind ; 621 ] [ rdf:type sp:Bind ;
727 sp:expression 622 sp:expression
728 [ rdf:type spl:object ; 623 [ rdf:type spl:object ;
...@@ -748,9 +643,9 @@ ...@@ -748,9 +643,9 @@
748 ] ; 643 ] ;
749 spin:rule 644 spin:rule
750 [ rdf:type sp:Construct ; 645 [ rdf:type sp:Construct ;
751 - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; 646 + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
752 sp:templates ([ sp:object 647 sp:templates ([ sp:object
753 - [ sp:varName "dateEnd"^^xsd:string 648 + [ sp:varName "intervalIdentifier"^^xsd:string
754 ] ; 649 ] ;
755 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 650 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
756 sp:subject spin:_this 651 sp:subject spin:_this
...@@ -766,23 +661,14 @@ ...@@ -766,23 +661,14 @@
766 [ sp:varName "contextRef"^^xsd:string 661 [ sp:varName "contextRef"^^xsd:string
767 ] 662 ]
768 ] [ sp:object 663 ] [ sp:object
769 - [ sp:varName "dateEnd"^^xsd:string 664 + [ sp:varName "date"^^xsd:string
770 ] ; 665 ] ;
771 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 666 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
772 sp:subject 667 sp:subject
773 [ sp:varName "contextRef"^^xsd:string 668 [ sp:varName "contextRef"^^xsd:string
774 ] 669 ]
775 ] [ rdf:type sp:NotExists ; 670 ] [ rdf:type sp:NotExists ;
776 sp:elements ([ sp:object 671 sp:elements ([ sp:object
777 - [ sp:varName "date"^^xsd:string
778 - ] ;
779 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
780 - sp:subject
781 - [ sp:varName "contextRef"^^xsd:string
782 - ]
783 - ])
784 - ] [ rdf:type sp:NotExists ;
785 - sp:elements ([ sp:object
786 [ sp:varName "dateStart"^^xsd:string 672 [ sp:varName "dateStart"^^xsd:string
787 ] ; 673 ] ;
788 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 674 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
...@@ -790,24 +676,34 @@ ...@@ -790,24 +676,34 @@
790 [ sp:varName "contextRef"^^xsd:string 676 [ sp:varName "contextRef"^^xsd:string
791 ] 677 ]
792 ]) 678 ])
679 + ] [ sp:object
680 + [ sp:varName "dateEnd"^^xsd:string
681 + ] ;
682 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
683 + sp:subject
684 + [ sp:varName "contextRef"^^xsd:string
685 + ]
686 + ] [ rdf:type sp:Bind ;
687 + sp:expression
688 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
689 + sp:arg1 [ sp:varName "date"^^xsd:string
690 + ] ;
691 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
692 + ]
693 + ] ;
694 + sp:variable
695 + [ sp:varName "intervalIdentifier"^^xsd:string
696 + ]
793 ]) 697 ])
794 ] ; 698 ] ;
795 spin:rule 699 spin:rule
796 [ rdf:type sp:Construct ; 700 [ rdf:type sp:Construct ;
797 - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; 701 + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
798 - sp:templates ([ sp:object _:b5 ; 702 + sp:templates ([ sp:object
799 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; 703 + [ sp:varName "dateEnd"^^xsd:string
800 - sp:subject
801 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
802 - ]
803 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
804 - sp:predicate rdf:type ;
805 - sp:subject _:b5
806 - ] [ sp:object
807 - [ sp:varName "operator"^^xsd:string
808 ] ; 704 ] ;
809 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 705 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
810 - sp:subject _:b5 706 + sp:subject spin:_this
811 ]) ; 707 ]) ;
812 sp:where ([ sp:object 708 sp:where ([ sp:object
813 [ sp:varName "contextRef"^^xsd:string 709 [ sp:varName "contextRef"^^xsd:string
...@@ -820,43 +716,37 @@ ...@@ -820,43 +716,37 @@
820 [ sp:varName "contextRef"^^xsd:string 716 [ sp:varName "contextRef"^^xsd:string
821 ] 717 ]
822 ] [ sp:object 718 ] [ sp:object
823 - [ sp:varName "operatorRef"^^xsd:string 719 + [ sp:varName "dateEnd"^^xsd:string
824 ] ; 720 ] ;
825 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; 721 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
826 sp:subject 722 sp:subject
827 [ sp:varName "contextRef"^^xsd:string 723 [ sp:varName "contextRef"^^xsd:string
828 ] 724 ]
829 - ] [ sp:object 725 + ] [ rdf:type sp:NotExists ;
830 - [ sp:varName "operatorRef"^^xsd:string 726 + sp:elements ([ sp:object
831 - ] ; 727 + [ sp:varName "date"^^xsd:string
832 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 728 + ] ;
833 - sp:subject 729 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
834 - [ sp:varName "operator"^^xsd:string 730 + sp:subject
835 - ] 731 + [ sp:varName "contextRef"^^xsd:string
836 - ] [ sp:object spin:_this ; 732 + ]
837 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 733 + ])
838 - sp:subject 734 + ] [ rdf:type sp:NotExists ;
839 - [ sp:varName "productionReport"^^xsd:string 735 + sp:elements ([ sp:object
840 - ] 736 + [ sp:varName "dateStart"^^xsd:string
841 - ] [ sp:object 737 + ] ;
842 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 738 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
843 - ] ; 739 + sp:subject
844 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 740 + [ sp:varName "contextRef"^^xsd:string
845 - sp:subject 741 + ]
846 - [ sp:varName "productionReport"^^xsd:string 742 + ])
847 - ]
848 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
849 - sp:predicate rdf:type ;
850 - sp:subject
851 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
852 - ]
853 ]) 743 ])
854 ] ; 744 ] ;
855 spin:rule 745 spin:rule
856 [ rdf:type sp:Construct ; 746 [ rdf:type sp:Construct ;
857 - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; 747 + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
858 sp:templates ([ sp:object 748 sp:templates ([ sp:object
859 - [ sp:varName "intervalIdentifier"^^xsd:string 749 + [ sp:varName "date"^^xsd:string
860 ] ; 750 ] ;
861 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; 751 sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
862 sp:subject spin:_this 752 sp:subject spin:_this
...@@ -887,28 +777,129 @@ ...@@ -887,28 +777,129 @@
887 [ sp:varName "contextRef"^^xsd:string 777 [ sp:varName "contextRef"^^xsd:string
888 ] 778 ]
889 ]) 779 ])
890 - ] [ sp:object 780 + ] [ rdf:type sp:NotExists ;
891 - [ sp:varName "dateEnd"^^xsd:string 781 + sp:elements ([ sp:object
892 - ] ; 782 + [ sp:varName "dateEnd"^^xsd:string
893 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 783 + ] ;
784 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
785 + sp:subject
786 + [ sp:varName "contextRef"^^xsd:string
787 + ]
788 + ])
789 + ])
790 + ] ;
791 + spin:rule
792 + [ rdf:type sp:Construct ;
793 + rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ;
794 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
795 + sp:predicate rdf:type ;
894 sp:subject 796 sp:subject
797 + [ sp:varName "productionReport"^^xsd:string
798 + ]
799 + ] [ sp:object _:b5 ;
800 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
801 + sp:subject
802 + [ sp:varName "productionReport"^^xsd:string
803 + ]
804 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
805 + sp:predicate rdf:type ;
806 + sp:subject _:b5
807 + ] [ sp:object spin:_this ;
808 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
809 + sp:subject
810 + [ sp:varName "productionReport"^^xsd:string
811 + ]
812 + ] [ sp:object
895 [ sp:varName "contextRef"^^xsd:string 813 [ sp:varName "contextRef"^^xsd:string
814 + ] ;
815 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
816 + sp:subject _:b5
817 + ]) ;
818 + sp:where ([ sp:object
819 + [ sp:varName "intervalIdentifier"^^xsd:string
820 + ] ;
821 + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
822 + sp:subject spin:_this
823 + ] [ rdf:type sp:NotExists ;
824 + sp:elements ([ sp:object
825 + [ sp:varName "productVolumeRef"^^xsd:string
826 + ] ;
827 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
828 + sp:subject spin:_this
829 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
830 + sp:predicate rdf:type ;
831 + sp:subject
832 + [ sp:varName "productVolumeRef"^^xsd:string
833 + ]
834 + ] [ sp:object
835 + [ sp:varName "installationRef"^^xsd:string
836 + ] ;
837 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
838 + sp:subject
839 + [ sp:varName "productVolumeRef"^^xsd:string
840 + ]
841 + ])
842 + ] [ rdf:type sp:NotExists ;
843 + sp:elements ([ sp:object
844 + [ sp:varName "productionOperationRef"^^xsd:string
845 + ] ;
846 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
847 + sp:subject spin:_this
848 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
849 + sp:predicate rdf:type ;
850 + sp:subject
851 + [ sp:varName "productionOperationRef"^^xsd:string
852 + ]
853 + ] [ sp:object
854 + [ sp:varName "installationRef"^^xsd:string
855 + ] ;
856 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
857 + sp:subject
858 + [ sp:varName "productionOperationRef"^^xsd:string
859 + ]
860 + ])
861 + ] [ rdf:type sp:NotExists ;
862 + sp:elements ([ sp:object
863 + [ sp:varName "contextRef"^^xsd:string
864 + ] ;
865 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
866 + sp:subject spin:_this
867 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
868 + sp:predicate rdf:type ;
869 + sp:subject
870 + [ sp:varName "contextRef"^^xsd:string
871 + ]
872 + ] [ sp:object
873 + [ sp:varName "installationRef"^^xsd:string
874 + ] ;
875 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
876 + sp:subject
877 + [ sp:varName "contextRef"^^xsd:string
878 + ]
879 + ])
880 + ] [ rdf:type sp:Bind ;
881 + sp:expression
882 + [ rdf:type ep-spin-lib:normalizeString ;
883 + sp:arg1 "noInstallation"
884 + ] ;
885 + sp:variable
886 + [ sp:varName "normalizedName"^^xsd:string
896 ] 887 ]
897 ] [ rdf:type sp:Bind ; 888 ] [ rdf:type sp:Bind ;
898 sp:expression 889 sp:expression
899 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; 890 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
900 - sp:arg1 [ sp:varName "date"^^xsd:string 891 + sp:arg1 [ sp:varName "normalizedName"^^xsd:string
901 ] ; 892 ] ;
902 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string 893 + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
903 ] 894 ]
904 ] ; 895 ] ;
905 sp:variable 896 sp:variable
906 - [ sp:varName "intervalIdentifier"^^xsd:string 897 + [ sp:varName "productionReport"^^xsd:string
907 ] 898 ]
908 ]) 899 ])
909 ] . 900 ] .
910 901
911 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> 902 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
912 rdf:type owl:Ontology ; 903 rdf:type owl:Ontology ;
913 - 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> ; 904 + 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> ;
914 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 905 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
14 <name>TRYM production operation</name> 14 <name>TRYM production operation</name>
15 <installation kind="well" namingSystem="NPD" uidRef="18081500">10/1-A-9</installation> 15 <installation kind="well" namingSystem="NPD" uidRef="18081500">10/1-A-9</installation>
16 <contextFacility kind="field" namingSystem="NPD" uidRef="18081500">TRYM</contextFacility> 16 <contextFacility kind="field" namingSystem="NPD" uidRef="18081500">TRYM</contextFacility>
17 - <kind>ReportKind</kind> 17 + <kind>report kind</kind>
18 <periodKind>day</periodKind> 18 <periodKind>day</periodKind>
19 <dateStart>2012-04-12</dateStart> 19 <dateStart>2012-04-12</dateStart>
20 <dateEnd>2012-04-13</dateEnd> 20 <dateEnd>2012-04-13</dateEnd>
...@@ -34,7 +34,36 @@ ...@@ -34,7 +34,36 @@
34 <work uom="h">100</work> 34 <work uom="h">100</work>
35 <workMonthToDate uom="h">200</workMonthToDate> 35 <workMonthToDate uom="h">200</workMonthToDate>
36 <workYearToDate uom="h">300</workYearToDate> 36 <workYearToDate uom="h">300</workYearToDate>
37 - <productionActivity> 37 + <operationalHSE>
38 + <IncidentCount>4</IncidentCount>
39 + <sinceLostTime uom="d">5</sinceLostTime>
40 + <sincePreventionExercise uom="d">6</sincePreventionExercise>
41 + <sinceDefinedSituation uom="d">7</sinceDefinedSituation>
42 + <medicalTreatmentCount>8</medicalTreatmentCount>
43 + <alarmCount>9</alarmCount>
44 + <safetyIntroCount>10</safetyIntroCount>
45 + <safetyDescription>A safety description</safetyDescription>
46 + <safety>
47 + <meantimeIncident uom="h">36</meantimeIncident>
48 + <safetyCount type="lost time accident">11</safetyCount>
49 + <safetyCount type="year-to-date incidents">99</safetyCount>
50 + <comment>
51 + <who>David Leal</who>
52 + <role>ontologist</role>
53 + <dTimStart>2012-04-19T10:00:00</dTimStart>
54 + <dTimEnd>2012-04-20T10:00:00</dTimEnd>
55 + <remark>A comment from David</remark>
56 + </comment>
57 + <comment>
58 + <who>David Leal</who>
59 + <role>engineer</role>
60 + <dTimStart>2012-04-21T10:00:00</dTimStart>
61 + <dTimEnd>2012-04-21T10:00:00</dTimEnd>
62 + <remark>Another comment from David</remark>
63 + </comment>
64 + </safety>
65 + </operationalHSE>
66 + <productionActivity>
38 <lostProduction> 67 <lostProduction>
39 <volumeAndReason uom="m3" reasonLost="preventive maint topside">1000</volumeAndReason> 68 <volumeAndReason uom="m3" reasonLost="preventive maint topside">1000</volumeAndReason>
40 <volumeAndReason uom="m3" reasonLost="well planned operations">1100</volumeAndReason> 69 <volumeAndReason uom="m3" reasonLost="well planned operations">1100</volumeAndReason>
...@@ -63,6 +92,48 @@ ...@@ -63,6 +92,48 @@
63 <gasStdTempPres uom="m3">2500</gasStdTempPres> 92 <gasStdTempPres uom="m3">2500</gasStdTempPres>
64 </thirdPartyProcessing> 93 </thirdPartyProcessing>
65 </lostInjection> 94 </lostInjection>
95 + <marineOperation>
96 + <dTimStart>2012-04-19T10:00:00</dTimStart>
97 + <dTimEnd>2012-04-20T10:00:00</dTimEnd>
98 + <generalComment>General comment about a marine operation</generalComment>
99 + <supplyShip>Supply Venture</supplyShip>
100 + <standbyVessel>Standby Queen</standbyVessel>
101 + <supplyShipComment>
102 + <who>David Leal</who>
103 + <role>ontologist</role>
104 + <dTimStart>2012-04-19T10:00:00</dTimStart>
105 + <dTimEnd>2012-04-19T11:00:00</dTimEnd>
106 + <remark>A supply ship comment from David</remark>
107 + </supplyShipComment>
108 + <standbyVesselComment>
109 + <who>David Leal</who>
110 + <role>ontologist</role>
111 + <dTimStart>2012-04-19T12:00:00</dTimStart>
112 + <dTimEnd>2012-04-19T13:00:00</dTimEnd>
113 + <remark>A standby vessel comment from David</remark>
114 + </standbyVesselComment>
115 + <standbyVesselComment>
116 + <who>David Leal</who>
117 + <role>ontologist</role>
118 + <dTimStart>2012-04-19T13:00:00</dTimStart>
119 + <dTimEnd>2012-04-19T14:00:00</dTimEnd>
120 + <remark>Another standby vessel comment from David</remark>
121 + </standbyVesselComment>
122 + <basketMovement>
123 + <who>David Leal</who>
124 + <role>ontologist</role>
125 + <dTimStart>2012-04-19T14:00:00</dTimStart>
126 + <dTimEnd>2012-04-19T15:00:00</dTimEnd>
127 + <remark>A basket movement comment from David</remark>
128 + </basketMovement>
129 + <activity>
130 + <who>David Leal</who>
131 + <role>ontologist</role>
132 + <dTimStart>2012-04-19T15:00:00</dTimStart>
133 + <dTimEnd>2012-04-19T16:00:00</dTimEnd>
134 + <remark>A marine operations activity comment from David</remark>
135 + </activity>
136 + </marineOperation>
66 </productionActivity> 137 </productionActivity>
67 </installationReport> 138 </installationReport>
68 </object> 139 </object>
......