David Price

Some fixes in DPR2 and MPR Well Test HTML generation

......@@ -611,6 +611,19 @@ dpr-tables:HSEInformation
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "operationType"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "startedAt"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "operationType"^^xsd:string
] [ sp:varName "startedAt"^^xsd:string
......@@ -1216,6 +1229,19 @@ dpr-tables:OperationInformation
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "definingType"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "number"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "definingType"^^xsd:string
] [ sp:varName "number"^^xsd:string
......@@ -1572,7 +1598,14 @@ dpr-tables:PersonnelInformation
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "crewTypename"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "crewNumber"^^xsd:string
......@@ -3079,8 +3112,18 @@ dpr-tables:ProductionOperationActivity
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityStart"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityType"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityType"^^xsd:string
......@@ -3231,8 +3274,18 @@ dpr-tables:ProductionOperationCargoShip
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityStart"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityType"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityType"^^xsd:string
......@@ -3485,7 +3538,7 @@ dpr-tables:ProductionOperationMarine
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "marineoperationPartTypeName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "marineoperationPartTypeName"^^xsd:string
......@@ -3631,7 +3684,9 @@ dpr-tables:ProductionOperationMarineShip
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "marineoperationPartTypeName"^^xsd:string
] [ sp:varName "shipName"^^xsd:string
] [ sp:varName "commentText"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "marineoperationPartTypeName"^^xsd:string
......@@ -3807,8 +3862,18 @@ dpr-tables:ProductionOperationShutdown
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
sp:orderBy ([ rdf:type sp:Asc ;
sp:expression
[ sp:varName "facilityName"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityStart"^^xsd:string
]
] [ rdf:type sp:Asc ;
sp:expression
[ sp:varName "activityFinish"^^xsd:string
]
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "shutdownDuration"^^xsd:string
......@@ -4084,9 +4149,11 @@ dpr-tables:ProductionVolumes
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "flowInOutFacilityName"^^xsd:string
sp:orderBy ([ sp:varName "containingWholeFacilityName"^^xsd:string
] [ sp:varName "flowInOutFacilityName"^^xsd:string
] [ sp:varName "flowPurposeName"^^xsd:string
] [ sp:varName "flowDefinitionName"^^xsd:string
] [ sp:varName "densityValue"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "containingWholeFacilityName"^^xsd:string
] [ sp:varName "flowInOutFacilityName"^^xsd:string
......@@ -7024,6 +7091,7 @@ dpr-tables:WellTest
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
......
......@@ -3668,7 +3668,7 @@ mpr-tables:WellInjectionTest
] [ sp:object
[ sp:varName "wellPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
......@@ -3679,7 +3679,7 @@ mpr-tables:WellInjectionTest
sp:subject
[ sp:varName "wellPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "well"^^xsd:string
......@@ -3966,7 +3966,7 @@ mpr-tables:WellInjectionTestResults
] [ sp:object
[ sp:varName "wellPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
......@@ -5353,7 +5353,7 @@ mpr-tables:WellTest
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
......
......@@ -178,8 +178,6 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows_1" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
......
<!DOCTYPE html>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="http://spinrdf.org/rhlib/ddr.css" rel="stylesheet" type="text/css">
<title>Monthly Production Report (government)</title>
</head>
<body>
<h1>Monthly Government Report : TRYM Field, Month Ending 2012-02-29</h1>
<h2>Report title : TRYM</h2>
<h2>Report version : 1.0</h2>
<h2>Report Status : final version of a report</h2>
<h2>Submitted by : TRYM</h2>
<div>
<hr>
<h2>Well Production</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Wellbore</th><th class="ddrTH" style="text-align: center">Status</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Day</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Flow&nbsp;subtype</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">gas</td><td class="ddrTD">684.52 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">755.89 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">water</td><td class="ddrTD">1957.3 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">gas</td><td class="ddrTD">114.61 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">1744.5 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">water</td><td class="ddrTD">800.44 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
</table>
<br>
</div>
<div>
<hr>
<h2>Well Production 1</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Wellbore</th><th class="ddrTH" style="text-align: center">Status</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Day</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">gas</td><td class="ddrTD">684.52 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">755.89 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-1 AH</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">water</td><td class="ddrTD">1957.3 m3</td><td class="ddrTD">17</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">gas</td><td class="ddrTD">114.61 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">1744.5 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">3/7-A-2 H</td><td class="ddrTD">producing well</td><td class="ddrTD">production exploitation</td><td class="ddrTD">water</td><td class="ddrTD">800.44 m3</td><td class="ddrTD">10</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td>
</tr>
</table>
<br>
</div>
<div>
<hr>
<h2>Production Saleable</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Facility</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Mass</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Density</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Flow&nbsp;subtype</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">TRYM</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">614.09 kg</td><td class="ddrTD">1094.62 m3</td><td class="ddrTD">788.93 kg/m3</td><td class="ddrTD">saleable flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
</table>
<br>
</div>
<div>
<hr>
<h2>Production</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Facility</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Mass</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Density</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Flow&nbsp;subtype</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">TRYM</td><td class="ddrTD">production exploitation</td><td class="ddrTD">condensate</td><td class="ddrTD">1594.05 kg</td><td class="ddrTD">905.35 m3</td><td class="ddrTD">765.54 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">TRYM</td><td class="ddrTD">production exploitation</td><td class="ddrTD">gas</td><td class="ddrTD">932.25 kg</td><td class="ddrTD">1328.82 m3</td><td class="ddrTD">0.63 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">TRYM</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil</td><td class="ddrTD">410.64 kg</td><td class="ddrTD">1206.65 m3</td><td class="ddrTD">797.36 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">TRYM</td><td class="ddrTD">production exploitation</td><td class="ddrTD">water</td><td class="ddrTD"></td><td class="ddrTD">975.45 m3</td><td class="ddrTD"></td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
</table>
<br>
</div>
</body>
</html>