Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2011-10-17 21:29:46 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75765291d7dae8962b7732e4a08beefc314916c7
75765291
1 parent
cc623af5
Fixed dates in DDR HTML header
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
View file @
7576529
<ui:group
let:activity=
"{# SELECT ?activity WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity}}"
let:createdAt=
"{# SELECT ?createdAt WHERE {?report ep-report:createdAt ?createdAt}}"
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 } }"
...
...
@@ -7,9 +9,13 @@
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}}"
let:statusActivityWb=
"{# SELECT ?statusActivityWb WHERE {?activity a ep-activity:DailyDrillingActivity . ?report ep-report:reportOn ?activity . ?activity ep-core:hasPart ?statusActivity . ?statusActivity a ep-activity:DailyDrillingActivityToStatus . ?statusActivity ep-activity:onWellBore ?statusActivityWb}}"
>
<ui:group
>
<ui:group
let:activityStart=
"{# SELECT ?activityStart WHERE {?activity ep-activity:startedAt ?activityStart}}"
let:activityEnd=
"{# SELECT ?activityEnd WHERE {?activity ep-activity:finishedAt ?activityEnd}}"
let:spudDate=
"{# SELECT ?spudDate WHERE {?wb ep-well:wellBoreSpudAt ?spudDate}}"
>
<h1>
Summary report Wellbore: {# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}
</h1>
<div>
End time: {= ui:label(sp
l:object(?activity, ep-activity:finishedAt
)) }
</div>
<div>
End time: {= ui:label(sp
if:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm'
)) }
</div>
<hr
/>
<table><tr>
<td
class=
"ddrSummaryLeft"
>
...
...
@@ -18,7 +24,7 @@
<rhswp:NameValuePair
arg:name=
"Status:"
arg:value=
"{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}"
/>
<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=
"Spud date:"
arg:value=
"{
= spif:dateFormat(?spudDate, 'yyyy-MM-dd')
}"
/>
<rhswp:NameValuePair
arg:name=
"Elevation RKB-MSL m:"
arg:value=
"{# SELECT ?kellyElevMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}"
/>
<rhswp:NameValuePair
arg:name=
"Tight well:"
arg:value=
"{# SELECT ?wbTightTypeLabel WHERE { ?statusActivityWb a ?wbTightType . ?wbTightType a ep-well:WellBoreTightnessType . ?wbTightType rdfs:label ?wbTightTypeLabel} }"
/>
<rhswp:NameValuePair
arg:name=
"Pressure psig:"
arg:value=
"{# SELECT ?buttHolePresVal WHERE {?statusActivityWb ep-well:averageBottomHolePressure ?buttHolePres . ?buttHolePres ep-core:psig ?buttHolePresVal}}"
/>
...
...
@@ -32,9 +38,12 @@
<rhswp:NameValuePair
arg:name=
"Depth At Last Casing MTVD:"
arg:value=
"{# SELECT ?lastCasingDepthTvdVal WHERE {?statusActivityWb ep-core:hasPart ?lastCasing . ?lastCasing a ep-eqt:LastCasingOfAWellBore . ?lastCasing ep-well:trueVerticalDepth ?lastCasingDepthTvd . ?lastCasingDepthTvd ep-core:metre ?lastCasingDepthTvdVal}}"
/>
</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=
"Period:"
arg:value=
"{= fn:concat(ui:label(spif:dateFormat(?activityStart, 'yyyy-MM-dd HH:mm')), ' - ', ui:label(spif:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm'))) }"
/>
<rhswp:NameValuePair
arg:name=
"Wellbore Id:"
arg:value=
"{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}"
/>
<rhswp:NameValuePair
arg:name=
"Created date:"
arg:value=
"{
# SELECT ?createdAt WHERE {?report ep-report:createdAt ?createdAt}
}"
/>
<rhswp:NameValuePair
arg:name=
"Created date:"
arg:value=
"{
= spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm')
}"
/>
<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=
"{# SELECT ?completeDate WHERE {?wb ep-well:wellBoreCompletedAt ?completeDate}}"
/>
...
...
Please
register
or
login
to post a comment