David Price

Added MPRG test case, added report version and status to header for DPR and MPRG

......@@ -14,6 +14,18 @@ WHERE {
<h1>Daily Production Report : {= ?reportedFieldName } Field {# SELECT ?day WHERE { ?partOfFacility ep-activity:existsThroughout ?day . } }</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
<h2>Report version : {# SELECT ?reportVersion
WHERE {
?report rdf:type ep-report:ProductionReport .
?report ep-report:reportVersion ?reportVersion .
}}</h2>
<h2>Report Status : {# SELECT ?reportStatusLabel
WHERE {
?report rdf:type ep-report:ProductionReport .
?report a ?reportStatus .
?reportStatus a ep-report:ReportVersionStatus .
?reportStatus rdfs:label ?reportStatusLabel .
}}</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE
{
......
......@@ -5,6 +5,9 @@ let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOf
let:reportedFieldName="{# SELECT ?reportedFieldName
WHERE {
?report rdf:type ep-report:ProductionReport .
?report a ?reportStatus .
?reportStatus a ep-report:ReportVersionStatus .
?reportStatus rdfs:label ?reportStatusLabel .
?productvolumereport ep-core:partOf ?report .
?productvolumereport rdf:type ep-report:ProductVolumeReport .
?productvolumereport ep-report:reportOn ?productioninventorycollection .
......@@ -12,14 +15,23 @@ WHERE {
?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility .
?productionfacility rdf:type ep-fac:Field .
?productvolumereport ep-core:name ?reportedFieldName .
}}"
>
<h1>Monthly Government Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
<h2>Report version : {# SELECT ?reportVersion
WHERE {
?report rdf:type ep-report:ProductionReport .
?report ep-report:reportVersion ?reportVersion .
}}</h2>
<h2>Report Status : {# SELECT ?reportStatusLabel
WHERE {
?report rdf:type ep-report:ProductionReport .
?report a ?reportStatus .
?reportStatus a ep-report:ReportVersionStatus .
?reportStatus rdfs:label ?reportStatusLabel .
}}</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE
{
......
<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.epim.no/schemas/mprml/1" version="1.0(MPRML)">
<documentInfo>
<DocumentName namingSystem="EC">TRYM March 2012</DocumentName>
<DocumentAlias namingSystem="EC">TRYM Copex Report</DocumentAlias>
<DocumentDate>2012-04-05T00:00:00.0Z</DocumentDate>
<documentClass namingSystem="EC">DONG E&amp;P Norge AS</documentClass>
<documentClass namingSystem="EC">Copex</documentClass>
<documentClass namingSystem="ERH">mprg</documentClass>
<FileCreationInformation>
<FileCreationDate>2012-04-15T00:00:00.0Z</FileCreationDate>
<SoftwareName>Energy Components</SoftwareName>
<FileCreator>DONG E&amp;P Norge AS</FileCreator>
<Comment>NA</Comment>
</FileCreationInformation>
<Owner>DONG E&amp;P Norge AS</Owner>
</documentInfo>
<context xsi:type="obj_report">
<kind>Copex</kind>
<title>Trym cargo</title>
<date>2012-03-01</date>
<dateEnd>2012-03-31</dateEnd>
<month>2012-03</month>
<year>2012</year>
<reportVersion>1.2</reportVersion>
<reportStatus>final</reportStatus>
<installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
<operator>
<name>DONG E&amp;P Norge AS</name>
<role>Operating company</role>
</operator>
</context>
<object xsi:type="obj_productVolume">
<name>TRYM</name>
<installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
<facility>
<name kind="field" namingSystem="NPD" uidRef="18081500">TRYM</name>
<flow>
<kind>hydrocarbon accounting</kind>
<qualifier>allocated</qualifier>
<product>
<kind>oil - net</kind>
<period>
<kind>month</kind>
<dateStart>2012-03-01</dateStart>
<dateEnd>2012-03-31</dateEnd>
<volumeValue>
<volume uom="m3">209.82</volume><temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">843.52</mass>
<densityValue>
<density uom="kg/m3">740.2</density>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</densityValue>
</period>
</product>
</flow>
<flow>
<name>TRYM field production lifted by tanker</name>
<kind>hydrocarbon accounting</kind>
<qualifier>allocated</qualifier>
<product>
<kind>oil - gross</kind>
<period>
<kind>month</kind>
<dateStart>2012-03-01</dateStart>
<dateEnd>2012-03-31</dateEnd>
<balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>380/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper>Bayerngas Norge AS</shipper>
<destination>
<name>Mongstad</name>
<type>terminal</type>
<country>NORWAY</country>
</destination>
<event>
<date>2012-01-04</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">1759.42</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">722.93</mass>
<densityValue>
<density uom="kg/m3">760.6</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner>Bayerngas Norge AS</owner>
<share uom="%">100.0</share>
</balanceDetail>
</balanceSet><balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>381/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper>Bayerngas Norge AS</shipper>
<destination>
<name>Kalundborg</name>
<type>harbour</type>
<country>DENMARK</country>
</destination>
<event>
<date>2012-01-07</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">1234.37</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">883.27</mass>
<densityValue>
<density uom="kg/m3">728.94</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner> Det Norske Oljeselskap AS</owner>
<share uom="%">1.31</share>
</balanceDetail><balanceDetail>
<owner>Bayerngas Norge AS</owner>
<share uom="%">98.69</share>
</balanceDetail>
</balanceSet>
</period>
</product>
</flow>
</facility><facility>
<name kind="terminal" namingSystem="NPD" uidRef="416595">FREDERICIA</name>
<flow>
<name>FREDERICIA field production lifted by tanker</name>
<kind>hydrocarbon accounting</kind>
<qualifier>allocated</qualifier>
<product>
<kind>oil - net</kind>
<period>
<kind>month</kind>
<dateStart>2012-03-01</dateStart>
<dateEnd>2012-03-31</dateEnd>
<balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>399/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper> Det Norske Oljeselskap AS</shipper>
<destination>
<name>Mongstad</name>
<type>terminal</type>
<country>NORWAY</country>
</destination>
<event>
<date>2012-01-05</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">1811.76</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">171.17</mass>
<densityValue>
<density uom="kg/m3">729.44</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner> Det Norske Oljeselskap AS</owner>
<share uom="%">77.38</share>
</balanceDetail><balanceDetail>
<owner>Bayerngas Norge AS</owner>
<share uom="%">22.62</share>
</balanceDetail>
</balanceSet><balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>400/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper>Bayerngas Norge AS</shipper>
<destination>
<name>Kalundborg</name>
<type>harbour</type>
<country>DENMARK</country>
</destination>
<event>
<date>2012-01-10</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">997.58</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">531.75</mass>
<densityValue>
<density uom="kg/m3">727.52</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner> Det Norske Oljeselskap AS</owner>
<share uom="%">100.0</share>
</balanceDetail>
</balanceSet>
</period>
</product>
</flow>
</facility><facility>
<name kind="terminal" namingSystem="NPD" uidRef="364693">NYHAMNA</name>
<flow>
<name>NYHAMNA field production lifted by tanker</name>
<kind>hydrocarbon accounting</kind>
<qualifier>allocated</qualifier>
<product>
<kind>oil - net</kind>
<period>
<kind>month</kind>
<dateStart>2012-03-01</dateStart>
<dateEnd>2012-03-31</dateEnd>
<balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>399/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper>Bayerngas Norge AS</shipper>
<destination>
<name>Kalundborg</name>
<type>harbour</type>
<country>DENMARK</country>
</destination>
<event>
<date>2012-01-05</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">1798.45</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">914.35</mass>
<densityValue>
<density uom="kg/m3">742.01</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner>Bayerngas Norge AS</owner>
<share uom="%">100.0</share>
</balanceDetail>
</balanceSet><balanceSet>
<kind>tanker lifting</kind>
<cargoNumber>400/1</cargoNumber>
<cargoBatchNumber>1</cargoBatchNumber>
<shipper>Bayerngas Norge AS</shipper>
<destination>
<name>Mongstad</name>
<type>terminal</type>
<country>NORWAY</country>
</destination>
<event>
<date>2012-01-08</date>
<kind>bill of lading</kind>
</event>
<volumeValue>
<volume uom="m3">1373.11</volume>
<temp uom="degC">15</temp>
<pres uom="atm">1</pres>
</volumeValue>
<mass uom="kg">293.64</mass>
<densityValue>
<density uom="kg/m3">765.26</density>
<temp uom="degC">15.0</temp>
<pres uom="atm">1</pres>
</densityValue>
<balanceDetail>
<owner>DONG E&amp;P Norge AS</owner>
<share uom="%">65.16</share>
</balanceDetail><balanceDetail>
<owner>Bayerngas Norge AS</owner>
<share uom="%">34.84</share>
</balanceDetail>
</balanceSet>
</period>
</product>
</flow>
</facility>
</object>
</objects>
\ No newline at end of file