MonkeyChap

Edited HTML

No preview for this file type
<ui:group
let:activity="{= spl:object(?report, ep-activity:reportOn) }"
let:wb="{# SELECT ?wb WHERE {?activity ep-activity:onWellBore ?wbPart . ?wpPart ep-core:temporalPartOf ?wb}}"
let:wbName="{# SELECT ?wbName WHERE {?wb ep-core:name ?wbName}}"
let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }"
let:rig="{# SELECT ?rig WHERE { ?report ep-activity:reportOn/ep-activity:onRig/ep-core:temporalPartOf ?rig } }">
<ui:group let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }">
<h1>Summary report Wellbore: {= ?wbName }</h1>
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="{= ?wbName}" />
<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 ui:label(?wellBoreTightnessType) WHERE { ?temporalPartOfAWellBore rdf:type ?wellBoreTightnessType . ?wellBoreTightnessType a ep-well:WellBoreTightnessType} }" />
<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="{= rhspin:dtypeValue(?onWellBore, ddr:mdKickoff) }" />
<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:undefinedScale ?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} }" />
......@@ -31,7 +33,7 @@
<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="{= ui:label(spl:object(?this, ep-activity:createdAt)) }" />
<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)) }" />
......@@ -51,10 +53,10 @@
</tr></table>
<hr />
<h2>Summary of Activity (24 Hours)</h2>
<p>{# SELECT ?descText WHERE {?activity ep-activity:descriptionOfActivitiesFollowingTheDailyReportingPeriod ?desc . ?desc ep-report:hasContent ?descText}}</p>
<p>{# SELECT ?summaryText WHERE {?statusActivity ep-activity:descriptionOfActivitiesWithinTheDailyReportingPeriod ?summaryText}}</p>
<hr />
<h2>Summary of Planned Activity (Next 24 Hours)</h2>
<p>{= spl:object(?dailyDrillingActivity, ddr:forecast24Hr) }</p>
<p>{# SELECT ?plannedText WHERE {?statusActivity ep-activity:descriptionOfActivitiesForecastForTheNextDailyReportingPeriod ?plannedText}}</p>
<ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:Operations" />
......