David Price

Merge branch 'WorkDDRHTMLTable1'

1 -# Saved by TopBraid on Mon Aug 15 02:53:37 BST 2011 1 +# Saved by TopBraid on Tue Sep 20 22:22:36 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables 2 # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables
3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr 4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
15 @prefix spl: <http://spinrdf.org/spl#> . 15 @prefix spl: <http://spinrdf.org/spl#> .
16 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 16 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
17 17
18 +<http://www.reportinghub.no/ep/spin/ddr-tables>
19 + rdf:type owl:Ontology ;
20 + rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
21 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
22 + owl:versionInfo "0.1.0"^^xsd:string .
23 +
18 ddr-tables:BitRecord 24 ddr-tables:BitRecord
19 rdf:type rhspin:TableTemplate ; 25 rdf:type rhspin:TableTemplate ;
20 rdfs:label "Bit Record"^^xsd:string ; 26 rdfs:label "Bit Record"^^xsd:string ;
...@@ -87,7 +93,7 @@ ddr-tables:EquipmentFailure ...@@ -87,7 +93,7 @@ ddr-tables:EquipmentFailure
87 ] [ sp:varName "repairedTime"^^xsd:string 93 ] [ sp:varName "repairedTime"^^xsd:string
88 ] _:b11) ; 94 ] _:b11) ;
89 sp:where ([ sp:object _:b12 ; 95 sp:where ([ sp:object _:b12 ;
90 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; 96 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
91 sp:subject 97 sp:subject
92 [ sp:varName "report"^^xsd:string 98 [ sp:varName "report"^^xsd:string
93 ] 99 ]
...@@ -216,11 +222,11 @@ ddr-tables:Operations ...@@ -216,11 +222,11 @@ ddr-tables:Operations
216 [ rdf:type sp:Select ; 222 [ rdf:type sp:Select ;
217 sp:orderBy (_:b32) ; 223 sp:orderBy (_:b32) ;
218 sp:resultVariables (_:b32 _:b33 [ sp:varName "startDepth"^^xsd:string 224 sp:resultVariables (_:b32 _:b33 [ sp:varName "startDepth"^^xsd:string
219 - ] [ sp:varName "endDepth"^^xsd:string 225 + ] _:b34 [ sp:varName "depth"^^xsd:string
220 - ] _:b34 _:b35 [ sp:varName "state"^^xsd:string 226 + ] _:b35 [ sp:varName "state"^^xsd:string
221 ] _:b36) ; 227 ] _:b36) ;
222 sp:where ([ sp:object _:b37 ; 228 sp:where ([ sp:object _:b37 ;
223 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; 229 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
224 sp:subject 230 sp:subject
225 [ sp:varName "report"^^xsd:string 231 [ sp:varName "report"^^xsd:string
226 ] 232 ]
...@@ -228,10 +234,10 @@ ddr-tables:Operations ...@@ -228,10 +234,10 @@ ddr-tables:Operations
228 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 234 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
229 sp:subject _:b37 235 sp:subject _:b37
230 ] [ sp:object _:b32 ; 236 ] [ sp:object _:b32 ;
231 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 237 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
232 sp:subject _:b38 238 sp:subject _:b38
233 ] [ sp:object _:b33 ; 239 ] [ sp:object _:b33 ;
234 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; 240 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
235 sp:subject _:b38 241 sp:subject _:b38
236 ] [ rdf:type sp:Optional ; 242 ] [ rdf:type sp:Optional ;
237 sp:elements ([ sp:object _:b35 ; 243 sp:elements ([ sp:object _:b35 ;
...@@ -246,30 +252,49 @@ ddr-tables:Operations ...@@ -246,30 +252,49 @@ ddr-tables:Operations
246 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 252 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
247 sp:subject _:b38 253 sp:subject _:b38
248 ] [ sp:object _:b40 ; 254 ] [ sp:object _:b40 ;
249 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; 255 + sp:predicate <http://www.reportinghub.no/ep/schema/well#finalBottomHoleMeasuredDepth> ;
250 sp:subject _:b39 256 sp:subject _:b39
251 ] [ sp:object _:b34 ; 257 ] [ sp:object _:b34 ;
252 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 258 + sp:predicate <http://www.reportinghub.no/ep/schema/core#undefinedScale> ;
253 sp:subject _:b40 259 sp:subject _:b40
254 ]) 260 ])
255 ] [ rdf:type sp:Optional ; 261 ] [ rdf:type sp:Optional ;
256 sp:elements ([ sp:object _:b36 ; 262 sp:elements ([ sp:object _:b36 ;
257 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ; 263 + sp:predicate rdfs:comment ;
258 sp:subject _:b38 264 sp:subject _:b38
259 ]) 265 ])
260 ]) 266 ])
261 ] ; 267 ] ;
262 rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) . 268 rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) .
263 269
264 -<http://www.reportinghub.no/ep/spin/ddr-tables> 270 +_:b11
265 - rdf:type owl:Ontology ; 271 + sp:varName "failureDescription"^^xsd:string .
266 - rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
267 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ;
268 - owl:versionInfo "0.1.0"^^xsd:string .
269 272
270 -_:b40 273 +_:b10
274 + sp:varName "depthTVD"^^xsd:string .
275 +
276 +_:b16
277 + sp:varName "tvd"^^xsd:string .
278 +
279 +_:b9 sp:varName "depthMD"^^xsd:string .
280 +
281 +_:b15
271 sp:varName "md"^^xsd:string . 282 sp:varName "md"^^xsd:string .
272 283
284 +_:b14
285 + sp:varName "wellbore"^^xsd:string .
286 +
287 +_:b8 sp:varName "startTime"^^xsd:string .
288 +
289 +_:b13
290 + sp:varName "part"^^xsd:string .
291 +
292 +_:b12
293 + sp:varName "reportOn"^^xsd:string .
294 +
295 +_:b40
296 + sp:varName "ed"^^xsd:string .
297 +
273 _:b39 298 _:b39
274 sp:varName "wellbore"^^xsd:string . 299 sp:varName "wellbore"^^xsd:string .
275 300
...@@ -286,7 +311,7 @@ _:b35 ...@@ -286,7 +311,7 @@ _:b35
286 sp:varName "activity"^^xsd:string . 311 sp:varName "activity"^^xsd:string .
287 312
288 _:b34 313 _:b34
289 - sp:varName "depth"^^xsd:string . 314 + sp:varName "endDepth"^^xsd:string .
290 315
291 _:b33 316 _:b33
292 sp:varName "endTime"^^xsd:string . 317 sp:varName "endTime"^^xsd:string .
...@@ -294,86 +319,61 @@ _:b33 ...@@ -294,86 +319,61 @@ _:b33
294 _:b32 319 _:b32
295 sp:varName "startTime"^^xsd:string . 320 sp:varName "startTime"^^xsd:string .
296 321
297 -_:b16 322 +_:b31
298 - sp:varName "tvd"^^xsd:string . 323 + sp:varName "yp"^^xsd:string .
299 -
300 -_:b15
301 - sp:varName "md"^^xsd:string .
302 -
303 -_:b14
304 - sp:varName "wellbore"^^xsd:string .
305 -
306 -_:b13
307 - sp:varName "part"^^xsd:string .
308 -
309 -_:b12
310 - sp:varName "reportOn"^^xsd:string .
311 -
312 -_:b11
313 - sp:varName "failureDescription"^^xsd:string .
314 -
315 -_:b10
316 - sp:varName "depthTVD"^^xsd:string .
317 -
318 -_:b9 sp:varName "depthMD"^^xsd:string .
319 -
320 -_:b8 sp:varName "startTime"^^xsd:string .
321 -
322 -_:b7 sp:varName "md"^^xsd:string .
323 -
324 -_:b6 sp:varName "wellbore"^^xsd:string .
325 -
326 -_:b5 sp:varName "part"^^xsd:string .
327 324
328 -_:b4 sp:varName "reportOn"^^xsd:string . 325 +_:b30
326 + sp:varName "pv"^^xsd:string .
329 327
330 -_:b3 sp:varName "remark"^^xsd:string . 328 +_:b29
329 + sp:varName "density"^^xsd:string .
331 330
332 -_:b2 sp:varName "activity"^^xsd:string . 331 +_:b28
332 + sp:varName "pressure"^^xsd:string .
333 333
334 -_:b1 sp:varName "depth"^^xsd:string . 334 +_:b27
335 + sp:varName "md"^^xsd:string .
335 336
336 -_:b22 337 +_:b26
337 - sp:varName "ypVal"^^xsd:string . 338 + sp:varName "activity"^^xsd:string .
338 339
339 -_:b31 340 +_:b25
340 - sp:varName "yp"^^xsd:string . 341 + sp:varName "part"^^xsd:string .
341 342
342 -_:b18 343 +_:b24
343 - sp:varName "type"^^xsd:string . 344 + sp:varName "reportOn"^^xsd:string .
344 345
345 _:b23 346 _:b23
346 sp:varName "pvVal"^^xsd:string . 347 sp:varName "pvVal"^^xsd:string .
347 348
348 -_:b30 349 +_:b22
349 - sp:varName "pv"^^xsd:string . 350 + sp:varName "ypVal"^^xsd:string .
350 351
351 _:b21 352 _:b21
352 sp:varName "densityVal"^^xsd:string . 353 sp:varName "densityVal"^^xsd:string .
353 354
354 -_:b29
355 - sp:varName "density"^^xsd:string .
356 -
357 _:b20 355 _:b20
358 sp:varName "pressureVal"^^xsd:string . 356 sp:varName "pressureVal"^^xsd:string .
359 357
360 -_:b28
361 - sp:varName "pressure"^^xsd:string .
362 -
363 _:b19 358 _:b19
364 sp:varName "depth"^^xsd:string . 359 sp:varName "depth"^^xsd:string .
365 360
366 -_:b27 361 +_:b18
367 - sp:varName "md"^^xsd:string . 362 + sp:varName "type"^^xsd:string .
368 -
369 -_:b26
370 - sp:varName "activity"^^xsd:string .
371 363
372 _:b17 364 _:b17
373 sp:varName "time"^^xsd:string . 365 sp:varName "time"^^xsd:string .
374 366
375 -_:b25 367 +_:b7 sp:varName "md"^^xsd:string .
376 - sp:varName "part"^^xsd:string .
377 368
378 -_:b24 369 +_:b6 sp:varName "wellbore"^^xsd:string .
379 - sp:varName "reportOn"^^xsd:string . 370 +
371 +_:b5 sp:varName "part"^^xsd:string .
372 +
373 +_:b4 sp:varName "reportOn"^^xsd:string .
374 +
375 +_:b3 sp:varName "remark"^^xsd:string .
376 +
377 +_:b2 sp:varName "activity"^^xsd:string .
378 +
379 +_:b1 sp:varName "depth"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 15 02:53:38 BST 2011 1 +# Saved by TopBraid on Tue Sep 20 22:22:36 BST 2011
2 # baseURI: null 2 # baseURI: null
3 3
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......