DailyDrillingReport.uispin.html
8.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<ui:group
let:activity="{# SELECT ?activity WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity}}"
let:wbPart="{# SELECT ?wbPart WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-activity:onWellBore ?wbPart}}"
let:wb="{# SELECT ?wb WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-activity:onWellBore ?wbPart . ?wbPart ep-core:temporalPartOf ?wb}}"
let:rig="{# SELECT ?rig WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-activity:onRig/ep-core:temporalPartOf ?rig } }"
let:firstActivity="{# SELECT ?firstActivity WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-core:hasPart ?firstActivity . ?firstActivity a ep-activity:DrillingActivity . ?firstActivity ep-activity:startedAt ?startedAt} ORDER BY (?startedAt) LIMIT 1}"
let:lastActivity="{# SELECT ?firstActivity WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-core:hasPart ?firstActivity . ?firstActivity a ep-activity:DrillingActivity . ?firstActivity ep-activity:startedAt ?startedAt} ORDER BY DESC(?startedAt) LIMIT 1}"
let:statusActivity="{# SELECT ?statusActivity WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-core:hasPart ?statusActivity . ?statusActivity a ep-activity:DailyDrillingActivityToStatus}}" >
<ui:group >
<h1>Summary report Wellbore: {# SELECT ?wbName WHERE {?wb ep-core:name ?wbName}}</h1>
<div>End time: {= ui:label(spl:object(?activity, ep-activity:finishedAt)) }</div>
<hr />
<table><tr>
<td class="ddrSummaryLeft">
<rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repName WHERE {?report ep-core:name ?repName}}" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:name ?wbName}}" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{TBD}" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingOperator ?opCo . ?opCo ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName }}" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{# SELECT ?spudDate WHERE {?wb ep-well:wellBoreSpudAt ?spudDate}}" />
<rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:elevKelly) }" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{# SELECT ?wbTightTypeLabel WHERE { ?wb a ?wbTightType . ?wbTightType a ep-well:WellBoreTightnessType . ?wbTightType rdfs:label ?wbTightTypeLabel} }" />
<rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:avgPresBH) }" />
<rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{# SELECT ?rigTypeName WHERE {?rig a ?rigType . ?rigType rdfs:label ?rigTypeName . ?rigType rdfs:subClassOf ep-fac:Rig}}" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{# SELECT ?koDepth WHERE {?wb ep-core:hasPart ?koWb . ?koWb a ep-well:WellBoreKickOff . ?koWb ep-well:measuredDepth ?measDepth . ?measDepth ep-core:metre ?koDepth}}" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdPlugTop) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= rhspin:dtypeValue(?activity, ddr:ropCurrent) }" />
<rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{# SELECT ui:label(?pressureTestType) WHERE { ?activity ep-core:hasPart/rdf:type ?pressureTestType . ?pressureTestType a ep-activity:PressureTestType} }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:diaCsgLast) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdCsgLast) }" />
</td>
<td class="ddrSummaryRight">
<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))) }" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb npd:id ?wbID}}" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{# SELECT ?createdAt WHERE {?report ep-report:createdAt ?createdAt}}" />
<rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName}}" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" />
<rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= ui:label(spl:object(?wellBore, ddr:dateDrillComplete)) }" />
<rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:waterDepth) }" />
<rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{# SELECT ui:label(?wellBoreHphtType) WHERE { ?temporalPartOfAWellBore rdf:type ?wellBoreHphtType . ?wellBoreHphtType a ep-well:WellBoreHphtType} }" />
<rhswp:NameValuePair arg:name="Temperature degC:" arg:value="{= rhspin:dtypeValue(?tefdmporalPartOfAWellBore, ddr:avgTempBH) }" />
<rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{# SELECT ?wbTypeName WHERE {?wb a ?wbType . ?wbType rdfs:label ?wbTypeName}}" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvdKickoff) }" />
<rhswp:NameValuePair arg:name="Depth mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:md) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvd) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= rhspin:dtypeValue(?dailyDrillingActivity, ep-activity:distanceDrilled/ep-core:metre) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:diaHole) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:strengthForm) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:tvdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?temporalPartOfAWellBore, ddr:mdCsgLast) }" />
</td>
</tr></table>
<hr />
<h2>Summary of Activity (24 Hours)</h2>
<p>{# SELECT ?summaryText WHERE {?statusActivity ep-activity:descriptionOfActivitiesWithinTheDailyReportingPeriod ?summaryText}}</p>
<hr />
<h2>Summary of Planned Activity (Next 24 Hours)</h2>
<p>{# SELECT ?plannedText WHERE {?statusActivity ep-activity:descriptionOfActivitiesForecastForTheNextDailyReportingPeriod ?plannedText}}</p>
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:Operations" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:EquipmentFailure" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:BitRecord" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:CasingLinerTubingInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:CementInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:CementFluidInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:PorePressure" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:SurveyStation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:LogInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:CoreInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:WellTestInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:FormationTest" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:StratigraphicInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:LithologyInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:WellControlIncident" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:PerforationInformation" />
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:GasReadingInformation" />
</ui:group>
</ui:group>