Ralph Hodgson

Merge branch 'refs/heads/master' of [email protected]:TopQuadrant/EPIM-Ontologies.git

......@@ -27,7 +27,7 @@
<div id="content">
<h3>Download a Daily Drilling Report</h3>
<form action="ddrFileDownload">
<form action="download-report">
<table>
<tr>
......@@ -58,16 +58,18 @@
<td style="padding-left:20px; vertical-align: top">
<div>
<div class="formHeader">2. Select Well Bore:</div>
<select size="5" id="wellBoreSelect" style="width:200px">
<select size="5" id="wellBoreSelect" name="wellboreId" style="width:200px">
</select>
</div><br />
<div>
<div class="formHeader">3. Select Date(s):</div>
<input type="text" id="datepicker1" name="date1" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="date2" style="width: 90px" />
<input type="hidden" name="timeFrom" id="timeFrom" />
<input type="hidden" name="timeTo" id="timeTo" />
<input type="text" id="datepicker1" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" style="width: 90px" />
<script>
$(function() {
$("#datepicker1").datepicker();
$("#datepicker2").datepicker();
$("#datepicker1").datepicker({ altField: '#timeFrom' , altFormat: 'yy-mm-dd' });
$("#datepicker2").datepicker({ altField: '#timeTo' , altFormat: 'yy-mm-dd' });
});
</script>
</div>
......
......@@ -10,7 +10,7 @@
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix dm: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
@prefix npd: <http://www.reportinghub.no/schema/npd#> .
@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
@prefix npdMap: <http://www.reportinghub.no/1.1/schema/NPD-to-15926#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......
<html let:reportOn="{= spl:object(?this, ep-activity:reportOn) }">
<html let:activity="{= spl:object(?this, ep-activity:reportOn) }"
let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }"
let:report="{= ?this }">
<head>
<link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" />
</head>
<body>
<h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }</h1>
<div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div>
<body let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }">
<h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</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="{ spl:object(?this, ?) }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= rhspin:npdName(?wellBore) }" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" />
......@@ -18,18 +20,18 @@
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdKickoff) }" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdPlugTop) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{ spl:object(?activity, ???) }" />
<rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{ spl:object(?this, ???) }" />
<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="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{ spl:object(?this, ???) }" />
<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(?reportOn, ep-activity:startedAt)), ' - ', ui:label(spl:object(?reportOn, ep-activity:finishedAt))) }" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{ SELECT ?wellBoreId WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/??? ?wellBoreId } }" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{ spl:object(?this, ep-activity:createdAt) }" />
<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="{= rhspin:npdId(?wellBore) }" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{= spl:object(?this, ep-activity:createdAt) }" />
<rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" />
......@@ -37,13 +39,13 @@
<rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= spl:object(?activity, ddr:tvdKickoff) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvd) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= rhspin:dtypeValue(?activity, ddr:distDrill) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdDiaHoleStart) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= rhspin:dtypeValue(?activity, ddr:tvdStrengthForm) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casting mMD:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdCsgLast) }" />
</td>
</tr></table>
</body>
......
<ui:group>
<h1>Summary report Wellbore: {= spl:object(?this, ddr:nameWell) }</h1>
<div>End time: {= ui:label(spl:object(?this, ddr:dTimEnd)) }</div>
<hr />
<div class="ddrSummaryLeft">
<rhswp:NameValuePair arg:name="Report Number:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Pressure psig:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casing MTVD:" arg:value="{= spl:object(?this, ???) }" />
</div>
<div class="ddrSummaryRight">
<rhswp:NameValuePair arg:name="Period:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Temprature degC:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Wellbore type:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth at Kick Off mTVD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth mTVD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Dist Drilled m:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Hole Dia in:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Formation Strength g/cm3:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Formation Strength mTVD:" arg:value="{= spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Depth At Last Casting mMD:" arg:value="{= spl:object(?this, ???) }" />
</div>
</ui:group>
\ No newline at end of file