Holger Knublauch

Progress on title page of report

1 # baseURI: http://www.reportinghub.no/spin/rh 1 # baseURI: http://www.reportinghub.no/spin/rh
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://topbraid.org/spin/spinmapl 3 # imports: http://topbraid.org/spin/spinmapl
4 +# imports: http://www.linkedmodel.org/schema/dtype
4 # imports: http://www.reportinghub.no/ep/schema/1.0/core 5 # imports: http://www.reportinghub.no/ep/schema/1.0/core
5 # imports: http://www.reportinghub.no/ep/schema/1.0/facility 6 # imports: http://www.reportinghub.no/ep/schema/1.0/facility
6 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 7 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
...@@ -34,6 +35,11 @@ ...@@ -34,6 +35,11 @@
34 rdfs:label "name"^^xsd:string ; 35 rdfs:label "name"^^xsd:string ;
35 rdfs:subPropertyOf sp:arg . 36 rdfs:subPropertyOf sp:arg .
36 37
38 +<http://spinrdf.org/arg#resource>
39 + rdf:type rdf:Property ;
40 + rdfs:label "resource"^^xsd:string ;
41 + rdfs:subPropertyOf sp:arg .
42 +
37 <http://spinrdf.org/arg#well> 43 <http://spinrdf.org/arg#well>
38 rdf:type rdf:Property ; 44 rdf:type rdf:Property ;
39 rdfs:label "well"^^xsd:string ; 45 rdfs:label "well"^^xsd:string ;
...@@ -56,7 +62,7 @@ npdata:npd ...@@ -56,7 +62,7 @@ npdata:npd
56 <http://www.reportinghub.no/spin/rh> 62 <http://www.reportinghub.no/spin/rh>
57 rdf:type owl:Ontology ; 63 rdf:type owl:Ontology ;
58 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; 64 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
59 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> ; 65 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.linkedmodel.org/schema/dtype> ;
60 owl:versionInfo "0.1.0"^^xsd:string . 66 owl:versionInfo "0.1.0"^^xsd:string .
61 67
62 rhspin:GetWellBoresOfWell 68 rhspin:GetWellBoresOfWell
...@@ -219,6 +225,35 @@ rhspin:discoveryById ...@@ -219,6 +225,35 @@ rhspin:discoveryById
219 spl:valueType xsd:string 225 spl:valueType xsd:string
220 ] . 226 ] .
221 227
228 +rhspin:dtypeValue
229 + rdf:type spin:Function ;
230 + rdfs:comment "Starting at a resource (?arg1) this gets an object via a property (?arg2) and from this object it gets the dtype:value."^^xsd:string ;
231 + rdfs:label "dtype value"^^xsd:string ;
232 + rdfs:subClassOf spl:OntologyFunctions ;
233 + spin:body
234 + [ rdf:type sp:Select ;
235 + sp:resultVariables (_:b10) ;
236 + sp:where ([ sp:object _:b11 ;
237 + sp:predicate spin:_arg2 ;
238 + sp:subject spin:_arg1
239 + ] [ sp:object _:b10 ;
240 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
241 + sp:subject _:b11
242 + ])
243 + ] ;
244 + spin:constraint
245 + [ rdf:type spl:Argument ;
246 + rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
247 + spl:predicate sp:arg2 ;
248 + spl:valueType rdf:Property
249 + ] ;
250 + spin:constraint
251 + [ rdf:type spl:Argument ;
252 + rdfs:comment "The subject of the value."^^xsd:string ;
253 + spl:predicate sp:arg1 ;
254 + spl:valueType rdfs:Resource
255 + ] .
256 +
222 rhspin:facilityById 257 rhspin:facilityById
223 rdf:type spin:Function ; 258 rdf:type spin:Function ;
224 rdfs:label "facility by id"^^xsd:string ; 259 rdfs:label "facility by id"^^xsd:string ;
...@@ -293,7 +328,7 @@ rhspin:normalizeString ...@@ -293,7 +328,7 @@ rhspin:normalizeString
293 rdfs:subClassOf spl:StringFunctions ; 328 rdfs:subClassOf spl:StringFunctions ;
294 spin:body 329 spin:body
295 [ rdf:type sp:Select ; 330 [ rdf:type sp:Select ;
296 - sp:resultVariables (_:b10) ; 331 + sp:resultVariables (_:b12) ;
297 sp:where ([ rdf:type sp:Bind ; 332 sp:where ([ rdf:type sp:Bind ;
298 sp:expression 333 sp:expression
299 [ rdf:type spif:regex ; 334 [ rdf:type spif:regex ;
...@@ -301,67 +336,67 @@ rhspin:normalizeString ...@@ -301,67 +336,67 @@ rhspin:normalizeString
301 sp:arg2 "\\((.*)\\)" ; 336 sp:arg2 "\\((.*)\\)" ;
302 sp:arg3 "" 337 sp:arg3 ""
303 ] ; 338 ] ;
304 - sp:variable _:b11 339 + sp:variable _:b13
305 ] [ rdf:type sp:Bind ; 340 ] [ rdf:type sp:Bind ;
306 sp:expression 341 sp:expression
307 [ rdf:type spif:trim ; 342 [ rdf:type spif:trim ;
308 - sp:arg1 _:b11 343 + sp:arg1 _:b13
309 ] ; 344 ] ;
310 - sp:variable _:b12 345 + sp:variable _:b14
311 ] [ rdf:type sp:Bind ; 346 ] [ rdf:type sp:Bind ;
312 sp:expression 347 sp:expression
313 [ rdf:type spif:encodeURL ; 348 [ rdf:type spif:encodeURL ;
314 - sp:arg1 _:b12 349 + sp:arg1 _:b14
315 ] ; 350 ] ;
316 - sp:variable _:b13 351 + sp:variable _:b15
317 ] [ rdf:type sp:Bind ; 352 ] [ rdf:type sp:Bind ;
318 sp:expression 353 sp:expression
319 [ rdf:type spif:regex ; 354 [ rdf:type spif:regex ;
320 - sp:arg1 _:b13 ; 355 + sp:arg1 _:b15 ;
321 sp:arg2 "%2F" ; 356 sp:arg2 "%2F" ;
322 sp:arg3 "_" 357 sp:arg3 "_"
323 ] ; 358 ] ;
324 - sp:variable _:b14 359 + sp:variable _:b16
325 ] [ rdf:type sp:Bind ; 360 ] [ rdf:type sp:Bind ;
326 sp:expression 361 sp:expression
327 [ rdf:type spif:regex ; 362 [ rdf:type spif:regex ;
328 - sp:arg1 _:b14 ; 363 + sp:arg1 _:b16 ;
329 sp:arg2 "%[0-9A-F][0-9A-F]" ; 364 sp:arg2 "%[0-9A-F][0-9A-F]" ;
330 sp:arg3 "" 365 sp:arg3 ""
331 ] ; 366 ] ;
332 - sp:variable _:b15 367 + sp:variable _:b17
333 ] [ rdf:type sp:Bind ; 368 ] [ rdf:type sp:Bind ;
334 sp:expression 369 sp:expression
335 [ rdf:type spif:regex ; 370 [ rdf:type spif:regex ;
336 - sp:arg1 _:b15 ; 371 + sp:arg1 _:b17 ;
337 sp:arg2 "\\+" ; 372 sp:arg2 "\\+" ;
338 sp:arg3 "_" 373 sp:arg3 "_"
339 ] ; 374 ] ;
340 - sp:variable _:b16 375 + sp:variable _:b18
341 ] [ rdf:type sp:Bind ; 376 ] [ rdf:type sp:Bind ;
342 sp:expression 377 sp:expression
343 [ rdf:type spif:regex ; 378 [ rdf:type spif:regex ;
344 - sp:arg1 _:b16 ; 379 + sp:arg1 _:b18 ;
345 sp:arg2 "_+" ; 380 sp:arg2 "_+" ;
346 sp:arg3 "_" 381 sp:arg3 "_"
347 ] ; 382 ] ;
348 - sp:variable _:b17 383 + sp:variable _:b19
349 ] [ rdf:type sp:Bind ; 384 ] [ rdf:type sp:Bind ;
350 sp:expression 385 sp:expression
351 [ rdf:type spif:regex ; 386 [ rdf:type spif:regex ;
352 - sp:arg1 _:b17 ; 387 + sp:arg1 _:b19 ;
353 sp:arg2 "\\*" ; 388 sp:arg2 "\\*" ;
354 sp:arg3 "" 389 sp:arg3 ""
355 ] ; 390 ] ;
356 - sp:variable _:b18 391 + sp:variable _:b20
357 ] [ rdf:type sp:Bind ; 392 ] [ rdf:type sp:Bind ;
358 sp:expression 393 sp:expression
359 [ rdf:type xsd:string ; 394 [ rdf:type xsd:string ;
360 sp:arg1 [ rdf:type spif:upperCase ; 395 sp:arg1 [ rdf:type spif:upperCase ;
361 - sp:arg1 _:b18 396 + sp:arg1 _:b20
362 ] 397 ]
363 ] ; 398 ] ;
364 - sp:variable _:b10 399 + sp:variable _:b12
365 ]) 400 ])
366 ] ; 401 ] ;
367 spin:constraint 402 spin:constraint
...@@ -371,6 +406,57 @@ rhspin:normalizeString ...@@ -371,6 +406,57 @@ rhspin:normalizeString
371 ] ; 406 ] ;
372 spin:returnType xsd:string . 407 spin:returnType xsd:string .
373 408
409 +rhspin:npdId
410 + rdf:type spin:Function ;
411 + rdfs:comment "Gets the NPD id of a given NPD resource."^^xsd:string ;
412 + rdfs:label "npd id"^^xsd:string ;
413 + rdfs:subClassOf spl:StringFunctions ;
414 + spin:body
415 + [ rdf:type sp:Select ;
416 + sp:resultVariables (_:b21) ;
417 + sp:where ([ rdf:type sp:NamedGraph ;
418 + sp:elements ([ sp:object _:b21 ;
419 + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
420 + sp:subject
421 + [ sp:varName "resource"^^xsd:string
422 + ]
423 + ]) ;
424 + sp:graphNameNode npdata:npd
425 + ])
426 + ] ;
427 + spin:constraint
428 + [ rdf:type spl:Argument ;
429 + rdfs:comment "The resource to get the npd:id of."^^xsd:string ;
430 + spl:predicate <http://spinrdf.org/arg#resource> ;
431 + spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual>
432 + ] .
433 +
434 +rhspin:npdName
435 + rdf:type spin:Function ;
436 + rdfs:comment "Gets the npd:name of a given resource in the NPD named graph."^^xsd:string ;
437 + rdfs:label "npd name"^^xsd:string ;
438 + rdfs:subClassOf spl:StringFunctions ;
439 + spin:body
440 + [ rdf:type sp:Select ;
441 + sp:resultVariables (_:b22) ;
442 + sp:where ([ rdf:type sp:NamedGraph ;
443 + sp:elements ([ sp:object _:b22 ;
444 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
445 + sp:subject
446 + [ sp:varName "resource"^^xsd:string
447 + ]
448 + ]) ;
449 + sp:graphNameNode npdata:npd
450 + ])
451 + ] ;
452 + spin:constraint
453 + [ rdf:type spl:Argument ;
454 + rdfs:comment "The NPD resource to get the name of."^^xsd:string ;
455 + spl:predicate <http://spinrdf.org/arg#resource> ;
456 + spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual>
457 + ] ;
458 + spin:returnType xsd:string .
459 +
374 rhspin:parentCompanyByName 460 rhspin:parentCompanyByName
375 rdf:type spin:Function ; 461 rdf:type spin:Function ;
376 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ; 462 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ;
...@@ -459,27 +545,27 @@ rhspin:wellBoreByName ...@@ -459,27 +545,27 @@ rhspin:wellBoreByName
459 rdfs:subClassOf spl:URIFunctions ; 545 rdfs:subClassOf spl:URIFunctions ;
460 spin:body 546 spin:body
461 [ rdf:type sp:Select ; 547 [ rdf:type sp:Select ;
462 - sp:resultVariables (_:b19) ; 548 + sp:resultVariables (_:b23) ;
463 sp:where ([ rdf:type sp:NamedGraph ; 549 sp:where ([ rdf:type sp:NamedGraph ;
464 sp:elements ([ rdf:type sp:Union ; 550 sp:elements ([ rdf:type sp:Union ;
465 - sp:elements (([ sp:object _:b20 ; 551 + sp:elements (([ sp:object _:b24 ;
466 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 552 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
467 - sp:subject _:b19 553 + sp:subject _:b23
468 ]) ([ rdf:type sp:Bind ; 554 ]) ([ rdf:type sp:Bind ;
469 sp:expression 555 sp:expression
470 [ rdf:type spif:replaceAll ; 556 [ rdf:type spif:replaceAll ;
471 - sp:arg1 _:b20 ; 557 + sp:arg1 _:b24 ;
472 sp:arg2 "/0" ; 558 sp:arg2 "/0" ;
473 sp:arg3 "/" 559 sp:arg3 "/"
474 ] ; 560 ] ;
475 - sp:variable _:b21 561 + sp:variable _:b25
476 - ] [ sp:object _:b21 ; 562 + ] [ sp:object _:b25 ;
477 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 563 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
478 - sp:subject _:b19 564 + sp:subject _:b23
479 ])) 565 ]))
480 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 566 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
481 sp:predicate rdf:type ; 567 sp:predicate rdf:type ;
482 - sp:subject _:b19 568 + sp:subject _:b23
483 ]) ; 569 ]) ;
484 sp:graphNameNode npdata:npd 570 sp:graphNameNode npdata:npd
485 ]) 571 ])
...@@ -518,46 +604,52 @@ rhspin:wellByName ...@@ -518,46 +604,52 @@ rhspin:wellByName
518 ] ; 604 ] ;
519 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . 605 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
520 606
521 -_:b2 sp:varName "wellBoreId"^^xsd:string . 607 +_:b10
522 - 608 + sp:varName "value"^^xsd:string .
523 -_:b1 sp:varName "wellBoreName"^^xsd:string .
524 609
525 -_:b3 sp:varName "wellBore"^^xsd:string . 610 +_:b11
611 + sp:varName "reif"^^xsd:string .
526 612
527 _:b21 613 _:b21
614 + sp:varName "id"^^xsd:string .
615 +
616 +_:b22
617 + sp:varName "name"^^xsd:string .
618 +
619 +_:b25
528 sp:varName "str"^^xsd:string . 620 sp:varName "str"^^xsd:string .
529 621
530 -_:b20 622 +_:b24
531 sp:varName "wellBoreName"^^xsd:string . 623 sp:varName "wellBoreName"^^xsd:string .
532 624
533 -_:b19 625 +_:b23
534 sp:varName "wellBore"^^xsd:string . 626 sp:varName "wellBore"^^xsd:string .
535 627
536 -_:b18 628 +_:b20
537 sp:varName "t4"^^xsd:string . 629 sp:varName "t4"^^xsd:string .
538 630
539 -_:b17 631 +_:b19
540 sp:varName "t3"^^xsd:string . 632 sp:varName "t3"^^xsd:string .
541 633
542 -_:b16 634 +_:b18
543 sp:varName "t2"^^xsd:string . 635 sp:varName "t2"^^xsd:string .
544 636
545 -_:b15 637 +_:b17
546 sp:varName "t1"^^xsd:string . 638 sp:varName "t1"^^xsd:string .
547 639
548 -_:b14 640 +_:b16
549 sp:varName "t0b"^^xsd:string . 641 sp:varName "t0b"^^xsd:string .
550 642
551 -_:b13 643 +_:b15
552 sp:varName "t0a"^^xsd:string . 644 sp:varName "t0a"^^xsd:string .
553 645
554 -_:b12 646 +_:b14
555 sp:varName "s2"^^xsd:string . 647 sp:varName "s2"^^xsd:string .
556 648
557 -_:b11 649 +_:b13
558 sp:varName "s1"^^xsd:string . 650 sp:varName "s1"^^xsd:string .
559 651
560 -_:b10 652 +_:b12
561 sp:varName "normalizedStr"^^xsd:string . 653 sp:varName "normalizedStr"^^xsd:string .
562 654
563 _:b9 sp:varName "endDate"^^xsd:string . 655 _:b9 sp:varName "endDate"^^xsd:string .
...@@ -571,3 +663,9 @@ _:b6 sp:varName "share"^^xsd:string . ...@@ -571,3 +663,9 @@ _:b6 sp:varName "share"^^xsd:string .
571 _:b5 sp:varName "nowDate"^^xsd:string . 663 _:b5 sp:varName "nowDate"^^xsd:string .
572 664
573 _:b4 sp:varName "wellBore"^^xsd:string . 665 _:b4 sp:varName "wellBore"^^xsd:string .
666 +
667 +_:b3 sp:varName "wellBore"^^xsd:string .
668 +
669 +_:b2 sp:varName "wellBoreId"^^xsd:string .
670 +
671 +_:b1 sp:varName "wellBoreName"^^xsd:string .
......
1 -<html let:reportOn="{= spl:object(?this, ep-activity:reportOn) }"> 1 +<html let:activity="{= spl:object(?this, ep-activity:reportOn) }"
2 + let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }"
3 + let:report="{= ?this }">
2 <head> 4 <head>
3 <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" /> 5 <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" />
4 </head> 6 </head>
5 - <body> 7 + <body let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }">
6 - <h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }</h1> 8 + <h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</h1>
7 - <div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div> 9 + <div>End time: {= ui:label(spl:object(?activity, ep-activity:finishedAt)) }</div>
8 <hr /> 10 <hr />
9 <table><tr> 11 <table><tr>
10 <td class="ddrSummaryLeft"> 12 <td class="ddrSummaryLeft">
11 - <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> 13 + <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" />
12 - <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }" /> 14 + <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= rhspin:npdName(?wellBore) }" />
13 - <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> 15 + <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" />
14 - <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> 16 + <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" />
15 - <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> 17 + <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" />
16 - <rhswp:NameValuePair arg:name="Spud date:" arg:value="{ spl:object(?this, ???) }" /> 18 + <rhswp:NameValuePair arg:name="Spud date:" arg:value="{ spl:object(?this, ???) }" />
17 - <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{ spl:object(?this, ???) }" /> 19 + <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{ spl:object(?this, ???) }" />
18 - <rhswp:NameValuePair arg:name="Tight well:" arg:value="{ spl:object(?this, ???) }" /> 20 + <rhswp:NameValuePair arg:name="Tight well:" arg:value="{ spl:object(?this, ???) }" />
19 - <rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{ spl:object(?this, ???) }" /> 21 + <rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{ spl:object(?this, ???) }" />
20 - <rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" /> 22 + <rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" />
21 - <rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{ spl:object(?this, ???) }" /> 23 + <rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdKickoff) }" />
22 - <rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{ spl:object(?this, ???) }" /> 24 + <rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdPlugTop) }" />
23 - <rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{ spl:object(?this, ???) }" /> 25 + <rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{ spl:object(?activity, ???) }" />
24 - <rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{ spl:object(?this, ???) }" /> 26 + <rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{ spl:object(?this, ???) }" />
25 - <rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{ spl:object(?this, ???) }" /> 27 + <rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdStrengthForm) }" />
26 - <rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{ spl:object(?this, ???) }" /> 28 + <rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{ spl:object(?this, ???) }" />
27 - <rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{ spl:object(?this, ???) }" /> 29 + <rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdCsgLast) }" />
28 - </td> 30 + </td>
29 - <td class="ddrSummaryRight"> 31 + <td class="ddrSummaryRight">
30 - <rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?reportOn, ep-activity:startedAt)), ' - ', ui:label(spl:object(?reportOn, ep-activity:finishedAt))) }" /> 32 + <rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?activity, ep-activity:startedAt)), ' - ', ui:label(spl:object(?activity, ep-activity:finishedAt))) }" />
31 - <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{ SELECT ?wellBoreId WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/??? ?wellBoreId } }" /> 33 + <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= rhspin:npdId(?wellBore) }" />
32 - <rhswp:NameValuePair arg:name="Created date:" arg:value="{ spl:object(?this, ep-activity:createdAt) }" /> 34 + <rhswp:NameValuePair arg:name="Created date:" arg:value="{= spl:object(?this, ep-activity:createdAt) }" />
33 - <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" /> 35 + <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" />
34 - <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" /> 36 + <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" />
35 - <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" /> 37 + <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" />
36 - <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{ spl:object(?this, ???) }" /> 38 + <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{ spl:object(?this, ???) }" />
37 - <rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{ spl:object(?this, ???) }" /> 39 + <rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{ spl:object(?this, ???) }" />
38 - <rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{ spl:object(?this, ???) }" /> 40 + <rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{ spl:object(?this, ???) }" />
39 - <rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{ spl:object(?this, ???) }" /> 41 + <rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{ spl:object(?this, ???) }" />
40 - <rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{ spl:object(?this, ???) }" /> 42 + <rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= spl:object(?activity, ddr:tvdKickoff) }" />
41 - <rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{ spl:object(?this, ???) }" /> 43 + <rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvd) }" />
42 - <rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{ spl:object(?this, ???) }" /> 44 + <rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= rhspin:dtypeValue(?activity, ddr:distDrill) }" />
43 - <rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{ spl:object(?this, ???) }" /> 45 + <rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdDiaHoleStart) }" />
44 - <rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{ spl:object(?this, ???) }" /> 46 + <rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdStrengthForm) }" />
45 - <rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{ spl:object(?this, ???) }" /> 47 + <rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{ spl:object(?this, ???) }" />
46 - <rhswp:NameValuePair arg:name="Depth At Last Casting mMD:" arg:value="{ spl:object(?this, ???) }" /> 48 + <rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdCsgLast) }" />
47 - </td> 49 + </td>
48 </tr></table> 50 </tr></table>
49 </body> 51 </body>
50 </html> 52 </html>
...\ No newline at end of file ...\ No newline at end of file
......
1 -<ui:group>
2 - <h1>Summary report Wellbore: {= spl:object(?this, ddr:nameWell) }</h1>
3 - <div>End time: {= ui:label(spl:object(?this, ddr:dTimEnd)) }</div>
4 - <hr />
5 - <div class="ddrSummaryLeft">
6 - <rhswp:NameValuePair arg:name="Report Number:" arg:value="{= spl:object(?this, ???) }" />
7 - <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= spl:object(?this, ???) }" />
8 - <rhswp:NameValuePair arg:name="Status:" arg:value="{= spl:object(?this, ???) }" />
9 - <rhswp:NameValuePair arg:name="Operator:" arg:value="{= spl:object(?this, ???) }" />
10 - <rhswp:NameValuePair arg:name="Rig name:" arg:value="{= spl:object(?this, ???) }" />
11 - <rhswp:NameValuePair arg:name="Spud date:" arg:value="{= spl:object(?this, ???) }" />
12 - <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{= spl:object(?this, ???) }" />
13 - <rhswp:NameValuePair arg:name="Tight well:" arg:value="{= spl:object(?this, ???) }" />
14 - <rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{= spl:object(?this, ???) }" />
15 - <rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{= spl:object(?this, ???) }" />
16 - <rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= spl:object(?this, ???) }" />
17 - <rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= spl:object(?this, ???) }" />
18 - <rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= spl:object(?this, ???) }" />
19 - <rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{= spl:object(?this, ???) }" />
20 - <rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= spl:object(?this, ???) }" />
21 - <rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{= spl:object(?this, ???) }" />
22 - <rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= spl:object(?this, ???) }" />
23 - </div>
24 - <div class="ddrSummaryRight">
25 - <rhswp:NameValuePair arg:name="Period:" arg:value="{= spl:object(?this, ???) }" />
26 - <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= spl:object(?this, ???) }" />
27 - <rhswp:NameValuePair arg:name="Created date:" arg:value="{= spl:object(?this, ???) }" />
28 - <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{= spl:object(?this, ???) }" />
29 - <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?this, ???) }" />
30 - <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= spl:object(?this, ???) }" />
31 - <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{= spl:object(?this, ???) }" />
32 - <rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{= spl:object(?this, ???) }" />
33 - <rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{= spl:object(?this, ???) }" />
34 - <rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{= spl:object(?this, ???) }" />
35 - <rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= spl:object(?this, ???) }" />
36 - <rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= spl:object(?this, ???) }" />
37 - <rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= spl:object(?this, ???) }" />
38 - <rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= spl:object(?this, ???) }" />
39 - <rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= spl:object(?this, ???) }" />
40 - <rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{= spl:object(?this, ???) }" />
41 - <rhswp:NameValuePair arg:name="Depth At Last Casting mMD:" arg:value="{= spl:object(?this, ???) }" />
42 - </div>
43 -</ui:group>
...\ No newline at end of file ...\ No newline at end of file