David Price

Added test case and repaired MPRG submitted from

...@@ -4,14 +4,16 @@ let:activity="{# SELECT ?activity WHERE {?activity a ep-fac:TemporalPartOfAProdu ...@@ -4,14 +4,16 @@ let:activity="{# SELECT ?activity WHERE {?activity a ep-fac:TemporalPartOfAProdu
4 let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity . ?activity ep-activity:finishedAt ?activityEnd}}" 4 let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity . ?activity ep-activity:finishedAt ?activityEnd}}"
5 let:reportedFieldName="{# SELECT ?reportedFieldName 5 let:reportedFieldName="{# SELECT ?reportedFieldName
6 WHERE { 6 WHERE {
7 - ?report a ep-report:ProductionReport . 7 + ?report rdf:type ep-report:ProductionReport .
8 - ?productVolumeReport ep-core:partOf ?report . 8 + ?productvolumereport ep-core:partOf ?report .
9 - ?productVolumeReport a ep-report:ProductVolumeReport . 9 + ?productvolumereport rdf:type ep-report:ProductVolumeReport .
10 - ?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod . 10 + ?productvolumereport ep-report:reportOn ?productioninventorycollection .
11 - ?productionFlowsInReportingPeriod a ep-flow:ProductionFlowNetwork . 11 + ?temporalpartofaproductionfacility ep-core:hasSpatialPart ?productioninventorycollection .
12 - ?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod . 12 + ?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility .
13 - ?stateOfField ep-core:temporalPartOf ?reportedField . 13 + ?productionfacility rdf:type ep-fac:Field .
14 - ?reportedField npd:name ?reportedFieldName . 14 + ?productvolumereport ep-core:name ?reportedFieldName .
15 +
16 +
15 }}" 17 }}"
16 18
17 > 19 >
...@@ -22,7 +24,8 @@ WHERE { ...@@ -22,7 +24,8 @@ WHERE {
22 { 24 {
23 25
24 ?report a ep-report:ProductionReport . 26 ?report a ep-report:ProductionReport .
25 -?report ep-report:reportSubmittedFrom ?submittingFieldState . 27 +?reportIssueActivity ep-report:issuedReport ?report .
28 +?reportIssueActivity ep-activity:issuedFrom ?submittingFieldState .
26 ?submittingFieldState ep-core:temporalPartOf ?submittingField . 29 ?submittingFieldState ep-core:temporalPartOf ?submittingField .
27 ?submittingField npd:name ?submittingFieldName . 30 ?submittingField npd:name ?submittingFieldName .
28 31
......
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">ÅSGARD March 2012</DocumentName>
6 + <DocumentAlias namingSystem="EC">ÅSGARD Copex Report</DocumentAlias>
7 + <DocumentDate>2012-04-05T00:00:00.0Z</DocumentDate>
8 + <documentClass namingSystem="EC">STATOIL</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>STATOIL</FileCreator>
17 + <Comment>NA</Comment>
18 + </FileCreationInformation>
19 + <Owner>STATOIL</Owner>
20 + </documentInfo>
21 + <context xsi:type="obj_report">
22 + <kind>Copex</kind>
23 + <title>ÅSGARD stock</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="43765">ÅSGARD</installation>
32 + <operator>
33 + <name>STATOIL</name>
34 + <role>Operating company</role>
35 + </operator>
36 + </context><object xsi:type="obj_productVolume">
37 + <name>MORVIN</name>
38 + <installation kind="field" namingSystem="NPD" uidRef="4966234">MORVIN</installation>
39 + <facility>
40 + <name kind="field" namingSystem="NPD" uidRef="4966234">MORVIN</name>
41 +
42 +
43 + <flow>
44 + <name>MORVIN allocated inventory</name>
45 + <kind>inventory</kind>
46 + <qualifier>allocated</qualifier>
47 + <product>
48 + <kind>oil - net</kind>
49 + <period>
50 + <kind>month</kind>
51 + <dateStart>2012-03-01</dateStart>
52 + <dateEnd>2012-03-31</dateEnd>
53 + <volumeValue>
54 + <volume uom="m3">108812.9</volume>
55 + <temp uom="degC">15</temp>
56 + <pres uom="atm">1</pres>
57 + </volumeValue>
58 +
59 + <mass uom="kg">86053342.33</mass>
60 +
61 + <densityValue>
62 + <density uom="kg/m3">778.06</density>
63 + <temp uom="degC">15</temp>
64 + <pres uom="atm">1</pres>
65 + </densityValue>
66 + <balanceSet>
67 + <kind>closing balance</kind>
68 + <balanceDetail>
69 + <owner>TOTAL</owner>
70 + <volumeValue>
71 + <volume uom="m3">66354.10642</volume>
72 + <temp uom="degC">15</temp>
73 + <pres uom="atm">1</pres>
74 + </volumeValue>
75 + <mass uom="kg">52475328.1528</mass>
76 + </balanceDetail><balanceDetail>
77 + <owner>STATOIL</owner>
78 + <volumeValue>
79 + <volume uom="m3">9303.50295</volume>
80 + <temp uom="degC">15</temp>
81 + <pres uom="atm">1</pres>
82 + </volumeValue>
83 + <mass uom="kg">7357560.76922</mass>
84 + </balanceDetail><balanceDetail>
85 + <owner>ENI NORGE</owner>
86 + <volumeValue>
87 + <volume uom="m3">33155.29063</volume>
88 + <temp uom="degC">15</temp>
89 + <pres uom="atm">1</pres>
90 + </volumeValue>
91 + <mass uom="kg">26220453.408</mass>
92 + </balanceDetail>
93 + </balanceSet>
94 + </period>
95 +
96 + </product>
97 + </flow>
98 +
99 +
100 +
101 + </facility>
102 + </object>
103 +</objects>
...\ No newline at end of file ...\ No newline at end of file