David Price

Fixed NPD graph access in transforms - GRAPH keyword

...@@ -31,14 +31,26 @@ ...@@ -31,14 +31,26 @@
31 ddr:Obj_drillReport 31 ddr:Obj_drillReport
32 spin:rule 32 spin:rule
33 [ rdf:type sp:Construct ; 33 [ rdf:type sp:Construct ;
34 - rdfs:comment """STEP 105 34 + rdfs:comment "STEP 106 Create Well Part"^^xsd:string ;
35 -Classify a DailyDrillingReport"""^^xsd:string ; 35 + sp:templates ([ sp:object _:b1 ;
36 - sp:templates ([ sp:object 36 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
37 - [ sp:varName "dailyDrillingReportType"^^xsd:string 37 + sp:subject
38 + [ sp:varName "dailyDrillingActivity"^^xsd:string
39 + ]
40 + ] [ sp:object
41 + [ sp:varName "well"^^xsd:string
38 ] ; 42 ] ;
43 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
44 + sp:subject _:b1
45 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
39 sp:predicate rdf:type ; 46 sp:predicate rdf:type ;
47 + sp:subject _:b1
48 + ] [ sp:object
49 + [ sp:varName "wellBore"^^xsd:string
50 + ] ;
51 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
40 sp:subject 52 sp:subject
41 - [ sp:varName "dailyDrillingReport"^^xsd:string 53 + [ sp:varName "well"^^xsd:string
42 ] 54 ]
43 ]) ; 55 ]) ;
44 sp:where ([ sp:object 56 sp:where ([ sp:object
...@@ -47,24 +59,44 @@ Classify a DailyDrillingReport"""^^xsd:string ; ...@@ -47,24 +59,44 @@ Classify a DailyDrillingReport"""^^xsd:string ;
47 sp:predicate ep-spin-lib:nameWellbore ; 59 sp:predicate ep-spin-lib:nameWellbore ;
48 sp:subject spin:_this 60 sp:subject spin:_this
49 ] [ sp:object 61 ] [ sp:object
50 - [ sp:varName "createDate"^^xsd:string 62 + [ sp:varName "nameWell"^^xsd:string
51 ] ; 63 ] ;
52 - sp:predicate ddr:createDate ; 64 + sp:predicate ep-spin-lib:nameWell ;
53 sp:subject spin:_this 65 sp:subject spin:_this
54 ] [ sp:object 66 ] [ sp:object
55 - [ sp:varName "versionKind"^^xsd:string 67 + [ sp:varName "dTimStart"^^xsd:string
56 ] ; 68 ] ;
57 - sp:predicate ddr:versionKindRef ; 69 + sp:predicate ddr:dTimStart ;
58 sp:subject spin:_this 70 sp:subject spin:_this
59 - ] [ rdf:type sp:Bind ; 71 + ] [ sp:object
60 - sp:expression 72 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
61 - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; 73 + ] ;
62 - sp:arg1 [ sp:varName "versionKind"^^xsd:string 74 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
75 + sp:subject
76 + [ sp:varName "dailyDrillingActivity"^^xsd:string
63 ] 77 ]
78 + ] [ sp:object
79 + [ sp:varName "wellBore"^^xsd:string
64 ] ; 80 ] ;
65 - sp:variable 81 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
66 - [ sp:varName "dailyDrillingReportType"^^xsd:string 82 + sp:subject
83 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
84 + ]
85 + ] [ rdf:type sp:NamedGraph ;
86 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
87 + sp:predicate rdf:type ;
88 + sp:subject
89 + [ sp:varName "wellBore"^^xsd:string
67 ] 90 ]
91 + ] [ sp:object
92 + [ sp:varName "well"^^xsd:string
93 + ] ;
94 + sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
95 + sp:subject
96 + [ sp:varName "wellBore"^^xsd:string
97 + ]
98 + ]) ;
99 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
68 ] [ rdf:type sp:Bind ; 100 ] [ rdf:type sp:Bind ;
69 sp:expression 101 sp:expression
70 [ rdf:type ep-spin-lib:normalizeString ; 102 [ rdf:type ep-spin-lib:normalizeString ;
...@@ -76,14 +108,14 @@ Classify a DailyDrillingReport"""^^xsd:string ; ...@@ -76,14 +108,14 @@ Classify a DailyDrillingReport"""^^xsd:string ;
76 ] 108 ]
77 ] [ rdf:type sp:Bind ; 109 ] [ rdf:type sp:Bind ;
78 sp:expression 110 sp:expression
79 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 111 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
80 sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 112 sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
81 ] ; 113 ] ;
82 - sp:arg2 [ sp:varName "createDate"^^xsd:string 114 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
83 ] 115 ]
84 ] ; 116 ] ;
85 sp:variable 117 sp:variable
86 - [ sp:varName "dailyDrillingReport"^^xsd:string 118 + [ sp:varName "dailyDrillingActivity"^^xsd:string
87 ] 119 ]
88 ]) 120 ])
89 ] ; 121 ] ;
...@@ -150,24 +182,24 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ...@@ -150,24 +182,24 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
150 sp:subject 182 sp:subject
151 [ sp:varName "dailyDrillingActivity"^^xsd:string 183 [ sp:varName "dailyDrillingActivity"^^xsd:string
152 ] 184 ]
153 - ] [ sp:object _:b1 ; 185 + ] [ sp:object _:b2 ;
154 sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; 186 sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
155 sp:subject 187 sp:subject
156 [ sp:varName "dailyDrillingActivity"^^xsd:string 188 [ sp:varName "dailyDrillingActivity"^^xsd:string
157 ] 189 ]
158 ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; 190 ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
159 sp:predicate rdf:type ; 191 sp:predicate rdf:type ;
160 - sp:subject _:b1 192 + sp:subject _:b2
161 ] [ sp:object 193 ] [ sp:object
162 [ sp:varName "extendedReportContent"^^xsd:string 194 [ sp:varName "extendedReportContent"^^xsd:string
163 ] ; 195 ] ;
164 sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; 196 sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
165 - sp:subject _:b1 197 + sp:subject _:b2
166 ] [ sp:object 198 ] [ sp:object
167 [ sp:varName "dTimExtendedReport"^^xsd:string 199 [ sp:varName "dTimExtendedReport"^^xsd:string
168 ] ; 200 ] ;
169 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 201 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
170 - sp:subject _:b1 202 + sp:subject _:b2
171 ]) ; 203 ]) ;
172 sp:where ([ sp:object 204 sp:where ([ sp:object
173 [ sp:varName "nameWellBore"^^xsd:string 205 [ sp:varName "nameWellBore"^^xsd:string
...@@ -272,26 +304,14 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ...@@ -272,26 +304,14 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
272 ] ; 304 ] ;
273 spin:rule 305 spin:rule
274 [ rdf:type sp:Construct ; 306 [ rdf:type sp:Construct ;
275 - rdfs:comment "STEP 106 Create Well Part"^^xsd:string ; 307 + rdfs:comment """STEP 105
276 - sp:templates ([ sp:object _:b2 ; 308 +Classify a DailyDrillingReport"""^^xsd:string ;
277 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; 309 + sp:templates ([ sp:object
278 - sp:subject 310 + [ sp:varName "dailyDrillingReportType"^^xsd:string
279 - [ sp:varName "dailyDrillingActivity"^^xsd:string
280 - ]
281 - ] [ sp:object
282 - [ sp:varName "well"^^xsd:string
283 ] ; 311 ] ;
284 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
285 - sp:subject _:b2
286 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
287 sp:predicate rdf:type ; 312 sp:predicate rdf:type ;
288 - sp:subject _:b2
289 - ] [ sp:object
290 - [ sp:varName "wellBore"^^xsd:string
291 - ] ;
292 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
293 sp:subject 313 sp:subject
294 - [ sp:varName "well"^^xsd:string 314 + [ sp:varName "dailyDrillingReport"^^xsd:string
295 ] 315 ]
296 ]) ; 316 ]) ;
297 sp:where ([ sp:object 317 sp:where ([ sp:object
...@@ -300,40 +320,23 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ...@@ -300,40 +320,23 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
300 sp:predicate ep-spin-lib:nameWellbore ; 320 sp:predicate ep-spin-lib:nameWellbore ;
301 sp:subject spin:_this 321 sp:subject spin:_this
302 ] [ sp:object 322 ] [ sp:object
303 - [ sp:varName "nameWell"^^xsd:string 323 + [ sp:varName "createDate"^^xsd:string
304 ] ; 324 ] ;
305 - sp:predicate ep-spin-lib:nameWell ; 325 + sp:predicate ddr:createDate ;
306 sp:subject spin:_this 326 sp:subject spin:_this
307 ] [ sp:object 327 ] [ sp:object
308 - [ sp:varName "dTimStart"^^xsd:string 328 + [ sp:varName "versionKind"^^xsd:string
309 ] ; 329 ] ;
310 - sp:predicate ddr:dTimStart ; 330 + sp:predicate ddr:versionKindRef ;
311 sp:subject spin:_this 331 sp:subject spin:_this
312 - ] [ sp:object 332 + ] [ rdf:type sp:Bind ;
313 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 333 + sp:expression
314 - ] ; 334 + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
315 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 335 + sp:arg1 [ sp:varName "versionKind"^^xsd:string
316 - sp:subject
317 - [ sp:varName "dailyDrillingActivity"^^xsd:string
318 - ]
319 - ] [ sp:object
320 - [ sp:varName "wellBore"^^xsd:string
321 - ] ;
322 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
323 - sp:subject
324 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
325 - ]
326 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
327 - sp:predicate rdf:type ;
328 - sp:subject
329 - [ sp:varName "wellBore"^^xsd:string
330 ] 336 ]
331 - ] [ sp:object
332 - [ sp:varName "well"^^xsd:string
333 ] ; 337 ] ;
334 - sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ; 338 + sp:variable
335 - sp:subject 339 + [ sp:varName "dailyDrillingReportType"^^xsd:string
336 - [ sp:varName "wellBore"^^xsd:string
337 ] 340 ]
338 ] [ rdf:type sp:Bind ; 341 ] [ rdf:type sp:Bind ;
339 sp:expression 342 sp:expression
...@@ -346,14 +349,14 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ...@@ -346,14 +349,14 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
346 ] 349 ]
347 ] [ rdf:type sp:Bind ; 350 ] [ rdf:type sp:Bind ;
348 sp:expression 351 sp:expression
349 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 352 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
350 sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 353 sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
351 ] ; 354 ] ;
352 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 355 + sp:arg2 [ sp:varName "createDate"^^xsd:string
353 ] 356 ]
354 ] ; 357 ] ;
355 sp:variable 358 sp:variable
356 - [ sp:varName "dailyDrillingActivity"^^xsd:string 359 + [ sp:varName "dailyDrillingReport"^^xsd:string
357 ] 360 ]
358 ]) 361 ])
359 ] . 362 ] .
......
1 -# Saved by TopBraid on Fri Oct 28 14:50:19 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo 1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
3 -# imports: http://www.witsml.org/schemas/1series
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
6 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
7 6
8 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
9 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 8 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
19 18
20 <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo> 19 <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo>
21 rdf:type owl:Ontology ; 20 rdf:type owl:Ontology ;
22 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; 21 + 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> ;
23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 22 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
24 23
25 <http://www.witsml.org/schemas/1series#Obj_drillReport> 24 <http://www.witsml.org/schemas/1series#Obj_drillReport>
...@@ -217,77 +216,77 @@ ...@@ -217,77 +216,77 @@
217 ]) 216 ])
218 ] . 217 ] .
219 218
220 -_:b20 219 +_:b32
221 - sp:varName "nameWellBore"^^xsd:string . 220 + sp:varName "localname"^^xsd:string .
222 -
223 -_:b21
224 - sp:varName "dTimStart"^^xsd:string .
225 -
226 -_:b22
227 - sp:varName "lithShowInfo"^^xsd:string .
228 221
229 -_:b6 sp:varName "dTimEnd"^^xsd:string . 222 +_:b31
223 + sp:varName "normalizedWellBoreName"^^xsd:string .
230 224
231 -_:b23 225 +_:b30
232 - sp:varName "mdTop"^^xsd:string . 226 + sp:varName "uomTvdBottom"^^xsd:string .
233 227
234 -_:b24 228 +_:b29
235 - sp:varName "uomMdTop"^^xsd:string . 229 + sp:varName "tvdBottom"^^xsd:string .
236 230
237 -_:b7 sp:varName "realMdTop"^^xsd:string . 231 +_:b28
232 + sp:varName "uomTvdTop"^^xsd:string .
238 233
239 -_:b25 234 +_:b27
240 - sp:varName "mdBottom"^^xsd:string . 235 + sp:varName "tvdTop"^^xsd:string .
241 236
242 _:b26 237 _:b26
243 sp:varName "uomMdBottom"^^xsd:string . 238 sp:varName "uomMdBottom"^^xsd:string .
244 239
245 -_:b10 240 +_:b25
246 - sp:varName "realMdBottom"^^xsd:string . 241 + sp:varName "mdBottom"^^xsd:string .
247 -
248 -_:b27
249 - sp:varName "tvdTop"^^xsd:string .
250 -
251 -_:b28
252 - sp:varName "uomTvdTop"^^xsd:string .
253 242
254 -_:b13 243 +_:b24
255 - sp:varName "realTvdTop"^^xsd:string . 244 + sp:varName "uomMdTop"^^xsd:string .
256 245
257 -_:b29 246 +_:b23
258 - sp:varName "tvdBottom"^^xsd:string . 247 + sp:varName "mdTop"^^xsd:string .
259 248
260 -_:b30 249 +_:b22
261 - sp:varName "uomTvdBottom"^^xsd:string . 250 + sp:varName "lithShowInfo"^^xsd:string .
262 251
263 -_:b16 252 +_:b21
264 - sp:varName "realTvdBottom"^^xsd:string . 253 + sp:varName "dTimStart"^^xsd:string .
265 254
266 -_:b18 255 +_:b20
267 - sp:varName "show"^^xsd:string . 256 + sp:varName "nameWellBore"^^xsd:string .
268 257
269 _:b19 258 _:b19
270 sp:varName "lithology"^^xsd:string . 259 sp:varName "lithology"^^xsd:string .
271 260
272 -_:b31 261 +_:b18
273 - sp:varName "normalizedWellBoreName"^^xsd:string . 262 + sp:varName "show"^^xsd:string .
274 -
275 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
276 -
277 -_:b32
278 - sp:varName "localname"^^xsd:string .
279 263
280 -_:b1 sp:varName "lithShowObservation"^^xsd:string . 264 +_:b17
265 + sp:varName "lengthScaleTvdBottom"^^xsd:string .
281 266
282 -_:b8 sp:varName "lengthScaleMdTop"^^xsd:string . 267 +_:b16
268 + sp:varName "realTvdBottom"^^xsd:string .
283 269
284 _:b14 270 _:b14
285 sp:varName "lengthScaleTvdTop"^^xsd:string . 271 sp:varName "lengthScaleTvdTop"^^xsd:string .
286 272
273 +_:b13
274 + sp:varName "realTvdTop"^^xsd:string .
275 +
287 _:b11 276 _:b11
288 sp:varName "lengthScaleMdBottom"^^xsd:string . 277 sp:varName "lengthScaleMdBottom"^^xsd:string .
289 278
290 -_:b17 279 +_:b10
291 - sp:varName "lengthScaleTvdBottom"^^xsd:string . 280 + sp:varName "realMdBottom"^^xsd:string .
281 +
282 +_:b8 sp:varName "lengthScaleMdTop"^^xsd:string .
283 +
284 +_:b7 sp:varName "realMdTop"^^xsd:string .
285 +
286 +_:b6 sp:varName "dTimEnd"^^xsd:string .
292 287
293 _:b5 sp:varName "wellBore"^^xsd:string . 288 _:b5 sp:varName "wellBore"^^xsd:string .
289 +
290 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
291 +
292 +_:b1 sp:varName "lithShowObservation"^^xsd:string .
......
1 -# Saved by TopBraid on Fri Oct 28 15:51:07 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure 1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
3 -# imports: http://www.witsml.org/schemas/1series
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
6 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
7 6
8 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
9 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 8 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
19 18
20 <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure> 19 <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure>
21 rdf:type owl:Ontology ; 20 rdf:type owl:Ontology ;
22 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; 21 + 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> ;
23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 22 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
24 23
25 <http://www.witsml.org/schemas/1series#Obj_drillReport> 24 <http://www.witsml.org/schemas/1series#Obj_drillReport>
...@@ -187,66 +186,66 @@ ...@@ -187,66 +186,66 @@
187 ]) 186 ])
188 ] . 187 ] .
189 188
190 -_:b17 189 +_:b28
191 - sp:varName "nameWellBore"^^xsd:string . 190 + sp:varName "localname"^^xsd:string .
192 -
193 -_:b18
194 - sp:varName "dTimStart"^^xsd:string .
195 -
196 -_:b19
197 - sp:varName "porePressure"^^xsd:string .
198 -
199 -_:b15
200 - sp:varName "timeOfDetermination"^^xsd:string .
201 191
202 -_:b20 192 +_:b27
203 - sp:varName "md"^^xsd:string . 193 + sp:varName "normalizedWellBoreName"^^xsd:string .
204 194
205 -_:b21 195 +_:b26
206 - sp:varName "uomMd"^^xsd:string . 196 + sp:varName "uomTvd"^^xsd:string .
207 197
208 -_:b7 sp:varName "realMd"^^xsd:string . 198 +_:b25
199 + sp:varName "tvd"^^xsd:string .
209 200
210 -_:b22 201 +_:b24
211 - sp:varName "enumReadingKind"^^xsd:string . 202 + sp:varName "uomWt"^^xsd:string .
212 203
213 _:b23 204 _:b23
214 sp:varName "equivalentMudWeight"^^xsd:string . 205 sp:varName "equivalentMudWeight"^^xsd:string .
215 206
216 -_:b24 207 +_:b22
217 - sp:varName "uomWt"^^xsd:string . 208 + sp:varName "enumReadingKind"^^xsd:string .
218 209
219 -_:b13 210 +_:b21
220 - sp:varName "realWt"^^xsd:string . 211 + sp:varName "uomMd"^^xsd:string .
221 212
222 -_:b25 213 +_:b20
223 - sp:varName "tvd"^^xsd:string . 214 + sp:varName "md"^^xsd:string .
224 215
225 -_:b26 216 +_:b19
226 - sp:varName "uomTvd"^^xsd:string . 217 + sp:varName "porePressure"^^xsd:string .
227 218
228 -_:b10 219 +_:b18
229 - sp:varName "realTvd"^^xsd:string . 220 + sp:varName "dTimStart"^^xsd:string .
230 221
231 -_:b27 222 +_:b17
232 - sp:varName "normalizedWellBoreName"^^xsd:string . 223 + sp:varName "nameWellBore"^^xsd:string .
233 224
234 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . 225 +_:b16
226 + sp:varName "porePressureDeterminationType"^^xsd:string .
235 227
236 -_:b28 228 +_:b15
237 - sp:varName "localname"^^xsd:string . 229 + sp:varName "timeOfDetermination"^^xsd:string .
238 230
239 -_:b1 sp:varName "porePressureDetermination"^^xsd:string . 231 +_:b14
232 + sp:varName "densityScale"^^xsd:string .
240 233
241 -_:b8 sp:varName "lengthScaleMd"^^xsd:string . 234 +_:b13
235 + sp:varName "realWt"^^xsd:string .
242 236
243 _:b11 237 _:b11
244 sp:varName "lengthScaleTvd"^^xsd:string . 238 sp:varName "lengthScaleTvd"^^xsd:string .
245 239
246 -_:b14 240 +_:b10
247 - sp:varName "densityScale"^^xsd:string . 241 + sp:varName "realTvd"^^xsd:string .
248 242
249 -_:b16 243 +_:b8 sp:varName "lengthScaleMd"^^xsd:string .
250 - sp:varName "porePressureDeterminationType"^^xsd:string . 244 +
245 +_:b7 sp:varName "realMd"^^xsd:string .
251 246
252 _:b5 sp:varName "wellBore"^^xsd:string . 247 _:b5 sp:varName "wellBore"^^xsd:string .
248 +
249 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
250 +
251 +_:b1 sp:varName "porePressureDetermination"^^xsd:string .
......
This diff could not be displayed because it is too large.
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
22 22
23 <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> 23 <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias>
24 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
25 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 25 + 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/activity> , <http://spinrdf.org/spin> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 27
28 ddr:Obj_drillReport 28 ddr:Obj_drillReport
29 spin:rule 29 spin:rule
30 [ rdf:type sp:Construct ; 30 [ rdf:type sp:Construct ;
31 - rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ; 31 + rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ;
32 sp:templates ([ sp:object 32 sp:templates ([ sp:object
33 [ sp:varName "name"^^xsd:string 33 [ sp:varName "name"^^xsd:string
34 ] ; 34 ] ;
...@@ -36,7 +36,7 @@ ddr:Obj_drillReport ...@@ -36,7 +36,7 @@ ddr:Obj_drillReport
36 [ sp:varName "labelOfSystem"^^xsd:string 36 [ sp:varName "labelOfSystem"^^xsd:string
37 ] ; 37 ] ;
38 sp:subject 38 sp:subject
39 - [ sp:varName "well"^^xsd:string 39 + [ sp:varName "wellBore"^^xsd:string
40 ] 40 ]
41 ]) ; 41 ]) ;
42 sp:where ([ sp:object 42 sp:where ([ sp:object
...@@ -50,43 +50,46 @@ ddr:Obj_drillReport ...@@ -50,43 +50,46 @@ ddr:Obj_drillReport
50 sp:predicate ddr:dTimStart ; 50 sp:predicate ddr:dTimStart ;
51 sp:subject spin:_this 51 sp:subject spin:_this
52 ] [ sp:object 52 ] [ sp:object
53 - [ sp:varName "wellAlias"^^xsd:string 53 + [ sp:varName "wellBoreAlias"^^xsd:string
54 ] ; 54 ] ;
55 - sp:predicate ddr:wellAliasRef ; 55 + sp:predicate ddr:wellboreAliasRef ;
56 sp:subject spin:_this 56 sp:subject spin:_this
57 ] [ sp:object 57 ] [ sp:object
58 [ sp:varName "name"^^xsd:string 58 [ sp:varName "name"^^xsd:string
59 ] ; 59 ] ;
60 sp:predicate ddr:name ; 60 sp:predicate ddr:name ;
61 sp:subject 61 sp:subject
62 - [ sp:varName "wellAlias"^^xsd:string 62 + [ sp:varName "wellBoreAlias"^^xsd:string
63 ] 63 ]
64 ] [ sp:object 64 ] [ sp:object
65 [ sp:varName "namingSystem"^^xsd:string 65 [ sp:varName "namingSystem"^^xsd:string
66 ] ; 66 ] ;
67 sp:predicate ddr:namingSystemRef ; 67 sp:predicate ddr:namingSystemRef ;
68 sp:subject 68 sp:subject
69 - [ sp:varName "wellAlias"^^xsd:string 69 + [ sp:varName "wellBoreAlias"^^xsd:string
70 ] 70 ]
71 ] [ sp:object 71 ] [ sp:object
72 - [ sp:varName "temporalPartOfAWell"^^xsd:string 72 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
73 ] ; 73 ] ;
74 - sp:predicate ep-activity:onWell ; 74 + sp:predicate ep-activity:onWellBore ;
75 sp:subject 75 sp:subject
76 [ sp:varName "dailyDrillingActivity"^^xsd:string 76 [ sp:varName "dailyDrillingActivity"^^xsd:string
77 ] 77 ]
78 ] [ sp:object 78 ] [ sp:object
79 - [ sp:varName "well"^^xsd:string 79 + [ sp:varName "wellBore"^^xsd:string
80 ] ; 80 ] ;
81 sp:predicate ep-core:temporalPartOf ; 81 sp:predicate ep-core:temporalPartOf ;
82 sp:subject 82 sp:subject
83 - [ sp:varName "temporalPartOfAWell"^^xsd:string 83 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
84 ] 84 ]
85 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 85 + ] [ rdf:type sp:NamedGraph ;
86 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
86 sp:predicate rdf:type ; 87 sp:predicate rdf:type ;
87 sp:subject 88 sp:subject
88 - [ sp:varName "well"^^xsd:string 89 + [ sp:varName "wellBore"^^xsd:string
89 ] 90 ]
91 + ]) ;
92 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
90 ] [ rdf:type sp:Bind ; 93 ] [ rdf:type sp:Bind ;
91 sp:expression 94 sp:expression
92 [ rdf:type ep-spin-lib:normalizeString ; 95 [ rdf:type ep-spin-lib:normalizeString ;
...@@ -120,7 +123,7 @@ ddr:Obj_drillReport ...@@ -120,7 +123,7 @@ ddr:Obj_drillReport
120 ] ; 123 ] ;
121 spin:rule 124 spin:rule
122 [ rdf:type sp:Construct ; 125 [ rdf:type sp:Construct ;
123 - rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ; 126 + rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
124 sp:templates ([ sp:object 127 sp:templates ([ sp:object
125 [ sp:varName "name"^^xsd:string 128 [ sp:varName "name"^^xsd:string
126 ] ; 129 ] ;
...@@ -128,7 +131,7 @@ ddr:Obj_drillReport ...@@ -128,7 +131,7 @@ ddr:Obj_drillReport
128 [ sp:varName "labelOfSystem"^^xsd:string 131 [ sp:varName "labelOfSystem"^^xsd:string
129 ] ; 132 ] ;
130 sp:subject 133 sp:subject
131 - [ sp:varName "wellBore"^^xsd:string 134 + [ sp:varName "well"^^xsd:string
132 ] 135 ]
133 ]) ; 136 ]) ;
134 sp:where ([ sp:object 137 sp:where ([ sp:object
...@@ -142,43 +145,46 @@ ddr:Obj_drillReport ...@@ -142,43 +145,46 @@ ddr:Obj_drillReport
142 sp:predicate ddr:dTimStart ; 145 sp:predicate ddr:dTimStart ;
143 sp:subject spin:_this 146 sp:subject spin:_this
144 ] [ sp:object 147 ] [ sp:object
145 - [ sp:varName "wellBoreAlias"^^xsd:string 148 + [ sp:varName "wellAlias"^^xsd:string
146 ] ; 149 ] ;
147 - sp:predicate ddr:wellboreAliasRef ; 150 + sp:predicate ddr:wellAliasRef ;
148 sp:subject spin:_this 151 sp:subject spin:_this
149 ] [ sp:object 152 ] [ sp:object
150 [ sp:varName "name"^^xsd:string 153 [ sp:varName "name"^^xsd:string
151 ] ; 154 ] ;
152 sp:predicate ddr:name ; 155 sp:predicate ddr:name ;
153 sp:subject 156 sp:subject
154 - [ sp:varName "wellBoreAlias"^^xsd:string 157 + [ sp:varName "wellAlias"^^xsd:string
155 ] 158 ]
156 ] [ sp:object 159 ] [ sp:object
157 [ sp:varName "namingSystem"^^xsd:string 160 [ sp:varName "namingSystem"^^xsd:string
158 ] ; 161 ] ;
159 sp:predicate ddr:namingSystemRef ; 162 sp:predicate ddr:namingSystemRef ;
160 sp:subject 163 sp:subject
161 - [ sp:varName "wellBoreAlias"^^xsd:string 164 + [ sp:varName "wellAlias"^^xsd:string
162 ] 165 ]
163 ] [ sp:object 166 ] [ sp:object
164 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 167 + [ sp:varName "temporalPartOfAWell"^^xsd:string
165 ] ; 168 ] ;
166 - sp:predicate ep-activity:onWellBore ; 169 + sp:predicate ep-activity:onWell ;
167 sp:subject 170 sp:subject
168 [ sp:varName "dailyDrillingActivity"^^xsd:string 171 [ sp:varName "dailyDrillingActivity"^^xsd:string
169 ] 172 ]
170 ] [ sp:object 173 ] [ sp:object
171 - [ sp:varName "wellBore"^^xsd:string 174 + [ sp:varName "well"^^xsd:string
172 ] ; 175 ] ;
173 sp:predicate ep-core:temporalPartOf ; 176 sp:predicate ep-core:temporalPartOf ;
174 sp:subject 177 sp:subject
175 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 178 + [ sp:varName "temporalPartOfAWell"^^xsd:string
176 ] 179 ]
177 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 180 + ] [ rdf:type sp:NamedGraph ;
181 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
178 sp:predicate rdf:type ; 182 sp:predicate rdf:type ;
179 sp:subject 183 sp:subject
180 - [ sp:varName "wellBore"^^xsd:string 184 + [ sp:varName "well"^^xsd:string
181 ] 185 ]
186 + ]) ;
187 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
182 ] [ rdf:type sp:Bind ; 188 ] [ rdf:type sp:Bind ;
183 sp:expression 189 sp:expression
184 [ rdf:type ep-spin-lib:normalizeString ; 190 [ rdf:type ep-spin-lib:normalizeString ;
......
...@@ -31,14 +31,13 @@ ...@@ -31,14 +31,13 @@
31 ddr:Obj_drillReport 31 ddr:Obj_drillReport
32 spin:rule 32 spin:rule
33 [ rdf:type sp:Construct ; 33 [ rdf:type sp:Construct ;
34 - rdfs:comment """STEP 168 Transfer fixedRig 34 + rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
35 -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
36 sp:templates ([ sp:object 35 sp:templates ([ sp:object
37 - [ sp:varName "fixedOrMoveableRigType"^^xsd:string 36 + [ sp:varName "spudDate"^^xsd:string
38 ] ; 37 ] ;
39 - sp:predicate rdf:type ; 38 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
40 sp:subject 39 sp:subject
41 - [ sp:varName "rig"^^xsd:string 40 + [ sp:varName "wellBore"^^xsd:string
42 ] 41 ]
43 ]) ; 42 ]) ;
44 sp:where ([ sp:object 43 sp:where ([ sp:object
...@@ -52,35 +51,99 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -52,35 +51,99 @@ This rule processes data from statusInfo, but is here because it must be execute
52 sp:predicate ddr:dTimStart ; 51 sp:predicate ddr:dTimStart ;
53 sp:subject spin:_this 52 sp:subject spin:_this
54 ] [ sp:object 53 ] [ sp:object
55 - [ sp:varName "temporalPartOfARig"^^xsd:string 54 + [ sp:varName "wellboreInfo"^^xsd:string
56 ] ; 55 ] ;
57 - sp:predicate ep-activity:onRig ; 56 + sp:predicate ddr:wellboreInfoRef ;
57 + sp:subject spin:_this
58 + ] [ sp:object
59 + [ sp:varName "spudDate"^^xsd:string
60 + ] ;
61 + sp:predicate ddr:dTimSpud ;
62 + sp:subject
63 + [ sp:varName "wellboreInfo"^^xsd:string
64 + ]
65 + ] [ sp:object
66 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
67 + ] ;
68 + sp:predicate ep-activity:onWellBore ;
58 sp:subject 69 sp:subject
59 [ sp:varName "dailyDrillingActivity"^^xsd:string 70 [ sp:varName "dailyDrillingActivity"^^xsd:string
60 ] 71 ]
61 ] [ sp:object 72 ] [ sp:object
62 - [ sp:varName "rig"^^xsd:string 73 + [ sp:varName "wellBore"^^xsd:string
63 ] ; 74 ] ;
64 sp:predicate ep-core:temporalPartOf ; 75 sp:predicate ep-core:temporalPartOf ;
65 sp:subject 76 sp:subject
66 - [ sp:varName "temporalPartOfARig"^^xsd:string 77 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
67 ] 78 ]
68 - ] [ sp:object ep-facility:Rig ; 79 + ] [ rdf:type sp:NamedGraph ;
80 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
69 sp:predicate rdf:type ; 81 sp:predicate rdf:type ;
70 sp:subject 82 sp:subject
71 - [ sp:varName "rig"^^xsd:string 83 + [ sp:varName "wellBore"^^xsd:string
72 ] 84 ]
85 + ]) ;
86 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
87 + ] [ rdf:type sp:Bind ;
88 + sp:expression
89 + [ rdf:type ep-spin-lib:normalizeString ;
90 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
91 + ]
92 + ] ;
93 + sp:variable
94 + [ sp:varName "normalizedWellBoreName"^^xsd:string
95 + ]
96 + ] [ rdf:type sp:Bind ;
97 + sp:expression
98 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
99 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
100 + ] ;
101 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
102 + ]
103 + ] ;
104 + sp:variable
105 + [ sp:varName "dailyDrillingActivity"^^xsd:string
106 + ]
107 + ])
108 + ] ;
109 + spin:rule
110 + [ rdf:type sp:Construct ;
111 + rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
112 + sp:templates ([ sp:object _:b1 ;
113 + sp:predicate ep-activity:drillingContractor ;
114 + sp:subject
115 + [ sp:varName "dailyDrillingActivity"^^xsd:string
116 + ]
117 + ] [ sp:object ep-org:Company ;
118 + sp:predicate rdf:type ;
119 + sp:subject _:b1
73 ] [ sp:object 120 ] [ sp:object
74 - [ sp:varName "statusInfo"^^xsd:string 121 + [ sp:varName "nameContractor"^^xsd:string
75 ] ; 122 ] ;
76 - sp:predicate ddr:statusInfoRef ; 123 + sp:predicate ep-core:name ;
124 + sp:subject _:b1
125 + ]) ;
126 + sp:where ([ sp:object
127 + [ sp:varName "nameWellBore"^^xsd:string
128 + ] ;
129 + sp:predicate ep-spin-lib:nameWellbore ;
77 sp:subject spin:_this 130 sp:subject spin:_this
78 ] [ sp:object 131 ] [ sp:object
79 - [ sp:varName "fixedRig"^^xsd:string 132 + [ sp:varName "dTimStart"^^xsd:string
80 ] ; 133 ] ;
81 - sp:predicate ddr:fixedRig ; 134 + sp:predicate ddr:dTimStart ;
135 + sp:subject spin:_this
136 + ] [ sp:object
137 + [ sp:varName "wellboreInfo"^^xsd:string
138 + ] ;
139 + sp:predicate ddr:wellboreInfoRef ;
140 + sp:subject spin:_this
141 + ] [ sp:object
142 + [ sp:varName "nameContractor"^^xsd:string
143 + ] ;
144 + sp:predicate ddr:drillContractor ;
82 sp:subject 145 sp:subject
83 - [ sp:varName "statusInfo"^^xsd:string 146 + [ sp:varName "wellboreInfo"^^xsd:string
84 ] 147 ]
85 ] [ rdf:type sp:Bind ; 148 ] [ rdf:type sp:Bind ;
86 sp:expression 149 sp:expression
...@@ -104,31 +167,40 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -104,31 +167,40 @@ This rule processes data from statusInfo, but is here because it must be execute
104 ] 167 ]
105 ] [ rdf:type sp:Bind ; 168 ] [ rdf:type sp:Bind ;
106 sp:expression 169 sp:expression
107 - [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ; 170 + [ rdf:type ep-spin-lib:normalizeString ;
108 - sp:arg1 [ sp:varName "fixedRig"^^xsd:string 171 + sp:arg1 [ sp:varName "nameContractor"^^xsd:string
109 ] 172 ]
110 ] ; 173 ] ;
111 sp:variable 174 sp:variable
112 - [ sp:varName "fixedOrMoveableRigType"^^xsd:string 175 + [ sp:varName "normalizedContractorName"^^xsd:string
176 + ]
177 + ] [ rdf:type sp:Bind ;
178 + sp:expression
179 + [ rdf:type rhspin:companyById ;
180 + arg:id [ sp:varName "normalizedContractorName"^^xsd:string
181 + ]
182 + ] ;
183 + sp:variable
184 + [ sp:varName "contractor"^^xsd:string
113 ] 185 ]
114 ]) 186 ])
115 ] ; 187 ] ;
116 spin:rule 188 spin:rule
117 [ rdf:type sp:Construct ; 189 [ rdf:type sp:Construct ;
118 rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; 190 rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
119 - sp:templates ([ sp:object _:b1 ; 191 + sp:templates ([ sp:object _:b2 ;
120 sp:predicate ep-activity:onRig ; 192 sp:predicate ep-activity:onRig ;
121 sp:subject 193 sp:subject
122 [ sp:varName "dailyDrillingActivity"^^xsd:string 194 [ sp:varName "dailyDrillingActivity"^^xsd:string
123 ] 195 ]
124 ] [ sp:object ep-facility:TemporalPartOfARig ; 196 ] [ sp:object ep-facility:TemporalPartOfARig ;
125 sp:predicate rdf:type ; 197 sp:predicate rdf:type ;
126 - sp:subject _:b1 198 + sp:subject _:b2
127 ] [ sp:object 199 ] [ sp:object
128 [ sp:varName "rig"^^xsd:string 200 [ sp:varName "rig"^^xsd:string
129 ] ; 201 ] ;
130 sp:predicate ep-core:temporalPartOf ; 202 sp:predicate ep-core:temporalPartOf ;
131 - sp:subject _:b1 203 + sp:subject _:b2
132 ] [ sp:object ep-facility:Rig ; 204 ] [ sp:object ep-facility:Rig ;
133 sp:predicate rdf:type ; 205 sp:predicate rdf:type ;
134 sp:subject 206 sp:subject
...@@ -263,11 +335,14 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -263,11 +335,14 @@ This rule processes data from statusInfo, but is here because it must be execute
263 sp:subject 335 sp:subject
264 [ sp:varName "temporalPartOfAWellBore"^^xsd:string 336 [ sp:varName "temporalPartOfAWellBore"^^xsd:string
265 ] 337 ]
266 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 338 + ] [ rdf:type sp:NamedGraph ;
339 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
267 sp:predicate rdf:type ; 340 sp:predicate rdf:type ;
268 sp:subject 341 sp:subject
269 [ sp:varName "wellBore"^^xsd:string 342 [ sp:varName "wellBore"^^xsd:string
270 ] 343 ]
344 + ]) ;
345 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
271 ] [ rdf:type sp:Bind ; 346 ] [ rdf:type sp:Bind ;
272 sp:expression 347 sp:expression
273 [ rdf:type ep-spin-lib:normalizeString ; 348 [ rdf:type ep-spin-lib:normalizeString ;
...@@ -292,29 +367,15 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -292,29 +367,15 @@ This rule processes data from statusInfo, but is here because it must be execute
292 ] ; 367 ] ;
293 spin:rule 368 spin:rule
294 [ rdf:type sp:Construct ; 369 [ rdf:type sp:Construct ;
295 - rdfs:comment """STEP 169a Transfer waterDepth 370 + rdfs:comment """STEP 168 Transfer fixedRig
296 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 371 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
297 - sp:templates ([ sp:object _:b2 ; 372 + sp:templates ([ sp:object
298 - sp:predicate ep-core:hasPart ; 373 + [ sp:varName "fixedOrMoveableRigType"^^xsd:string
374 + ] ;
375 + sp:predicate rdf:type ;
299 sp:subject 376 sp:subject
300 - [ sp:varName "temporalPartOfARig"^^xsd:string 377 + [ sp:varName "rig"^^xsd:string
301 ] 378 ]
302 - ] [ sp:object ep-facility:SurroundingWater ;
303 - sp:predicate rdf:type ;
304 - sp:subject _:b2
305 - ] [ sp:object _:b3 ;
306 - sp:predicate ep-facility:depthOfSurroundingWater ;
307 - sp:subject _:b2
308 - ] [ sp:object ep-core:Length ;
309 - sp:predicate rdf:type ;
310 - sp:subject _:b3
311 - ] [ sp:object
312 - [ sp:varName "real"^^xsd:string
313 - ] ;
314 - sp:predicate
315 - [ sp:varName "lengthScale"^^xsd:string
316 - ] ;
317 - sp:subject _:b3
318 ]) ; 379 ]) ;
319 sp:where ([ sp:object 380 sp:where ([ sp:object
320 [ sp:varName "nameWellBore"^^xsd:string 381 [ sp:varName "nameWellBore"^^xsd:string
...@@ -327,11 +388,6 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -327,11 +388,6 @@ This rule processes data from statusInfo, but is here because it must be execute
327 sp:predicate ddr:dTimStart ; 388 sp:predicate ddr:dTimStart ;
328 sp:subject spin:_this 389 sp:subject spin:_this
329 ] [ sp:object 390 ] [ sp:object
330 - [ sp:varName "statusInfo"^^xsd:string
331 - ] ;
332 - sp:predicate ddr:statusInfoRef ;
333 - sp:subject spin:_this
334 - ] [ sp:object
335 [ sp:varName "temporalPartOfARig"^^xsd:string 391 [ sp:varName "temporalPartOfARig"^^xsd:string
336 ] ; 392 ] ;
337 sp:predicate ep-activity:onRig ; 393 sp:predicate ep-activity:onRig ;
...@@ -339,25 +395,28 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -339,25 +395,28 @@ This rule processes data from statusInfo, but is here because it must be execute
339 [ sp:varName "dailyDrillingActivity"^^xsd:string 395 [ sp:varName "dailyDrillingActivity"^^xsd:string
340 ] 396 ]
341 ] [ sp:object 397 ] [ sp:object
342 - [ sp:varName "waterDepth"^^xsd:string 398 + [ sp:varName "rig"^^xsd:string
343 ] ; 399 ] ;
344 - sp:predicate ddr:waterDepthRef ; 400 + sp:predicate ep-core:temporalPartOf ;
345 sp:subject 401 sp:subject
346 - [ sp:varName "statusInfo"^^xsd:string 402 + [ sp:varName "temporalPartOfARig"^^xsd:string
347 ] 403 ]
348 - ] [ sp:object 404 + ] [ sp:object ep-facility:Rig ;
349 - [ sp:varName "real"^^xsd:string 405 + sp:predicate rdf:type ;
350 - ] ;
351 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
352 sp:subject 406 sp:subject
353 - [ sp:varName "waterDepth"^^xsd:string 407 + [ sp:varName "rig"^^xsd:string
354 ] 408 ]
355 ] [ sp:object 409 ] [ sp:object
356 - [ sp:varName "uom"^^xsd:string 410 + [ sp:varName "statusInfo"^^xsd:string
357 ] ; 411 ] ;
358 - sp:predicate ddr:uomRef ; 412 + sp:predicate ddr:statusInfoRef ;
413 + sp:subject spin:_this
414 + ] [ sp:object
415 + [ sp:varName "fixedRig"^^xsd:string
416 + ] ;
417 + sp:predicate ddr:fixedRig ;
359 sp:subject 418 sp:subject
360 - [ sp:varName "waterDepth"^^xsd:string 419 + [ sp:varName "statusInfo"^^xsd:string
361 ] 420 ]
362 ] [ rdf:type sp:Bind ; 421 ] [ rdf:type sp:Bind ;
363 sp:expression 422 sp:expression
...@@ -381,40 +440,89 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -381,40 +440,89 @@ This rule processes data from statusInfo, but is here because it must be execute
381 ] 440 ]
382 ] [ rdf:type sp:Bind ; 441 ] [ rdf:type sp:Bind ;
383 sp:expression 442 sp:expression
384 - [ rdf:type ep-spin-lib:selectLengthScale ; 443 + [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
385 - sp:arg1 [ sp:varName "uom"^^xsd:string 444 + sp:arg1 [ sp:varName "fixedRig"^^xsd:string
386 ] 445 ]
387 ] ; 446 ] ;
388 sp:variable 447 sp:variable
389 - [ sp:varName "lengthScale"^^xsd:string 448 + [ sp:varName "fixedOrMoveableRigType"^^xsd:string
390 ] 449 ]
391 ]) 450 ])
392 ] ; 451 ] ;
393 spin:rule 452 spin:rule
394 [ rdf:type sp:Construct ; 453 [ rdf:type sp:Construct ;
395 - rdfs:comment """STEP 169 Transfer elevKelly 454 + rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
396 -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 455 + sp:templates ([ sp:object _:b3 ;
397 - sp:templates ([ sp:object _:b4 ; 456 + sp:predicate ep-activity:onRig ;
398 - sp:predicate ep-core:hasPart ;
399 - sp:subject
400 - [ sp:varName "temporalPartOfARig"^^xsd:string
401 - ]
402 - ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
403 - sp:predicate rdf:type ;
404 sp:subject _:b4 457 sp:subject _:b4
458 + ] [ sp:object ep-facility:TemporalPartOfARig ;
459 + sp:predicate rdf:type ;
460 + sp:subject _:b3
405 ] [ sp:object _:b5 ; 461 ] [ sp:object _:b5 ;
406 - sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; 462 + sp:predicate ep-core:temporalPartOf ;
407 - sp:subject _:b4 463 + sp:subject _:b3
408 - ] [ sp:object ep-core:Length ; 464 + ] [ sp:object ep-facility:Rig ;
409 sp:predicate rdf:type ; 465 sp:predicate rdf:type ;
410 sp:subject _:b5 466 sp:subject _:b5
467 + ]) ;
468 + sp:where ([ sp:object _:b6 ;
469 + sp:predicate ep-spin-lib:nameWellbore ;
470 + sp:subject spin:_this
471 + ] [ sp:object _:b7 ;
472 + sp:predicate ddr:dTimStart ;
473 + sp:subject spin:_this
474 + ] [ rdf:type sp:NotExists ;
475 + sp:elements ([ sp:object _:b8 ;
476 + sp:predicate ddr:wellboreInfoRef ;
477 + sp:subject spin:_this
478 + ] [ sp:object _:b9 ;
479 + sp:predicate ddr:rigAliasRef ;
480 + sp:subject _:b8
411 ] [ sp:object 481 ] [ sp:object
412 - [ sp:varName "real"^^xsd:string 482 + [ sp:varName "code"^^xsd:string
413 ] ; 483 ] ;
414 - sp:predicate 484 + sp:predicate ddr:name ;
415 - [ sp:varName "lengthScale"^^xsd:string 485 + sp:subject _:b9
486 + ] [ rdf:type sp:Union ;
487 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
488 + sp:predicate ddr:namingSystem ;
489 + sp:subject _:b9
490 + ]) ([ sp:object "NPD code"^^xsd:string ;
491 + sp:predicate ddr:namingSystem ;
492 + sp:subject _:b9
493 + ]))
494 + ])
495 + ] [ rdf:type sp:Bind ;
496 + sp:expression
497 + [ rdf:type ep-spin-lib:normalizeString ;
498 + sp:arg1 _:b6
416 ] ; 499 ] ;
417 - sp:subject _:b5 500 + sp:variable _:b10
501 + ] [ rdf:type sp:Bind ;
502 + sp:expression
503 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
504 + sp:arg1 _:b10 ;
505 + sp:arg2 _:b7
506 + ] ;
507 + sp:variable _:b4
508 + ])
509 + ] ;
510 + spin:rule
511 + [ rdf:type sp:Construct ;
512 + rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
513 + sp:templates ([ sp:object _:b11 ;
514 + sp:predicate ep-activity:drillingOperator ;
515 + sp:subject
516 + [ sp:varName "dailyDrillingActivity"^^xsd:string
517 + ]
518 + ] [ sp:object ep-org:Company ;
519 + sp:predicate rdf:type ;
520 + sp:subject _:b11
521 + ] [ sp:object
522 + [ sp:varName "nameOperator"^^xsd:string
523 + ] ;
524 + sp:predicate ep-core:name ;
525 + sp:subject _:b11
418 ]) ; 526 ]) ;
419 sp:where ([ sp:object 527 sp:where ([ sp:object
420 [ sp:varName "nameWellBore"^^xsd:string 528 [ sp:varName "nameWellBore"^^xsd:string
...@@ -427,37 +535,16 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -427,37 +535,16 @@ This rule processes data from statusInfo, but is here because it must be execute
427 sp:predicate ddr:dTimStart ; 535 sp:predicate ddr:dTimStart ;
428 sp:subject spin:_this 536 sp:subject spin:_this
429 ] [ sp:object 537 ] [ sp:object
430 - [ sp:varName "statusInfo"^^xsd:string 538 + [ sp:varName "wellboreInfo"^^xsd:string
431 ] ; 539 ] ;
432 - sp:predicate ddr:statusInfoRef ; 540 + sp:predicate ddr:wellboreInfoRef ;
433 sp:subject spin:_this 541 sp:subject spin:_this
434 ] [ sp:object 542 ] [ sp:object
435 - [ sp:varName "temporalPartOfARig"^^xsd:string 543 + [ sp:varName "nameOperator"^^xsd:string
436 ] ; 544 ] ;
437 - sp:predicate ep-activity:onRig ; 545 + sp:predicate ddr:operator ;
438 sp:subject 546 sp:subject
439 - [ sp:varName "dailyDrillingActivity"^^xsd:string 547 + [ sp:varName "wellboreInfo"^^xsd:string
440 - ]
441 - ] [ sp:object
442 - [ sp:varName "elevKelly"^^xsd:string
443 - ] ;
444 - sp:predicate ddr:elevKellyRef ;
445 - sp:subject
446 - [ sp:varName "statusInfo"^^xsd:string
447 - ]
448 - ] [ sp:object
449 - [ sp:varName "real"^^xsd:string
450 - ] ;
451 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
452 - sp:subject
453 - [ sp:varName "elevKelly"^^xsd:string
454 - ]
455 - ] [ sp:object
456 - [ sp:varName "uom"^^xsd:string
457 - ] ;
458 - sp:predicate ddr:uomRef ;
459 - sp:subject
460 - [ sp:varName "elevKelly"^^xsd:string
461 ] 548 ]
462 ] [ rdf:type sp:Bind ; 549 ] [ rdf:type sp:Bind ;
463 sp:expression 550 sp:expression
...@@ -479,27 +566,33 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -479,27 +566,33 @@ This rule processes data from statusInfo, but is here because it must be execute
479 sp:variable 566 sp:variable
480 [ sp:varName "dailyDrillingActivity"^^xsd:string 567 [ sp:varName "dailyDrillingActivity"^^xsd:string
481 ] 568 ]
482 - ] [ rdf:type sp:Bind ;
483 - sp:expression
484 - [ rdf:type ep-spin-lib:selectLengthScale ;
485 - sp:arg1 [ sp:varName "uom"^^xsd:string
486 - ]
487 - ] ;
488 - sp:variable
489 - [ sp:varName "lengthScale"^^xsd:string
490 - ]
491 ]) 569 ])
492 ] ; 570 ] ;
493 spin:rule 571 spin:rule
494 [ rdf:type sp:Construct ; 572 [ rdf:type sp:Construct ;
495 - rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ; 573 + rdfs:comment """STEP 169 Transfer elevKelly
496 - sp:templates ([ sp:object 574 +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
497 - [ sp:varName "preSpudDate"^^xsd:string 575 + sp:templates ([ sp:object _:b12 ;
498 - ] ; 576 + sp:predicate ep-core:hasPart ;
499 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
500 sp:subject 577 sp:subject
501 - [ sp:varName "wellBore"^^xsd:string 578 + [ sp:varName "temporalPartOfARig"^^xsd:string
502 ] 579 ]
580 + ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
581 + sp:predicate rdf:type ;
582 + sp:subject _:b12
583 + ] [ sp:object _:b13 ;
584 + sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
585 + sp:subject _:b12
586 + ] [ sp:object ep-core:Length ;
587 + sp:predicate rdf:type ;
588 + sp:subject _:b13
589 + ] [ sp:object
590 + [ sp:varName "real"^^xsd:string
591 + ] ;
592 + sp:predicate
593 + [ sp:varName "lengthScale"^^xsd:string
594 + ] ;
595 + sp:subject _:b13
503 ]) ; 596 ]) ;
504 sp:where ([ sp:object 597 sp:where ([ sp:object
505 [ sp:varName "nameWellBore"^^xsd:string 598 [ sp:varName "nameWellBore"^^xsd:string
...@@ -512,35 +605,37 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -512,35 +605,37 @@ This rule processes data from statusInfo, but is here because it must be execute
512 sp:predicate ddr:dTimStart ; 605 sp:predicate ddr:dTimStart ;
513 sp:subject spin:_this 606 sp:subject spin:_this
514 ] [ sp:object 607 ] [ sp:object
515 - [ sp:varName "wellboreInfo"^^xsd:string 608 + [ sp:varName "statusInfo"^^xsd:string
516 ] ; 609 ] ;
517 - sp:predicate ddr:wellboreInfoRef ; 610 + sp:predicate ddr:statusInfoRef ;
518 sp:subject spin:_this 611 sp:subject spin:_this
519 ] [ sp:object 612 ] [ sp:object
520 - [ sp:varName "preSpudDate"^^xsd:string 613 + [ sp:varName "temporalPartOfARig"^^xsd:string
521 ] ; 614 ] ;
522 - sp:predicate ddr:dTimPreSpud ; 615 + sp:predicate ep-activity:onRig ;
523 sp:subject 616 sp:subject
524 - [ sp:varName "wellboreInfo"^^xsd:string 617 + [ sp:varName "dailyDrillingActivity"^^xsd:string
525 ] 618 ]
526 ] [ sp:object 619 ] [ sp:object
527 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 620 + [ sp:varName "elevKelly"^^xsd:string
528 ] ; 621 ] ;
529 - sp:predicate ep-activity:onWellBore ; 622 + sp:predicate ddr:elevKellyRef ;
530 sp:subject 623 sp:subject
531 - [ sp:varName "dailyDrillingActivity"^^xsd:string 624 + [ sp:varName "statusInfo"^^xsd:string
532 ] 625 ]
533 ] [ sp:object 626 ] [ sp:object
534 - [ sp:varName "wellBore"^^xsd:string 627 + [ sp:varName "real"^^xsd:string
535 ] ; 628 ] ;
536 - sp:predicate ep-core:temporalPartOf ; 629 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
537 sp:subject 630 sp:subject
538 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 631 + [ sp:varName "elevKelly"^^xsd:string
539 ] 632 ]
540 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 633 + ] [ sp:object
541 - sp:predicate rdf:type ; 634 + [ sp:varName "uom"^^xsd:string
635 + ] ;
636 + sp:predicate ddr:uomRef ;
542 sp:subject 637 sp:subject
543 - [ sp:varName "wellBore"^^xsd:string 638 + [ sp:varName "elevKelly"^^xsd:string
544 ] 639 ]
545 ] [ rdf:type sp:Bind ; 640 ] [ rdf:type sp:Bind ;
546 sp:expression 641 sp:expression
...@@ -562,18 +657,42 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -562,18 +657,42 @@ This rule processes data from statusInfo, but is here because it must be execute
562 sp:variable 657 sp:variable
563 [ sp:varName "dailyDrillingActivity"^^xsd:string 658 [ sp:varName "dailyDrillingActivity"^^xsd:string
564 ] 659 ]
660 + ] [ rdf:type sp:Bind ;
661 + sp:expression
662 + [ rdf:type ep-spin-lib:selectLengthScale ;
663 + sp:arg1 [ sp:varName "uom"^^xsd:string
664 + ]
665 + ] ;
666 + sp:variable
667 + [ sp:varName "lengthScale"^^xsd:string
668 + ]
565 ]) 669 ])
566 ] ; 670 ] ;
567 spin:rule 671 spin:rule
568 [ rdf:type sp:Construct ; 672 [ rdf:type sp:Construct ;
569 - rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ; 673 + rdfs:comment """STEP 169a Transfer waterDepth
570 - sp:templates ([ sp:object 674 +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
571 - [ sp:varName "spudDate"^^xsd:string 675 + sp:templates ([ sp:object _:b14 ;
572 - ] ; 676 + sp:predicate ep-core:hasPart ;
573 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
574 sp:subject 677 sp:subject
575 - [ sp:varName "wellBore"^^xsd:string 678 + [ sp:varName "temporalPartOfARig"^^xsd:string
576 ] 679 ]
680 + ] [ sp:object ep-facility:SurroundingWater ;
681 + sp:predicate rdf:type ;
682 + sp:subject _:b14
683 + ] [ sp:object _:b15 ;
684 + sp:predicate ep-facility:depthOfSurroundingWater ;
685 + sp:subject _:b14
686 + ] [ sp:object ep-core:Length ;
687 + sp:predicate rdf:type ;
688 + sp:subject _:b15
689 + ] [ sp:object
690 + [ sp:varName "real"^^xsd:string
691 + ] ;
692 + sp:predicate
693 + [ sp:varName "lengthScale"^^xsd:string
694 + ] ;
695 + sp:subject _:b15
577 ]) ; 696 ]) ;
578 sp:where ([ sp:object 697 sp:where ([ sp:object
579 [ sp:varName "nameWellBore"^^xsd:string 698 [ sp:varName "nameWellBore"^^xsd:string
...@@ -586,35 +705,37 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -586,35 +705,37 @@ This rule processes data from statusInfo, but is here because it must be execute
586 sp:predicate ddr:dTimStart ; 705 sp:predicate ddr:dTimStart ;
587 sp:subject spin:_this 706 sp:subject spin:_this
588 ] [ sp:object 707 ] [ sp:object
589 - [ sp:varName "wellboreInfo"^^xsd:string 708 + [ sp:varName "statusInfo"^^xsd:string
590 ] ; 709 ] ;
591 - sp:predicate ddr:wellboreInfoRef ; 710 + sp:predicate ddr:statusInfoRef ;
592 sp:subject spin:_this 711 sp:subject spin:_this
593 ] [ sp:object 712 ] [ sp:object
594 - [ sp:varName "spudDate"^^xsd:string 713 + [ sp:varName "temporalPartOfARig"^^xsd:string
595 ] ; 714 ] ;
596 - sp:predicate ddr:dTimSpud ; 715 + sp:predicate ep-activity:onRig ;
597 sp:subject 716 sp:subject
598 - [ sp:varName "wellboreInfo"^^xsd:string 717 + [ sp:varName "dailyDrillingActivity"^^xsd:string
599 ] 718 ]
600 ] [ sp:object 719 ] [ sp:object
601 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 720 + [ sp:varName "waterDepth"^^xsd:string
602 ] ; 721 ] ;
603 - sp:predicate ep-activity:onWellBore ; 722 + sp:predicate ddr:waterDepthRef ;
604 sp:subject 723 sp:subject
605 - [ sp:varName "dailyDrillingActivity"^^xsd:string 724 + [ sp:varName "statusInfo"^^xsd:string
606 ] 725 ]
607 ] [ sp:object 726 ] [ sp:object
608 - [ sp:varName "wellBore"^^xsd:string 727 + [ sp:varName "real"^^xsd:string
609 ] ; 728 ] ;
610 - sp:predicate ep-core:temporalPartOf ; 729 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
611 sp:subject 730 sp:subject
612 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 731 + [ sp:varName "waterDepth"^^xsd:string
613 ] 732 ]
614 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 733 + ] [ sp:object
615 - sp:predicate rdf:type ; 734 + [ sp:varName "uom"^^xsd:string
735 + ] ;
736 + sp:predicate ddr:uomRef ;
616 sp:subject 737 sp:subject
617 - [ sp:varName "wellBore"^^xsd:string 738 + [ sp:varName "waterDepth"^^xsd:string
618 ] 739 ]
619 ] [ rdf:type sp:Bind ; 740 ] [ rdf:type sp:Bind ;
620 sp:expression 741 sp:expression
...@@ -636,82 +757,27 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -636,82 +757,27 @@ This rule processes data from statusInfo, but is here because it must be execute
636 sp:variable 757 sp:variable
637 [ sp:varName "dailyDrillingActivity"^^xsd:string 758 [ sp:varName "dailyDrillingActivity"^^xsd:string
638 ] 759 ]
639 - ])
640 - ] ;
641 - spin:rule
642 - [ rdf:type sp:Construct ;
643 - rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
644 - sp:templates ([ sp:object _:b6 ;
645 - sp:predicate ep-activity:onRig ;
646 - sp:subject _:b7
647 - ] [ sp:object ep-facility:TemporalPartOfARig ;
648 - sp:predicate rdf:type ;
649 - sp:subject _:b6
650 - ] [ sp:object _:b8 ;
651 - sp:predicate ep-core:temporalPartOf ;
652 - sp:subject _:b6
653 - ] [ sp:object ep-facility:Rig ;
654 - sp:predicate rdf:type ;
655 - sp:subject _:b8
656 - ]) ;
657 - sp:where ([ sp:object _:b9 ;
658 - sp:predicate ep-spin-lib:nameWellbore ;
659 - sp:subject spin:_this
660 - ] [ sp:object _:b10 ;
661 - sp:predicate ddr:dTimStart ;
662 - sp:subject spin:_this
663 - ] [ rdf:type sp:NotExists ;
664 - sp:elements ([ sp:object _:b11 ;
665 - sp:predicate ddr:wellboreInfoRef ;
666 - sp:subject spin:_this
667 - ] [ sp:object _:b12 ;
668 - sp:predicate ddr:rigAliasRef ;
669 - sp:subject _:b11
670 - ] [ sp:object
671 - [ sp:varName "code"^^xsd:string
672 - ] ;
673 - sp:predicate ddr:name ;
674 - sp:subject _:b12
675 - ] [ rdf:type sp:Union ;
676 - sp:elements (([ sp:object "NPD Code"^^xsd:string ;
677 - sp:predicate ddr:namingSystem ;
678 - sp:subject _:b12
679 - ]) ([ sp:object "NPD code"^^xsd:string ;
680 - sp:predicate ddr:namingSystem ;
681 - sp:subject _:b12
682 - ]))
683 - ])
684 - ] [ rdf:type sp:Bind ;
685 - sp:expression
686 - [ rdf:type ep-spin-lib:normalizeString ;
687 - sp:arg1 _:b9
688 - ] ;
689 - sp:variable _:b13
690 ] [ rdf:type sp:Bind ; 760 ] [ rdf:type sp:Bind ;
691 sp:expression 761 sp:expression
692 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 762 + [ rdf:type ep-spin-lib:selectLengthScale ;
693 - sp:arg1 _:b13 ; 763 + sp:arg1 [ sp:varName "uom"^^xsd:string
694 - sp:arg2 _:b10 764 + ]
695 ] ; 765 ] ;
696 - sp:variable _:b7 766 + sp:variable
767 + [ sp:varName "lengthScale"^^xsd:string
768 + ]
697 ]) 769 ])
698 ] ; 770 ] ;
699 spin:rule 771 spin:rule
700 [ rdf:type sp:Construct ; 772 [ rdf:type sp:Construct ;
701 - rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ; 773 + rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
702 - sp:templates ([ sp:object _:b14 ; 774 + sp:templates ([ sp:object
703 - sp:predicate ep-activity:drillingContractor ; 775 + [ sp:varName "preSpudDate"^^xsd:string
776 + ] ;
777 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
704 sp:subject 778 sp:subject
705 - [ sp:varName "dailyDrillingActivity"^^xsd:string 779 + [ sp:varName "wellBore"^^xsd:string
706 ] 780 ]
707 - ] [ sp:object ep-org:Company ;
708 - sp:predicate rdf:type ;
709 - sp:subject _:b14
710 - ] [ sp:object
711 - [ sp:varName "nameContractor"^^xsd:string
712 - ] ;
713 - sp:predicate ep-core:name ;
714 - sp:subject _:b14
715 ]) ; 781 ]) ;
716 sp:where ([ sp:object 782 sp:where ([ sp:object
717 [ sp:varName "nameWellBore"^^xsd:string 783 [ sp:varName "nameWellBore"^^xsd:string
...@@ -729,91 +795,34 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -729,91 +795,34 @@ This rule processes data from statusInfo, but is here because it must be execute
729 sp:predicate ddr:wellboreInfoRef ; 795 sp:predicate ddr:wellboreInfoRef ;
730 sp:subject spin:_this 796 sp:subject spin:_this
731 ] [ sp:object 797 ] [ sp:object
732 - [ sp:varName "nameContractor"^^xsd:string 798 + [ sp:varName "preSpudDate"^^xsd:string
733 ] ; 799 ] ;
734 - sp:predicate ddr:drillContractor ; 800 + sp:predicate ddr:dTimPreSpud ;
735 sp:subject 801 sp:subject
736 [ sp:varName "wellboreInfo"^^xsd:string 802 [ sp:varName "wellboreInfo"^^xsd:string
737 ] 803 ]
738 - ] [ rdf:type sp:Bind ; 804 + ] [ sp:object
739 - sp:expression 805 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
740 - [ rdf:type ep-spin-lib:normalizeString ;
741 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
742 - ]
743 - ] ;
744 - sp:variable
745 - [ sp:varName "normalizedWellBoreName"^^xsd:string
746 - ]
747 - ] [ rdf:type sp:Bind ;
748 - sp:expression
749 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
750 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
751 - ] ;
752 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
753 - ]
754 ] ; 806 ] ;
755 - sp:variable 807 + sp:predicate ep-activity:onWellBore ;
808 + sp:subject
756 [ sp:varName "dailyDrillingActivity"^^xsd:string 809 [ sp:varName "dailyDrillingActivity"^^xsd:string
757 ] 810 ]
758 - ] [ rdf:type sp:Bind ; 811 + ] [ sp:object
759 - sp:expression 812 + [ sp:varName "wellBore"^^xsd:string
760 - [ rdf:type ep-spin-lib:normalizeString ;
761 - sp:arg1 [ sp:varName "nameContractor"^^xsd:string
762 - ]
763 - ] ;
764 - sp:variable
765 - [ sp:varName "normalizedContractorName"^^xsd:string
766 - ]
767 - ] [ rdf:type sp:Bind ;
768 - sp:expression
769 - [ rdf:type rhspin:companyById ;
770 - arg:id [ sp:varName "normalizedContractorName"^^xsd:string
771 - ]
772 - ] ;
773 - sp:variable
774 - [ sp:varName "contractor"^^xsd:string
775 - ]
776 - ])
777 ] ; 813 ] ;
778 - spin:rule 814 + sp:predicate ep-core:temporalPartOf ;
779 - [ rdf:type sp:Construct ;
780 - rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
781 - sp:templates ([ sp:object _:b15 ;
782 - sp:predicate ep-activity:drillingOperator ;
783 sp:subject 815 sp:subject
784 - [ sp:varName "dailyDrillingActivity"^^xsd:string 816 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
785 ] 817 ]
786 - ] [ sp:object ep-org:Company ; 818 + ] [ rdf:type sp:NamedGraph ;
819 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
787 sp:predicate rdf:type ; 820 sp:predicate rdf:type ;
788 - sp:subject _:b15
789 - ] [ sp:object
790 - [ sp:varName "nameOperator"^^xsd:string
791 - ] ;
792 - sp:predicate ep-core:name ;
793 - sp:subject _:b15
794 - ]) ;
795 - sp:where ([ sp:object
796 - [ sp:varName "nameWellBore"^^xsd:string
797 - ] ;
798 - sp:predicate ep-spin-lib:nameWellbore ;
799 - sp:subject spin:_this
800 - ] [ sp:object
801 - [ sp:varName "dTimStart"^^xsd:string
802 - ] ;
803 - sp:predicate ddr:dTimStart ;
804 - sp:subject spin:_this
805 - ] [ sp:object
806 - [ sp:varName "wellboreInfo"^^xsd:string
807 - ] ;
808 - sp:predicate ddr:wellboreInfoRef ;
809 - sp:subject spin:_this
810 - ] [ sp:object
811 - [ sp:varName "nameOperator"^^xsd:string
812 - ] ;
813 - sp:predicate ddr:operator ;
814 sp:subject 821 sp:subject
815 - [ sp:varName "wellboreInfo"^^xsd:string 822 + [ sp:varName "wellBore"^^xsd:string
816 ] 823 ]
824 + ]) ;
825 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
817 ] [ rdf:type sp:Bind ; 826 ] [ rdf:type sp:Bind ;
818 sp:expression 827 sp:expression
819 [ rdf:type ep-spin-lib:normalizeString ; 828 [ rdf:type ep-spin-lib:normalizeString ;
...@@ -837,34 +846,31 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -837,34 +846,31 @@ This rule processes data from statusInfo, but is here because it must be execute
837 ]) 846 ])
838 ] . 847 ] .
839 848
840 -_:b7 sp:varName "dailyDrillingActivity"^^xsd:string . 849 +[] rdf:type sp:Modify .
841 -
842 -_:b9 sp:varName "nameWellBore"^^xsd:string .
843 850
844 -_:b10 851 +[] rdf:type fn:starts-with .
845 - sp:varName "dTimStart"^^xsd:string .
846 852
847 -_:b11 853 +[] rdf:type smf:trim .
848 - sp:varName "wellboreInfo"^^xsd:string .
849 854
850 -_:b12 855 +[] rdf:type smf:regex .
851 - sp:varName "rigAlias"^^xsd:string .
852 856
853 -_:b13 857 +_:b10
854 sp:varName "normalizedWellBoreName"^^xsd:string . 858 sp:varName "normalizedWellBoreName"^^xsd:string .
855 859
856 -[] rdf:type sp:Modify . 860 +_:b9 sp:varName "rigAlias"^^xsd:string .
857 861
858 -[] rdf:type fn:starts-with . 862 +_:b8 sp:varName "wellboreInfo"^^xsd:string .
859 863
860 -[] rdf:type smf:trim . 864 +_:b7 sp:varName "dTimStart"^^xsd:string .
861 865
862 -[] rdf:type smf:regex . 866 +_:b6 sp:varName "nameWellBore"^^xsd:string .
863 867
864 -([] [] [ rdf:type sp:Filter 868 +_:b4 sp:varName "dailyDrillingActivity"^^xsd:string .
865 - ] [ rdf:type sp:Bind
866 - ]) .
867 869
868 ([]) . 870 ([]) .
869 871
870 ([]) . 872 ([]) .
873 +
874 +([] [] [ rdf:type sp:Filter
875 + ] [ rdf:type sp:Bind
876 + ]) .
......
1 -# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011
2 # baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest 1 # baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest
3 -# imports: http://www.reportinghub.no/np/data/npd
4 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
5 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector 3 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
6 4
...@@ -16,5 +14,5 @@ ...@@ -16,5 +14,5 @@
16 14
17 <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest> 15 <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest>
18 rdf:type owl:Ontology ; 16 rdf:type owl:Ontology ;
19 - owl:imports <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> , <http://spinrdf.org/spin> ; 17 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> ;
20 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 18 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011
2 # baseURI: null 1 # baseURI: null
3 2
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......