David Price

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

...@@ -14,6 +14,18 @@ WHERE { ...@@ -14,6 +14,18 @@ WHERE {
14 14
15 <h1>Daily Production Report : {= ?reportedFieldName } Field {# SELECT ?day WHERE { ?partOfFacility ep-activity:existsThroughout ?day . } }</h1> 15 <h1>Daily Production Report : {= ?reportedFieldName } Field {# SELECT ?day WHERE { ?partOfFacility ep-activity:existsThroughout ?day . } }</h1>
16 <h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2> 16 <h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
17 +<h2>Report version : {# SELECT ?reportVersion
18 +WHERE {
19 + ?report rdf:type ep-report:ProductionReport .
20 + ?report ep-report:reportVersion ?reportVersion .
21 +}}</h2>
22 +<h2>Report Status : {# SELECT ?reportStatusLabel
23 +WHERE {
24 + ?report rdf:type ep-report:ProductionReport .
25 + ?report a ?reportStatus .
26 + ?reportStatus a ep-report:ReportVersionStatus .
27 + ?reportStatus rdfs:label ?reportStatusLabel .
28 +}}</h2>
17 <h2>Submitted by : {# SELECT ?submittingFieldName WHERE 29 <h2>Submitted by : {# SELECT ?submittingFieldName WHERE
18 { 30 {
19 31
......
...@@ -5,21 +5,33 @@ let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOf ...@@ -5,21 +5,33 @@ let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOf
5 let:reportedFieldName="{# SELECT ?reportedFieldName 5 let:reportedFieldName="{# SELECT ?reportedFieldName
6 WHERE { 6 WHERE {
7 ?report rdf:type ep-report:ProductionReport . 7 ?report rdf:type ep-report:ProductionReport .
8 + ?report a ?reportStatus .
9 + ?reportStatus a ep-report:ReportVersionStatus .
10 + ?reportStatus rdfs:label ?reportStatusLabel .
8 ?productvolumereport ep-core:partOf ?report . 11 ?productvolumereport ep-core:partOf ?report .
9 ?productvolumereport rdf:type ep-report:ProductVolumeReport . 12 ?productvolumereport rdf:type ep-report:ProductVolumeReport .
10 ?productvolumereport ep-report:reportOn ?productioninventorycollection . 13 ?productvolumereport ep-report:reportOn ?productioninventorycollection .
11 ?temporalpartofaproductionfacility ep-core:hasSpatialPart ?productioninventorycollection . 14 ?temporalpartofaproductionfacility ep-core:hasSpatialPart ?productioninventorycollection .
12 ?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility . 15 ?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility .
13 ?productionfacility rdf:type ep-fac:Field . 16 ?productionfacility rdf:type ep-fac:Field .
14 - ?productvolumereport ep-core:name ?reportedFieldName . 17 + ?productvolumereport ep-core:name ?reportedFieldName .
15 -
16 -
17 }}" 18 }}"
18 -
19 > 19 >
20 20
21 <h1>Monthly Government Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1> 21 <h1>Monthly Government Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1>
22 <h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2> 22 <h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
23 +<h2>Report version : {# SELECT ?reportVersion
24 +WHERE {
25 + ?report rdf:type ep-report:ProductionReport .
26 + ?report ep-report:reportVersion ?reportVersion .
27 +}}</h2>
28 +<h2>Report Status : {# SELECT ?reportStatusLabel
29 +WHERE {
30 + ?report rdf:type ep-report:ProductionReport .
31 + ?report a ?reportStatus .
32 + ?reportStatus a ep-report:ReportVersionStatus .
33 + ?reportStatus rdfs:label ?reportStatusLabel .
34 +}}</h2>
23 <h2>Submitted by : {# SELECT ?submittingFieldName WHERE 35 <h2>Submitted by : {# SELECT ?submittingFieldName WHERE
24 { 36 {
25 37
......
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 + xmlns="http://www.epim.no/schemas/mprml/1" version="1.0(MPRML)">
4 + <documentInfo>
5 + <DocumentName namingSystem="EC">TRYM March 2012</DocumentName>
6 + <DocumentAlias namingSystem="EC">TRYM Copex Report</DocumentAlias>
7 + <DocumentDate>2012-04-05T00:00:00.0Z</DocumentDate>
8 + <documentClass namingSystem="EC">DONG E&amp;P Norge AS</documentClass>
9 + <documentClass namingSystem="EC">Copex</documentClass>
10 + <documentClass namingSystem="ERH">mprg</documentClass>
11 + <FileCreationInformation>
12 +
13 + <FileCreationDate>2012-04-15T00:00:00.0Z</FileCreationDate>
14 +
15 + <SoftwareName>Energy Components</SoftwareName>
16 + <FileCreator>DONG E&amp;P Norge AS</FileCreator>
17 + <Comment>NA</Comment>
18 + </FileCreationInformation>
19 + <Owner>DONG E&amp;P Norge AS</Owner>
20 + </documentInfo>
21 + <context xsi:type="obj_report">
22 + <kind>Copex</kind>
23 + <title>Trym cargo</title>
24 +
25 + <date>2012-03-01</date>
26 + <dateEnd>2012-03-31</dateEnd>
27 + <month>2012-03</month>
28 + <year>2012</year>
29 + <reportVersion>1.2</reportVersion>
30 + <reportStatus>final</reportStatus>
31 + <installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
32 + <operator>
33 + <name>DONG E&amp;P Norge AS</name>
34 + <role>Operating company</role>
35 + </operator>
36 + </context>
37 + <object xsi:type="obj_productVolume">
38 + <name>TRYM</name>
39 + <installation kind="field" namingSystem="NPD" uidRef="18081500">TRYM</installation>
40 + <facility>
41 + <name kind="field" namingSystem="NPD" uidRef="18081500">TRYM</name>
42 +
43 + <flow>
44 + <kind>hydrocarbon accounting</kind>
45 + <qualifier>allocated</qualifier>
46 + <product>
47 + <kind>oil - net</kind>
48 + <period>
49 + <kind>month</kind>
50 + <dateStart>2012-03-01</dateStart>
51 + <dateEnd>2012-03-31</dateEnd>
52 + <volumeValue>
53 +
54 + <volume uom="m3">209.82</volume><temp uom="degC">15</temp>
55 + <pres uom="atm">1</pres>
56 + </volumeValue>
57 +
58 + <mass uom="kg">843.52</mass>
59 + <densityValue>
60 +
61 + <density uom="kg/m3">740.2</density>
62 + <temp uom="degC">15</temp>
63 + <pres uom="atm">1</pres>
64 + </densityValue>
65 + </period>
66 +
67 + </product>
68 + </flow>
69 +
70 +
71 +
72 +
73 +
74 + <flow>
75 + <name>TRYM field production lifted by tanker</name>
76 + <kind>hydrocarbon accounting</kind>
77 + <qualifier>allocated</qualifier>
78 + <product>
79 + <kind>oil - gross</kind>
80 + <period>
81 + <kind>month</kind>
82 + <dateStart>2012-03-01</dateStart>
83 + <dateEnd>2012-03-31</dateEnd>
84 + <balanceSet>
85 + <kind>tanker lifting</kind>
86 + <cargoNumber>380/1</cargoNumber>
87 + <cargoBatchNumber>1</cargoBatchNumber>
88 + <shipper>Bayerngas Norge AS</shipper>
89 + <destination>
90 + <name>Mongstad</name>
91 + <type>terminal</type>
92 + <country>NORWAY</country>
93 + </destination>
94 + <event>
95 + <date>2012-01-04</date>
96 + <kind>bill of lading</kind>
97 + </event>
98 + <volumeValue>
99 + <volume uom="m3">1759.42</volume>
100 + <temp uom="degC">15</temp>
101 + <pres uom="atm">1</pres>
102 + </volumeValue>
103 + <mass uom="kg">722.93</mass>
104 + <densityValue>
105 + <density uom="kg/m3">760.6</density>
106 + <temp uom="degC">15.0</temp>
107 + <pres uom="atm">1</pres>
108 + </densityValue>
109 + <balanceDetail>
110 + <owner>Bayerngas Norge AS</owner>
111 + <share uom="%">100.0</share>
112 + </balanceDetail>
113 + </balanceSet><balanceSet>
114 + <kind>tanker lifting</kind>
115 + <cargoNumber>381/1</cargoNumber>
116 + <cargoBatchNumber>1</cargoBatchNumber>
117 + <shipper>Bayerngas Norge AS</shipper>
118 + <destination>
119 + <name>Kalundborg</name>
120 + <type>harbour</type>
121 + <country>DENMARK</country>
122 + </destination>
123 + <event>
124 + <date>2012-01-07</date>
125 + <kind>bill of lading</kind>
126 + </event>
127 + <volumeValue>
128 + <volume uom="m3">1234.37</volume>
129 + <temp uom="degC">15</temp>
130 + <pres uom="atm">1</pres>
131 + </volumeValue>
132 + <mass uom="kg">883.27</mass>
133 + <densityValue>
134 + <density uom="kg/m3">728.94</density>
135 + <temp uom="degC">15.0</temp>
136 + <pres uom="atm">1</pres>
137 + </densityValue>
138 + <balanceDetail>
139 + <owner> Det Norske Oljeselskap AS</owner>
140 + <share uom="%">1.31</share>
141 + </balanceDetail><balanceDetail>
142 + <owner>Bayerngas Norge AS</owner>
143 + <share uom="%">98.69</share>
144 + </balanceDetail>
145 + </balanceSet>
146 + </period>
147 + </product>
148 + </flow>
149 +
150 +
151 + </facility><facility>
152 + <name kind="terminal" namingSystem="NPD" uidRef="416595">FREDERICIA</name>
153 +
154 +
155 +
156 + <flow>
157 + <name>FREDERICIA field production lifted by tanker</name>
158 + <kind>hydrocarbon accounting</kind>
159 + <qualifier>allocated</qualifier>
160 + <product>
161 + <kind>oil - net</kind>
162 + <period>
163 + <kind>month</kind>
164 + <dateStart>2012-03-01</dateStart>
165 + <dateEnd>2012-03-31</dateEnd>
166 + <balanceSet>
167 + <kind>tanker lifting</kind>
168 + <cargoNumber>399/1</cargoNumber>
169 + <cargoBatchNumber>1</cargoBatchNumber>
170 + <shipper> Det Norske Oljeselskap AS</shipper>
171 + <destination>
172 + <name>Mongstad</name>
173 + <type>terminal</type>
174 + <country>NORWAY</country>
175 + </destination>
176 + <event>
177 + <date>2012-01-05</date>
178 + <kind>bill of lading</kind>
179 + </event>
180 + <volumeValue>
181 + <volume uom="m3">1811.76</volume>
182 + <temp uom="degC">15</temp>
183 + <pres uom="atm">1</pres>
184 + </volumeValue>
185 + <mass uom="kg">171.17</mass>
186 + <densityValue>
187 + <density uom="kg/m3">729.44</density>
188 + <temp uom="degC">15.0</temp>
189 + <pres uom="atm">1</pres>
190 + </densityValue>
191 + <balanceDetail>
192 + <owner> Det Norske Oljeselskap AS</owner>
193 + <share uom="%">77.38</share>
194 + </balanceDetail><balanceDetail>
195 + <owner>Bayerngas Norge AS</owner>
196 + <share uom="%">22.62</share>
197 + </balanceDetail>
198 + </balanceSet><balanceSet>
199 + <kind>tanker lifting</kind>
200 + <cargoNumber>400/1</cargoNumber>
201 + <cargoBatchNumber>1</cargoBatchNumber>
202 + <shipper>Bayerngas Norge AS</shipper>
203 + <destination>
204 + <name>Kalundborg</name>
205 + <type>harbour</type>
206 + <country>DENMARK</country>
207 + </destination>
208 + <event>
209 + <date>2012-01-10</date>
210 + <kind>bill of lading</kind>
211 + </event>
212 + <volumeValue>
213 + <volume uom="m3">997.58</volume>
214 + <temp uom="degC">15</temp>
215 + <pres uom="atm">1</pres>
216 + </volumeValue>
217 + <mass uom="kg">531.75</mass>
218 + <densityValue>
219 + <density uom="kg/m3">727.52</density>
220 + <temp uom="degC">15.0</temp>
221 + <pres uom="atm">1</pres>
222 + </densityValue>
223 + <balanceDetail>
224 + <owner> Det Norske Oljeselskap AS</owner>
225 + <share uom="%">100.0</share>
226 + </balanceDetail>
227 + </balanceSet>
228 + </period>
229 + </product>
230 + </flow>
231 +
232 +
233 + </facility><facility>
234 + <name kind="terminal" namingSystem="NPD" uidRef="364693">NYHAMNA</name>
235 +
236 +
237 +
238 + <flow>
239 + <name>NYHAMNA field production lifted by tanker</name>
240 + <kind>hydrocarbon accounting</kind>
241 + <qualifier>allocated</qualifier>
242 + <product>
243 + <kind>oil - net</kind>
244 + <period>
245 + <kind>month</kind>
246 + <dateStart>2012-03-01</dateStart>
247 + <dateEnd>2012-03-31</dateEnd>
248 + <balanceSet>
249 + <kind>tanker lifting</kind>
250 + <cargoNumber>399/1</cargoNumber>
251 + <cargoBatchNumber>1</cargoBatchNumber>
252 + <shipper>Bayerngas Norge AS</shipper>
253 + <destination>
254 + <name>Kalundborg</name>
255 + <type>harbour</type>
256 + <country>DENMARK</country>
257 + </destination>
258 + <event>
259 + <date>2012-01-05</date>
260 + <kind>bill of lading</kind>
261 + </event>
262 + <volumeValue>
263 + <volume uom="m3">1798.45</volume>
264 + <temp uom="degC">15</temp>
265 + <pres uom="atm">1</pres>
266 + </volumeValue>
267 + <mass uom="kg">914.35</mass>
268 + <densityValue>
269 + <density uom="kg/m3">742.01</density>
270 + <temp uom="degC">15.0</temp>
271 + <pres uom="atm">1</pres>
272 + </densityValue>
273 + <balanceDetail>
274 + <owner>Bayerngas Norge AS</owner>
275 + <share uom="%">100.0</share>
276 + </balanceDetail>
277 + </balanceSet><balanceSet>
278 + <kind>tanker lifting</kind>
279 + <cargoNumber>400/1</cargoNumber>
280 + <cargoBatchNumber>1</cargoBatchNumber>
281 + <shipper>Bayerngas Norge AS</shipper>
282 + <destination>
283 + <name>Mongstad</name>
284 + <type>terminal</type>
285 + <country>NORWAY</country>
286 + </destination>
287 + <event>
288 + <date>2012-01-08</date>
289 + <kind>bill of lading</kind>
290 + </event>
291 + <volumeValue>
292 + <volume uom="m3">1373.11</volume>
293 + <temp uom="degC">15</temp>
294 + <pres uom="atm">1</pres>
295 + </volumeValue>
296 + <mass uom="kg">293.64</mass>
297 + <densityValue>
298 + <density uom="kg/m3">765.26</density>
299 + <temp uom="degC">15.0</temp>
300 + <pres uom="atm">1</pres>
301 + </densityValue>
302 + <balanceDetail>
303 + <owner>DONG E&amp;P Norge AS</owner>
304 + <share uom="%">65.16</share>
305 + </balanceDetail><balanceDetail>
306 + <owner>Bayerngas Norge AS</owner>
307 + <share uom="%">34.84</share>
308 + </balanceDetail>
309 + </balanceSet>
310 + </period>
311 + </product>
312 + </flow>
313 +
314 +
315 + </facility>
316 + </object>
317 +</objects>
...\ No newline at end of file ...\ No newline at end of file