David Price

Remove company URIs for non validated company name use

...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
20 20
21 <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo> 21 <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo>
22 rdf:type owl:Ontology ; 22 rdf:type owl:Ontology ;
23 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 23 + owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
24 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 24 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
25 25
26 <http://www.witsml.org/schemas/1series#Obj_drillReport> 26 <http://www.witsml.org/schemas/1series#Obj_drillReport>
...@@ -77,26 +77,14 @@ ...@@ -77,26 +77,14 @@
77 sp:subject 77 sp:subject
78 [ sp:varName "wellBoreLogRun"^^xsd:string 78 [ sp:varName "wellBoreLogRun"^^xsd:string
79 ] 79 ]
80 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 80 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ;
81 sp:predicate rdf:type ; 81 sp:predicate rdf:type ;
82 sp:subject _:b3 82 sp:subject _:b3
83 ] [ sp:object 83 ] [ sp:object
84 - [ sp:varName "serviceCompany"^^xsd:string
85 - ] ;
86 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
87 - sp:subject _:b3
88 - ] [ sp:object
89 [ sp:varName "nameServiceCompany"^^xsd:string 84 [ sp:varName "nameServiceCompany"^^xsd:string
90 ] ; 85 ] ;
91 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 86 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
92 - sp:subject 87 + sp:subject _:b3
93 - [ sp:varName "serviceCompany"^^xsd:string
94 - ]
95 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ;
96 - sp:predicate rdf:type ;
97 - sp:subject
98 - [ sp:varName "serviceCompany"^^xsd:string
99 - ]
100 ] [ sp:object _:b4 ; 88 ] [ sp:object _:b4 ;
101 sp:predicate <http://www.reportinghub.no/ep/schema/activity#wellBoreLoggingTool> ; 89 sp:predicate <http://www.reportinghub.no/ep/schema/activity#wellBoreLoggingTool> ;
102 sp:subject 90 sp:subject
...@@ -475,24 +463,6 @@ ...@@ -475,24 +463,6 @@
475 sp:variable 463 sp:variable
476 [ sp:varName "lengthScaleTvdTool"^^xsd:string 464 [ sp:varName "lengthScaleTvdTool"^^xsd:string
477 ] 465 ]
478 - ] [ rdf:type sp:Bind ;
479 - sp:expression
480 - [ rdf:type ep-spin-lib:normalizeString ;
481 - sp:arg1 [ sp:varName "nameServiceCompany"^^xsd:string
482 - ]
483 - ] ;
484 - sp:variable
485 - [ sp:varName "normalizedNameServiceCompany"^^xsd:string
486 - ]
487 - ] [ rdf:type sp:Bind ;
488 - sp:expression
489 - [ rdf:type rhspin:companyById ;
490 - arg:id [ sp:varName "normalizedNameServiceCompany"^^xsd:string
491 - ]
492 - ] ;
493 - sp:variable
494 - [ sp:varName "serviceCompany"^^xsd:string
495 - ]
496 ]) 466 ])
497 ] ; 467 ] ;
498 spin:rule 468 spin:rule
......
1 -# Saved by TopBraid on Mon Oct 03 12:54:15 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo 1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
2 +# imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 3 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
5 # imports: http://www.witsml.org/schemas/1series 5 # imports: http://www.witsml.org/schemas/1series
6 -# imports: http://spinrdf.org/spin
7 6
8 @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
9 @prefix arg: <http://spinrdf.org/arg#> . 8 @prefix arg: <http://spinrdf.org/arg#> .
...@@ -26,35 +25,93 @@ ...@@ -26,35 +25,93 @@
26 25
27 <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> 26 <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
28 rdf:type owl:Ontology ; 27 rdf:type owl:Ontology ;
29 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://spinrdf.org/spin> ; 28 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
30 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 29 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
31 30
32 ddr:Obj_drillReport 31 ddr:Obj_drillReport
33 spin:rule 32 spin:rule
34 [ rdf:type sp:Construct ; 33 [ rdf:type sp:Construct ;
34 + rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
35 + sp:templates ([ sp:object _:b1 ;
36 + sp:predicate ep-activity:onRig ;
37 + sp:subject _:b2
38 + ] [ sp:object ep-facility:TemporalPartOfARig ;
39 + sp:predicate rdf:type ;
40 + sp:subject _:b1
41 + ] [ sp:object _:b3 ;
42 + sp:predicate ep-core:temporalPartOf ;
43 + sp:subject _:b1
44 + ] [ sp:object ep-facility:Rig ;
45 + sp:predicate rdf:type ;
46 + sp:subject _:b3
47 + ]) ;
48 + sp:where ([ sp:object _:b4 ;
49 + sp:predicate ep-spin-lib:nameWellbore ;
50 + sp:subject spin:_this
51 + ] [ sp:object _:b5 ;
52 + sp:predicate ddr:dTimStart ;
53 + sp:subject spin:_this
54 + ] [ rdf:type sp:NotExists ;
55 + sp:elements ([ sp:object _:b6 ;
56 + sp:predicate ddr:wellboreInfoRef ;
57 + sp:subject spin:_this
58 + ] [ sp:object _:b7 ;
59 + sp:predicate ddr:rigAliasRef ;
60 + sp:subject _:b6
61 + ] [ sp:object
62 + [ sp:varName "code"^^xsd:string
63 + ] ;
64 + sp:predicate ddr:name ;
65 + sp:subject _:b7
66 + ] [ rdf:type sp:Union ;
67 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
68 + sp:predicate ddr:namingSystem ;
69 + sp:subject _:b7
70 + ]) ([ sp:object "NPD code"^^xsd:string ;
71 + sp:predicate ddr:namingSystem ;
72 + sp:subject _:b7
73 + ]))
74 + ])
75 + ] [ rdf:type sp:Bind ;
76 + sp:expression
77 + [ rdf:type ep-spin-lib:normalizeString ;
78 + sp:arg1 _:b4
79 + ] ;
80 + sp:variable _:b8
81 + ] [ rdf:type sp:Bind ;
82 + sp:expression
83 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
84 + sp:arg1 _:b8 ;
85 + sp:arg2 _:b5
86 + ] ;
87 + sp:variable _:b2
88 + ])
89 + ] ;
90 + spin:rule
91 + [ rdf:type sp:Construct ;
35 rdfs:comment """STEP 169a Transfer waterDepth 92 rdfs:comment """STEP 169a Transfer waterDepth
36 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 93 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
37 - sp:templates ([ sp:object _:b1 ; 94 + sp:templates ([ sp:object _:b9 ;
38 sp:predicate ep-core:hasPart ; 95 sp:predicate ep-core:hasPart ;
39 sp:subject 96 sp:subject
40 [ sp:varName "temporalPartOfARig"^^xsd:string 97 [ sp:varName "temporalPartOfARig"^^xsd:string
41 ] 98 ]
42 ] [ sp:object ep-facility:SurroundingWater ; 99 ] [ sp:object ep-facility:SurroundingWater ;
43 sp:predicate rdf:type ; 100 sp:predicate rdf:type ;
44 - sp:subject _:b1 101 + sp:subject _:b9
45 - ] [ sp:object _:b2 ; 102 + ] [ sp:object _:b10 ;
46 sp:predicate ep-facility:depthOfSurroundingWater ; 103 sp:predicate ep-facility:depthOfSurroundingWater ;
47 - sp:subject _:b1 104 + sp:subject _:b9
48 ] [ sp:object ep-core:Length ; 105 ] [ sp:object ep-core:Length ;
49 sp:predicate rdf:type ; 106 sp:predicate rdf:type ;
50 - sp:subject _:b2 107 + sp:subject _:b10
51 ] [ sp:object 108 ] [ sp:object
52 [ sp:varName "real"^^xsd:string 109 [ sp:varName "real"^^xsd:string
53 ] ; 110 ] ;
54 sp:predicate 111 sp:predicate
55 [ sp:varName "lengthScale"^^xsd:string 112 [ sp:varName "lengthScale"^^xsd:string
56 ] ; 113 ] ;
57 - sp:subject _:b2 114 + sp:subject _:b10
58 ]) ; 115 ]) ;
59 sp:where ([ sp:object 116 sp:where ([ sp:object
60 [ sp:varName "nameWellBore"^^xsd:string 117 [ sp:varName "nameWellBore"^^xsd:string
...@@ -132,6 +189,139 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -132,6 +189,139 @@ This rule processes data from statusInfo, but is here because it must be execute
132 ] ; 189 ] ;
133 spin:rule 190 spin:rule
134 [ rdf:type sp:Construct ; 191 [ rdf:type sp:Construct ;
192 + rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
193 + sp:templates ([ sp:object _:b11 ;
194 + sp:predicate ep-activity:drillingContractor ;
195 + sp:subject
196 + [ sp:varName "dailyDrillingActivity"^^xsd:string
197 + ]
198 + ] [ sp:object ep-org:Company ;
199 + sp:predicate rdf:type ;
200 + sp:subject _:b11
201 + ] [ sp:object
202 + [ sp:varName "nameContractor"^^xsd:string
203 + ] ;
204 + sp:predicate ep-core:name ;
205 + sp:subject _:b11
206 + ]) ;
207 + sp:where ([ sp:object
208 + [ sp:varName "nameWellBore"^^xsd:string
209 + ] ;
210 + sp:predicate ep-spin-lib:nameWellbore ;
211 + sp:subject spin:_this
212 + ] [ sp:object
213 + [ sp:varName "dTimStart"^^xsd:string
214 + ] ;
215 + sp:predicate ddr:dTimStart ;
216 + sp:subject spin:_this
217 + ] [ sp:object
218 + [ sp:varName "wellboreInfo"^^xsd:string
219 + ] ;
220 + sp:predicate ddr:wellboreInfoRef ;
221 + sp:subject spin:_this
222 + ] [ sp:object
223 + [ sp:varName "nameContractor"^^xsd:string
224 + ] ;
225 + sp:predicate ddr:drillContractor ;
226 + sp:subject
227 + [ sp:varName "wellboreInfo"^^xsd:string
228 + ]
229 + ] [ rdf:type sp:Bind ;
230 + sp:expression
231 + [ rdf:type ep-spin-lib:normalizeString ;
232 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
233 + ]
234 + ] ;
235 + sp:variable
236 + [ sp:varName "normalizedWellBoreName"^^xsd:string
237 + ]
238 + ] [ rdf:type sp:Bind ;
239 + sp:expression
240 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
241 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
242 + ] ;
243 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
244 + ]
245 + ] ;
246 + sp:variable
247 + [ sp:varName "dailyDrillingActivity"^^xsd:string
248 + ]
249 + ] [ rdf:type sp:Bind ;
250 + sp:expression
251 + [ rdf:type ep-spin-lib:normalizeString ;
252 + sp:arg1 [ sp:varName "nameContractor"^^xsd:string
253 + ]
254 + ] ;
255 + sp:variable
256 + [ sp:varName "normalizedContractorName"^^xsd:string
257 + ]
258 + ] [ rdf:type sp:Bind ;
259 + sp:expression
260 + [ rdf:type rhspin:companyById ;
261 + arg:id [ sp:varName "normalizedContractorName"^^xsd:string
262 + ]
263 + ] ;
264 + sp:variable
265 + [ sp:varName "contractor"^^xsd:string
266 + ]
267 + ])
268 + ] ;
269 + spin:rule
270 + [ rdf:type sp:Construct ;
271 + rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ;
272 + sp:templates ([ sp:object _:b12 ;
273 + sp:predicate ep-core:npdName ;
274 + sp:subject _:b13
275 + ]) ;
276 + sp:where ([ sp:object _:b14 ;
277 + sp:predicate ep-spin-lib:nameWellbore ;
278 + sp:subject spin:_this
279 + ] [ sp:object _:b15 ;
280 + sp:predicate ddr:dTimStart ;
281 + sp:subject spin:_this
282 + ] [ sp:object _:b16 ;
283 + sp:predicate ddr:wellboreInfoRef ;
284 + sp:subject spin:_this
285 + ] [ sp:object _:b17 ;
286 + sp:predicate ddr:rigAliasRef ;
287 + sp:subject _:b16
288 + ] [ sp:object _:b12 ;
289 + sp:predicate ddr:name ;
290 + sp:subject _:b17
291 + ] [ rdf:type sp:Union ;
292 + sp:elements (([ sp:object "NPD Name"^^xsd:string ;
293 + sp:predicate ddr:namingSystem ;
294 + sp:subject _:b17
295 + ]) ([ sp:object "NPD name"^^xsd:string ;
296 + sp:predicate ddr:namingSystem ;
297 + sp:subject _:b17
298 + ]))
299 + ] [ sp:object _:b18 ;
300 + sp:predicate ep-activity:onRig ;
301 + sp:subject _:b19
302 + ] [ sp:object _:b13 ;
303 + sp:predicate ep-core:temporalPartOf ;
304 + sp:subject _:b18
305 + ] [ sp:object ep-facility:Rig ;
306 + sp:predicate rdf:type ;
307 + sp:subject _:b13
308 + ] [ rdf:type sp:Bind ;
309 + sp:expression
310 + [ rdf:type ep-spin-lib:normalizeString ;
311 + sp:arg1 _:b14
312 + ] ;
313 + sp:variable _:b20
314 + ] [ rdf:type sp:Bind ;
315 + sp:expression
316 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
317 + sp:arg1 _:b20 ;
318 + sp:arg2 _:b15
319 + ] ;
320 + sp:variable _:b19
321 + ])
322 + ] ;
323 + spin:rule
324 + [ rdf:type sp:Construct ;
135 rdfs:comment """STEP 168 Transfer fixedRig 325 rdfs:comment """STEP 168 Transfer fixedRig
136 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 326 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
137 sp:templates ([ sp:object 327 sp:templates ([ sp:object
...@@ -216,65 +406,11 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -216,65 +406,11 @@ This rule processes data from statusInfo, but is here because it must be execute
216 ] ; 406 ] ;
217 spin:rule 407 spin:rule
218 [ rdf:type sp:Construct ; 408 [ rdf:type sp:Construct ;
219 - rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ; 409 + rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
220 - sp:templates ([ sp:object _:b3 ;
221 - sp:predicate ep-core:npdName ;
222 - sp:subject _:b4
223 - ]) ;
224 - sp:where ([ sp:object _:b5 ;
225 - sp:predicate ep-spin-lib:nameWellbore ;
226 - sp:subject spin:_this
227 - ] [ sp:object _:b6 ;
228 - sp:predicate ddr:dTimStart ;
229 - sp:subject spin:_this
230 - ] [ sp:object _:b7 ;
231 - sp:predicate ddr:wellboreInfoRef ;
232 - sp:subject spin:_this
233 - ] [ sp:object _:b8 ;
234 - sp:predicate ddr:rigAliasRef ;
235 - sp:subject _:b7
236 - ] [ sp:object _:b3 ;
237 - sp:predicate ddr:name ;
238 - sp:subject _:b8
239 - ] [ rdf:type sp:Union ;
240 - sp:elements (([ sp:object "NPD Name"^^xsd:string ;
241 - sp:predicate ddr:namingSystem ;
242 - sp:subject _:b8
243 - ]) ([ sp:object "NPD name"^^xsd:string ;
244 - sp:predicate ddr:namingSystem ;
245 - sp:subject _:b8
246 - ]))
247 - ] [ sp:object _:b9 ;
248 - sp:predicate ep-activity:onRig ;
249 - sp:subject _:b10
250 - ] [ sp:object _:b4 ;
251 - sp:predicate ep-core:temporalPartOf ;
252 - sp:subject _:b9
253 - ] [ sp:object ep-facility:Rig ;
254 - sp:predicate rdf:type ;
255 - sp:subject _:b4
256 - ] [ rdf:type sp:Bind ;
257 - sp:expression
258 - [ rdf:type ep-spin-lib:normalizeString ;
259 - sp:arg1 _:b5
260 - ] ;
261 - sp:variable _:b11
262 - ] [ rdf:type sp:Bind ;
263 - sp:expression
264 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
265 - sp:arg1 _:b11 ;
266 - sp:arg2 _:b6
267 - ] ;
268 - sp:variable _:b10
269 - ])
270 - ] ;
271 - spin:rule
272 - [ rdf:type sp:Construct ;
273 - rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
274 sp:templates ([ sp:object 410 sp:templates ([ sp:object
275 - [ sp:varName "preSpudDate"^^xsd:string 411 + [ sp:varName "dateDrillComplete"^^xsd:string
276 ] ; 412 ] ;
277 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ; 413 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
278 sp:subject 414 sp:subject
279 [ sp:varName "wellBore"^^xsd:string 415 [ sp:varName "wellBore"^^xsd:string
280 ] 416 ]
...@@ -295,9 +431,9 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -295,9 +431,9 @@ This rule processes data from statusInfo, but is here because it must be execute
295 sp:predicate ddr:wellboreInfoRef ; 431 sp:predicate ddr:wellboreInfoRef ;
296 sp:subject spin:_this 432 sp:subject spin:_this
297 ] [ sp:object 433 ] [ sp:object
298 - [ sp:varName "preSpudDate"^^xsd:string 434 + [ sp:varName "dateDrillComplete"^^xsd:string
299 ] ; 435 ] ;
300 - sp:predicate ddr:dTimPreSpud ; 436 + sp:predicate ddr:dateDrillComplete ;
301 sp:subject 437 sp:subject
302 [ sp:varName "wellboreInfo"^^xsd:string 438 [ sp:varName "wellboreInfo"^^xsd:string
303 ] 439 ]
...@@ -344,110 +480,29 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -344,110 +480,29 @@ This rule processes data from statusInfo, but is here because it must be execute
344 ] ; 480 ] ;
345 spin:rule 481 spin:rule
346 [ rdf:type sp:Construct ; 482 [ rdf:type sp:Construct ;
347 - rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; 483 + rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
348 - sp:templates ([ sp:object _:b12 ; 484 + sp:templates ([ sp:object _:b21 ;
349 - sp:predicate ep-activity:onRig ; 485 + sp:predicate ep-activity:drillingOperator ;
350 - sp:subject _:b13 486 + sp:subject
351 - ] [ sp:object ep-facility:TemporalPartOfARig ; 487 + [ sp:varName "dailyDrillingActivity"^^xsd:string
352 - sp:predicate rdf:type ; 488 + ]
353 - sp:subject _:b12 489 + ] [ sp:object ep-org:Company ;
354 - ] [ sp:object _:b14 ;
355 - sp:predicate ep-core:temporalPartOf ;
356 - sp:subject _:b12
357 - ] [ sp:object ep-facility:Rig ;
358 sp:predicate rdf:type ; 490 sp:predicate rdf:type ;
359 - sp:subject _:b14 491 + sp:subject _:b21
360 - ] [ sp:object _:b15 ; 492 + ] [ sp:object
361 - sp:predicate ep-core:npdCode ; 493 + [ sp:varName "nameOperator"^^xsd:string
362 - sp:subject _:b14 494 + ] ;
495 + sp:predicate ep-core:name ;
496 + sp:subject _:b21
363 ]) ; 497 ]) ;
364 - sp:where ([ sp:object _:b16 ; 498 + sp:where ([ sp:object
499 + [ sp:varName "nameWellBore"^^xsd:string
500 + ] ;
365 sp:predicate ep-spin-lib:nameWellbore ; 501 sp:predicate ep-spin-lib:nameWellbore ;
366 sp:subject spin:_this 502 sp:subject spin:_this
367 - ] [ sp:object _:b17 ; 503 + ] [ sp:object
368 - sp:predicate ddr:dTimStart ; 504 + [ sp:varName "dTimStart"^^xsd:string
369 - sp:subject spin:_this 505 + ] ;
370 - ] [ sp:object _:b18 ;
371 - sp:predicate ddr:wellboreInfoRef ;
372 - sp:subject spin:_this
373 - ] [ sp:object _:b19 ;
374 - sp:predicate ddr:rigAliasRef ;
375 - sp:subject _:b18
376 - ] [ sp:object _:b15 ;
377 - sp:predicate ddr:name ;
378 - sp:subject _:b19
379 - ] [ rdf:type sp:Union ;
380 - sp:elements (([ sp:object "NPD Code"^^xsd:string ;
381 - sp:predicate ddr:namingSystem ;
382 - sp:subject _:b19
383 - ]) ([ sp:object "NPD code"^^xsd:string ;
384 - sp:predicate ddr:namingSystem ;
385 - sp:subject _:b19
386 - ]))
387 - ] [ rdf:type sp:Bind ;
388 - sp:expression
389 - [ rdf:type ep-spin-lib:normalizeString ;
390 - sp:arg1 _:b16
391 - ] ;
392 - sp:variable _:b20
393 - ] [ rdf:type sp:Bind ;
394 - sp:expression
395 - [ rdf:type ep-spin-lib:normalizeString ;
396 - sp:arg1 _:b15
397 - ] ;
398 - sp:variable _:b21
399 - ] [ rdf:type sp:Bind ;
400 - sp:expression
401 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
402 - sp:arg1 _:b20 ;
403 - sp:arg2 _:b17
404 - ] ;
405 - sp:variable _:b13
406 - ] [ rdf:type sp:Bind ;
407 - sp:expression
408 - [ rdf:type ep-spin-lib:buildRigURI ;
409 - sp:arg1 _:b21
410 - ] ;
411 - sp:variable _:b14
412 - ])
413 - ] ;
414 - spin:rule
415 - [ rdf:type sp:Construct ;
416 - rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
417 - sp:templates ([ sp:object _:b22 ;
418 - sp:predicate ep-activity:drillingContractor ;
419 - sp:subject
420 - [ sp:varName "dailyDrillingActivity"^^xsd:string
421 - ]
422 - ] [ sp:object
423 - [ sp:varName "contractor"^^xsd:string
424 - ] ;
425 - sp:predicate ep-core:temporalPartOf ;
426 - sp:subject _:b22
427 - ] [ sp:object ep-org:Organization ;
428 - sp:predicate rdf:type ;
429 - sp:subject _:b22
430 - ] [ sp:object
431 - [ sp:varName "nameContractor"^^xsd:string
432 - ] ;
433 - sp:predicate ep-core:name ;
434 - sp:subject
435 - [ sp:varName "contractor"^^xsd:string
436 - ]
437 - ] [ sp:object ep-org:Company ;
438 - sp:predicate rdf:type ;
439 - sp:subject
440 - [ sp:varName "contractor"^^xsd:string
441 - ]
442 - ]) ;
443 - sp:where ([ sp:object
444 - [ sp:varName "nameWellBore"^^xsd:string
445 - ] ;
446 - sp:predicate ep-spin-lib:nameWellbore ;
447 - sp:subject spin:_this
448 - ] [ sp:object
449 - [ sp:varName "dTimStart"^^xsd:string
450 - ] ;
451 sp:predicate ddr:dTimStart ; 506 sp:predicate ddr:dTimStart ;
452 sp:subject spin:_this 507 sp:subject spin:_this
453 ] [ sp:object 508 ] [ sp:object
...@@ -456,9 +511,9 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -456,9 +511,9 @@ This rule processes data from statusInfo, but is here because it must be execute
456 sp:predicate ddr:wellboreInfoRef ; 511 sp:predicate ddr:wellboreInfoRef ;
457 sp:subject spin:_this 512 sp:subject spin:_this
458 ] [ sp:object 513 ] [ sp:object
459 - [ sp:varName "nameContractor"^^xsd:string 514 + [ sp:varName "nameOperator"^^xsd:string
460 ] ; 515 ] ;
461 - sp:predicate ddr:drillContractor ; 516 + sp:predicate ddr:operator ;
462 sp:subject 517 sp:subject
463 [ sp:varName "wellboreInfo"^^xsd:string 518 [ sp:varName "wellboreInfo"^^xsd:string
464 ] 519 ]
...@@ -482,98 +537,75 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -482,98 +537,75 @@ This rule processes data from statusInfo, but is here because it must be execute
482 sp:variable 537 sp:variable
483 [ sp:varName "dailyDrillingActivity"^^xsd:string 538 [ sp:varName "dailyDrillingActivity"^^xsd:string
484 ] 539 ]
485 - ] [ rdf:type sp:Bind ;
486 - sp:expression
487 - [ rdf:type ep-spin-lib:normalizeString ;
488 - sp:arg1 [ sp:varName "nameContractor"^^xsd:string
489 - ]
490 - ] ;
491 - sp:variable
492 - [ sp:varName "normalizedContractorName"^^xsd:string
493 - ]
494 - ] [ rdf:type sp:Bind ;
495 - sp:expression
496 - [ rdf:type rhspin:companyById ;
497 - arg:id [ sp:varName "normalizedContractorName"^^xsd:string
498 - ]
499 - ] ;
500 - sp:variable
501 - [ sp:varName "contractor"^^xsd:string
502 - ]
503 ]) 540 ])
504 ] ; 541 ] ;
505 spin:rule 542 spin:rule
506 [ rdf:type sp:Construct ; 543 [ rdf:type sp:Construct ;
507 - rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ; 544 + rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
508 - sp:templates ([ sp:object 545 + sp:templates ([ sp:object _:b22 ;
509 - [ sp:varName "dateDrillComplete"^^xsd:string 546 + sp:predicate ep-activity:onRig ;
510 - ] ; 547 + sp:subject _:b23
511 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ; 548 + ] [ sp:object ep-facility:TemporalPartOfARig ;
512 - sp:subject 549 + sp:predicate rdf:type ;
513 - [ sp:varName "wellBore"^^xsd:string 550 + sp:subject _:b22
514 - ] 551 + ] [ sp:object _:b24 ;
552 + sp:predicate ep-core:temporalPartOf ;
553 + sp:subject _:b22
554 + ] [ sp:object ep-facility:Rig ;
555 + sp:predicate rdf:type ;
556 + sp:subject _:b24
557 + ] [ sp:object _:b25 ;
558 + sp:predicate ep-core:npdCode ;
559 + sp:subject _:b24
515 ]) ; 560 ]) ;
516 - sp:where ([ sp:object 561 + sp:where ([ sp:object _:b26 ;
517 - [ sp:varName "nameWellBore"^^xsd:string
518 - ] ;
519 sp:predicate ep-spin-lib:nameWellbore ; 562 sp:predicate ep-spin-lib:nameWellbore ;
520 sp:subject spin:_this 563 sp:subject spin:_this
521 - ] [ sp:object 564 + ] [ sp:object _:b27 ;
522 - [ sp:varName "dTimStart"^^xsd:string
523 - ] ;
524 sp:predicate ddr:dTimStart ; 565 sp:predicate ddr:dTimStart ;
525 sp:subject spin:_this 566 sp:subject spin:_this
526 - ] [ sp:object 567 + ] [ sp:object _:b28 ;
527 - [ sp:varName "wellboreInfo"^^xsd:string
528 - ] ;
529 sp:predicate ddr:wellboreInfoRef ; 568 sp:predicate ddr:wellboreInfoRef ;
530 sp:subject spin:_this 569 sp:subject spin:_this
531 - ] [ sp:object 570 + ] [ sp:object _:b29 ;
532 - [ sp:varName "dateDrillComplete"^^xsd:string 571 + sp:predicate ddr:rigAliasRef ;
533 - ] ; 572 + sp:subject _:b28
534 - sp:predicate ddr:dateDrillComplete ; 573 + ] [ sp:object _:b25 ;
535 - sp:subject 574 + sp:predicate ddr:name ;
536 - [ sp:varName "wellboreInfo"^^xsd:string 575 + sp:subject _:b29
537 - ] 576 + ] [ rdf:type sp:Union ;
538 - ] [ sp:object 577 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
539 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 578 + sp:predicate ddr:namingSystem ;
540 - ] ; 579 + sp:subject _:b29
541 - sp:predicate ep-activity:onWellBore ; 580 + ]) ([ sp:object "NPD code"^^xsd:string ;
542 - sp:subject 581 + sp:predicate ddr:namingSystem ;
543 - [ sp:varName "dailyDrillingActivity"^^xsd:string 582 + sp:subject _:b29
544 - ] 583 + ]))
545 - ] [ sp:object 584 + ] [ rdf:type sp:Bind ;
546 - [ sp:varName "wellBore"^^xsd:string 585 + sp:expression
586 + [ rdf:type ep-spin-lib:normalizeString ;
587 + sp:arg1 _:b26
547 ] ; 588 ] ;
548 - sp:predicate ep-core:temporalPartOf ; 589 + sp:variable _:b30
549 - sp:subject
550 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
551 - ]
552 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
553 - sp:predicate rdf:type ;
554 - sp:subject
555 - [ sp:varName "wellBore"^^xsd:string
556 - ]
557 ] [ rdf:type sp:Bind ; 590 ] [ rdf:type sp:Bind ;
558 sp:expression 591 sp:expression
559 [ rdf:type ep-spin-lib:normalizeString ; 592 [ rdf:type ep-spin-lib:normalizeString ;
560 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 593 + sp:arg1 _:b25
561 - ]
562 ] ; 594 ] ;
563 - sp:variable 595 + sp:variable _:b31
564 - [ sp:varName "normalizedWellBoreName"^^xsd:string
565 - ]
566 ] [ rdf:type sp:Bind ; 596 ] [ rdf:type sp:Bind ;
567 sp:expression 597 sp:expression
568 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 598 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
569 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 599 + sp:arg1 _:b30 ;
600 + sp:arg2 _:b27
570 ] ; 601 ] ;
571 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 602 + sp:variable _:b23
572 - ] 603 + ] [ rdf:type sp:Bind ;
604 + sp:expression
605 + [ rdf:type ep-spin-lib:buildRigURI ;
606 + sp:arg1 _:b31
573 ] ; 607 ] ;
574 - sp:variable 608 + sp:variable _:b24
575 - [ sp:varName "dailyDrillingActivity"^^xsd:string
576 - ]
577 ]) 609 ])
578 ] ; 610 ] ;
579 spin:rule 611 spin:rule
...@@ -652,120 +684,29 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -652,120 +684,29 @@ This rule processes data from statusInfo, but is here because it must be execute
652 ] ; 684 ] ;
653 spin:rule 685 spin:rule
654 [ rdf:type sp:Construct ; 686 [ rdf:type sp:Construct ;
655 - rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
656 - sp:templates ([ sp:object _:b23 ;
657 - sp:predicate ep-activity:drillingOperator ;
658 - sp:subject
659 - [ sp:varName "dailyDrillingActivity"^^xsd:string
660 - ]
661 - ] [ sp:object
662 - [ sp:varName "operator"^^xsd:string
663 - ] ;
664 - sp:predicate ep-core:temporalPartOf ;
665 - sp:subject _:b23
666 - ] [ sp:object ep-org:Organization ;
667 - sp:predicate rdf:type ;
668 - sp:subject _:b23
669 - ] [ sp:object
670 - [ sp:varName "nameOperator"^^xsd:string
671 - ] ;
672 - sp:predicate ep-core:name ;
673 - sp:subject
674 - [ sp:varName "operator"^^xsd:string
675 - ]
676 - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
677 - sp:predicate rdf:type ;
678 - sp:subject
679 - [ sp:varName "operator"^^xsd:string
680 - ]
681 - ]) ;
682 - sp:where ([ sp:object
683 - [ sp:varName "nameWellBore"^^xsd:string
684 - ] ;
685 - sp:predicate ep-spin-lib:nameWellbore ;
686 - sp:subject spin:_this
687 - ] [ sp:object
688 - [ sp:varName "dTimStart"^^xsd:string
689 - ] ;
690 - sp:predicate ddr:dTimStart ;
691 - sp:subject spin:_this
692 - ] [ sp:object
693 - [ sp:varName "wellboreInfo"^^xsd:string
694 - ] ;
695 - sp:predicate ddr:wellboreInfoRef ;
696 - sp:subject spin:_this
697 - ] [ sp:object
698 - [ sp:varName "nameOperator"^^xsd:string
699 - ] ;
700 - sp:predicate ddr:operator ;
701 - sp:subject
702 - [ sp:varName "wellboreInfo"^^xsd:string
703 - ]
704 - ] [ rdf:type sp:Bind ;
705 - sp:expression
706 - [ rdf:type ep-spin-lib:normalizeString ;
707 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
708 - ]
709 - ] ;
710 - sp:variable
711 - [ sp:varName "normalizedWellBoreName"^^xsd:string
712 - ]
713 - ] [ rdf:type sp:Bind ;
714 - sp:expression
715 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
716 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
717 - ] ;
718 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
719 - ]
720 - ] ;
721 - sp:variable
722 - [ sp:varName "dailyDrillingActivity"^^xsd:string
723 - ]
724 - ] [ rdf:type sp:Bind ;
725 - sp:expression
726 - [ rdf:type ep-spin-lib:normalizeString ;
727 - sp:arg1 [ sp:varName "nameOperator"^^xsd:string
728 - ]
729 - ] ;
730 - sp:variable
731 - [ sp:varName "normalizedOperatorName"^^xsd:string
732 - ]
733 - ] [ rdf:type sp:Bind ;
734 - sp:expression
735 - [ rdf:type rhspin:companyById ;
736 - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string
737 - ]
738 - ] ;
739 - sp:variable
740 - [ sp:varName "operator"^^xsd:string
741 - ]
742 - ])
743 - ] ;
744 - spin:rule
745 - [ rdf:type sp:Construct ;
746 rdfs:comment """STEP 169 Transfer elevKelly 687 rdfs:comment """STEP 169 Transfer elevKelly
747 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 688 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
748 - sp:templates ([ sp:object _:b24 ; 689 + sp:templates ([ sp:object _:b32 ;
749 sp:predicate ep-core:hasPart ; 690 sp:predicate ep-core:hasPart ;
750 sp:subject 691 sp:subject
751 [ sp:varName "temporalPartOfARig"^^xsd:string 692 [ sp:varName "temporalPartOfARig"^^xsd:string
752 ] 693 ]
753 ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ; 694 ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
754 sp:predicate rdf:type ; 695 sp:predicate rdf:type ;
755 - sp:subject _:b24 696 + sp:subject _:b32
756 - ] [ sp:object _:b25 ; 697 + ] [ sp:object _:b33 ;
757 sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; 698 sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
758 - sp:subject _:b24 699 + sp:subject _:b32
759 ] [ sp:object ep-core:Length ; 700 ] [ sp:object ep-core:Length ;
760 sp:predicate rdf:type ; 701 sp:predicate rdf:type ;
761 - sp:subject _:b25 702 + sp:subject _:b33
762 ] [ sp:object 703 ] [ sp:object
763 [ sp:varName "real"^^xsd:string 704 [ sp:varName "real"^^xsd:string
764 ] ; 705 ] ;
765 sp:predicate 706 sp:predicate
766 [ sp:varName "lengthScale"^^xsd:string 707 [ sp:varName "lengthScale"^^xsd:string
767 ] ; 708 ] ;
768 - sp:subject _:b25 709 + sp:subject _:b33
769 ]) ; 710 ]) ;
770 sp:where ([ sp:object 711 sp:where ([ sp:object
771 [ sp:varName "nameWellBore"^^xsd:string 712 [ sp:varName "nameWellBore"^^xsd:string
...@@ -843,140 +784,157 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -843,140 +784,157 @@ This rule processes data from statusInfo, but is here because it must be execute
843 ] ; 784 ] ;
844 spin:rule 785 spin:rule
845 [ rdf:type sp:Construct ; 786 [ rdf:type sp:Construct ;
846 - rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ; 787 + rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
847 - sp:templates ([ sp:object _:b26 ; 788 + sp:templates ([ sp:object
848 - sp:predicate ep-activity:onRig ; 789 + [ sp:varName "preSpudDate"^^xsd:string
849 - sp:subject _:b27 790 + ] ;
850 - ] [ sp:object ep-facility:TemporalPartOfARig ; 791 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
851 - sp:predicate rdf:type ; 792 + sp:subject
852 - sp:subject _:b26 793 + [ sp:varName "wellBore"^^xsd:string
853 - ] [ sp:object _:b28 ; 794 + ]
854 - sp:predicate ep-core:temporalPartOf ;
855 - sp:subject _:b26
856 - ] [ sp:object ep-facility:Rig ;
857 - sp:predicate rdf:type ;
858 - sp:subject _:b28
859 ]) ; 795 ]) ;
860 - sp:where ([ sp:object _:b29 ; 796 + sp:where ([ sp:object
797 + [ sp:varName "nameWellBore"^^xsd:string
798 + ] ;
861 sp:predicate ep-spin-lib:nameWellbore ; 799 sp:predicate ep-spin-lib:nameWellbore ;
862 sp:subject spin:_this 800 sp:subject spin:_this
863 - ] [ sp:object _:b30 ; 801 + ] [ sp:object
802 + [ sp:varName "dTimStart"^^xsd:string
803 + ] ;
864 sp:predicate ddr:dTimStart ; 804 sp:predicate ddr:dTimStart ;
865 sp:subject spin:_this 805 sp:subject spin:_this
866 - ] [ rdf:type sp:NotExists ; 806 + ] [ sp:object
867 - sp:elements ([ sp:object _:b31 ; 807 + [ sp:varName "wellboreInfo"^^xsd:string
808 + ] ;
868 sp:predicate ddr:wellboreInfoRef ; 809 sp:predicate ddr:wellboreInfoRef ;
869 sp:subject spin:_this 810 sp:subject spin:_this
870 - ] [ sp:object _:b32 ;
871 - sp:predicate ddr:rigAliasRef ;
872 - sp:subject _:b31
873 ] [ sp:object 811 ] [ sp:object
874 - [ sp:varName "code"^^xsd:string 812 + [ sp:varName "preSpudDate"^^xsd:string
875 ] ; 813 ] ;
876 - sp:predicate ddr:name ; 814 + sp:predicate ddr:dTimPreSpud ;
877 - sp:subject _:b32 815 + sp:subject
878 - ] [ rdf:type sp:Union ; 816 + [ sp:varName "wellboreInfo"^^xsd:string
879 - sp:elements (([ sp:object "NPD Code"^^xsd:string ; 817 + ]
880 - sp:predicate ddr:namingSystem ; 818 + ] [ sp:object
881 - sp:subject _:b32 819 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
882 - ]) ([ sp:object "NPD code"^^xsd:string ; 820 + ] ;
883 - sp:predicate ddr:namingSystem ; 821 + sp:predicate ep-activity:onWellBore ;
884 - sp:subject _:b32 822 + sp:subject
885 - ])) 823 + [ sp:varName "dailyDrillingActivity"^^xsd:string
886 - ]) 824 + ]
825 + ] [ sp:object
826 + [ sp:varName "wellBore"^^xsd:string
827 + ] ;
828 + sp:predicate ep-core:temporalPartOf ;
829 + sp:subject
830 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
831 + ]
832 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
833 + sp:predicate rdf:type ;
834 + sp:subject
835 + [ sp:varName "wellBore"^^xsd:string
836 + ]
887 ] [ rdf:type sp:Bind ; 837 ] [ rdf:type sp:Bind ;
888 sp:expression 838 sp:expression
889 [ rdf:type ep-spin-lib:normalizeString ; 839 [ rdf:type ep-spin-lib:normalizeString ;
890 - sp:arg1 _:b29 840 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
841 + ]
891 ] ; 842 ] ;
892 - sp:variable _:b33 843 + sp:variable
844 + [ sp:varName "normalizedWellBoreName"^^xsd:string
845 + ]
893 ] [ rdf:type sp:Bind ; 846 ] [ rdf:type sp:Bind ;
894 sp:expression 847 sp:expression
895 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 848 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
896 - sp:arg1 _:b33 ; 849 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
897 - sp:arg2 _:b30
898 ] ; 850 ] ;
899 - sp:variable _:b27 851 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
852 + ]
853 + ] ;
854 + sp:variable
855 + [ sp:varName "dailyDrillingActivity"^^xsd:string
856 + ]
900 ]) 857 ])
901 ] . 858 ] .
902 859
903 -[] rdf:type smf:regex . 860 +[] rdf:type sp:Modify .
904 -
905 -[] rdf:type smf:trim .
906 861
907 [] rdf:type fn:starts-with . 862 [] rdf:type fn:starts-with .
908 863
909 -[] rdf:type sp:Modify . 864 +[] rdf:type smf:trim .
910 865
911 -_:b5 sp:varName "nameWellBore"^^xsd:string . 866 +[] rdf:type smf:regex .
912 867
913 -_:b6 sp:varName "dTimStart"^^xsd:string . 868 +_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
914 869
915 -_:b7 sp:varName "wellboreInfo"^^xsd:string . 870 +_:b7 sp:varName "rigAlias"^^xsd:string .
916 871
917 -_:b8 sp:varName "rigAlias"^^xsd:string . 872 +_:b6 sp:varName "wellboreInfo"^^xsd:string .
918 873
919 -_:b3 sp:varName "name"^^xsd:string . 874 +_:b5 sp:varName "dTimStart"^^xsd:string .
920 875
921 -_:b10 876 +_:b4 sp:varName "nameWellBore"^^xsd:string .
922 - sp:varName "dailyDrillingActivity"^^xsd:string .
923 877
924 -_:b9 sp:varName "temporalPartOfARig"^^xsd:string . 878 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
925 879
926 -_:b4 sp:varName "rig"^^xsd:string . 880 +_:b31
881 + sp:varName "normalizedCode"^^xsd:string .
927 882
928 -_:b11 883 +_:b30
929 sp:varName "normalizedWellBoreName"^^xsd:string . 884 sp:varName "normalizedWellBoreName"^^xsd:string .
930 885
931 _:b29 886 _:b29
932 - sp:varName "nameWellBore"^^xsd:string . 887 + sp:varName "rigAlias"^^xsd:string .
933 888
934 -_:b30 889 +_:b28
890 + sp:varName "wellboreInfo"^^xsd:string .
891 +
892 +_:b27
935 sp:varName "dTimStart"^^xsd:string . 893 sp:varName "dTimStart"^^xsd:string .
936 894
937 -_:b31 895 +_:b26
938 - sp:varName "wellboreInfo"^^xsd:string . 896 + sp:varName "nameWellBore"^^xsd:string .
939 897
940 -_:b32 898 +_:b25
941 - sp:varName "rigAlias"^^xsd:string . 899 + sp:varName "code"^^xsd:string .
942 900
943 -_:b33 901 +_:b24
944 - sp:varName "normalizedWellBoreName"^^xsd:string . 902 + sp:varName "rig"^^xsd:string .
945 903
946 -_:b27 904 +_:b23
947 sp:varName "dailyDrillingActivity"^^xsd:string . 905 sp:varName "dailyDrillingActivity"^^xsd:string .
948 906
949 -_:b16 907 +_:b20
950 - sp:varName "nameWellBore"^^xsd:string . 908 + sp:varName "normalizedWellBoreName"^^xsd:string .
951 909
952 -_:b17 910 +_:b19
953 - sp:varName "dTimStart"^^xsd:string . 911 + sp:varName "dailyDrillingActivity"^^xsd:string .
954 912
955 _:b18 913 _:b18
956 - sp:varName "wellboreInfo"^^xsd:string . 914 + sp:varName "temporalPartOfARig"^^xsd:string .
957 915
958 -_:b19 916 +_:b17
959 sp:varName "rigAlias"^^xsd:string . 917 sp:varName "rigAlias"^^xsd:string .
960 918
961 -_:b15 919 +_:b16
962 - sp:varName "code"^^xsd:string . 920 + sp:varName "wellboreInfo"^^xsd:string .
963 921
964 -_:b20 922 +_:b15
965 - sp:varName "normalizedWellBoreName"^^xsd:string . 923 + sp:varName "dTimStart"^^xsd:string .
966 924
967 -_:b21 925 +_:b14
968 - sp:varName "normalizedCode"^^xsd:string . 926 + sp:varName "nameWellBore"^^xsd:string .
969 927
970 _:b13 928 _:b13
971 - sp:varName "dailyDrillingActivity"^^xsd:string .
972 -
973 -_:b14
974 sp:varName "rig"^^xsd:string . 929 sp:varName "rig"^^xsd:string .
975 930
931 +_:b12
932 + sp:varName "name"^^xsd:string .
933 +
934 +([]) .
935 +
976 ([]) . 936 ([]) .
977 937
978 ([] [] [ rdf:type sp:Filter 938 ([] [] [ rdf:type sp:Filter
979 ] [ rdf:type sp:Bind 939 ] [ rdf:type sp:Bind
980 ]) . 940 ]) .
981 -
982 -([]) .
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
26 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}" /> 26 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}" />
27 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}" /> 27 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}" />
28 <rhswp:NameValuePair arg:name="Status:" arg:value="{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}" /> 28 <rhswp:NameValuePair arg:name="Status:" arg:value="{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}" />
29 - <rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingOperator ?opCo . ?opCo ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName }}" /> 29 + <rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?operatorName WHERE {?activity ep-activity:drillingOperator ?operator . ?operator ep-core:name ?operatorName }}" />
30 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" /> 30 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" />
31 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }" /> 31 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }" />
32 <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}" /> 32 <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}" />
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
48 48
49 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}" /> 49 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}" />
50 <rhswp:NameValuePair arg:name="Created date:" arg:value="{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }" /> 50 <rhswp:NameValuePair arg:name="Created date:" arg:value="{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }" />
51 - <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName}}" /> 51 + <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?contractorName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:name ?contractorName}}" />
52 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" /> 52 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" />
53 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }" /> 53 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }" />
54 <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}" /> 54 <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}" />
......