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
Holger Knublauch
2011-10-19 10:49:23 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6babe168c038836dd0c1d6695bfafcdf195a5d35
6babe168
1 parent
324b8c37
Replaced smf: function calls with SPARQL built-ins
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
View file @
6babe16
...
...
@@ -17,7 +17,7 @@
>
<h1>
Summary report Wellbore: {# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}
</h1>
<div>
End time:
{= smf:if(smf:isBound(?activityEnd),spif:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm')) }
</div>
<div>
End time:
<ui:if
ui:condition=
"{= bound(?activityEnd) }"
>
{= spif:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm') }
</ui:if>
</div>
<hr
/>
<table>
...
...
@@ -28,7 +28,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=
"{=
smf:if(smf:isBound(?spudDate),spif:dateFormat(?spudDate, 'yyyy-MM-dd')
) }"
/>
<rhswp:NameValuePair
arg:name=
"Spud date:"
arg:value=
"{=
IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound
) }"
/>
<rhswp:NameValuePair
arg:name=
"Elevation RKB-MSL m:"
arg:value=
"{# SELECT ?kellyElevVMeas 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}}"
/>
...
...
@@ -47,10 +47,10 @@
<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=
"{=
smf:if(smf:isBound(?createdAt),spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm')
) }"
/>
<rhswp:NameValuePair
arg:name=
"Created date:"
arg:value=
"{=
IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound
) }"
/>
<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=
"{=
smf:if(smf:isBound(?completeDate),spif:dateFormat(?completeDate, 'yyyy-MM-dd')
) }"
/>
<rhswp:NameValuePair
arg:name=
"Date Well Complete:"
arg:value=
"{=
IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound
) }"
/>
<rhswp:NameValuePair
arg:name=
"Water depth MSL m:"
arg:value=
"{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}"
/>
<rhswp:NameValuePair
arg:name=
"High pressure - High temperature:"
arg:value=
"{# SELECT ?wbPTTypeLabel WHERE { ?statusActivityWb a ?wbPTType . ?wbPTType a ep-well:WellBoreHphtType . ?wbPTType rdfs:label ?wbPTTypeLabel} }"
/>
<rhswp:NameValuePair
arg:name=
"Temperature degC:"
arg:value=
"{# SELECT ?buttHoleTempVal WHERE {?statusActivityWb ep-well:averageBottomHoleTemperature ?buttHoleTemp . ?buttHoleTemp ep-core:celsius ?buttHoleTempVal}}"
/>
...
...
Please
register
or
login
to post a comment