MPRG.uispin.html
8.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<ui:group
let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }"
let:activity="{# SELECT ?activity WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity}}"
let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity . ?activity ep-activity:finishedAt ?activityEnd}}"
let:reportedFieldName="{# SELECT ?reportedFieldName
WHERE {
?report rdf:type ep-report:MonthlyProductionReportGovernment .
?report ep-report:reportOn ?temporalpartofaproductionfacility .
?temporalpartofaproductionfacility rdf:type ep-fac:TemporalPartOfAProductionFacility .
?temporalpartofaproductionfacility ep-core:temporalPartOf ?productionfacility .
?productionfacility rdf:type ep-fac:Field .
?productionfacility npd: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
{
?report a ep-report:ProductionReport .
?reportIssueActivity ep-report:issuedReport ?report .
?reportIssueActivity ep-activity:issuedFrom ?submittingFieldState .
?submittingFieldState ep-core:temporalPartOf ?submittingField .
?submittingField npd:name ?submittingFieldName .
} }</h2>
<!-- <ui:forEach ui:resultSet="{#
SELECT
?productionFlowFacilityName
?productionFlowName
?productionFlowDefinitionTypeName
?productionFlowDefinitionSubTypeName
?productionFlowPurposeTypeName
?productFlowName
?productFlowMaterialTypeName
?productFlowGrossOrNetTypeName
?productFlowInPeriodDurationTypeName
?massInKilograms
?pressureInAtmospheres
?temperatureInCelsius
?volumeInMetre3
?grossCalorificValueInMegaJouleMetre_3
WHERE
{
?productionReport a ep-report:ProductionReport .
?productVolumeReport ep-core:partOf ?productionReport ;
a ep-report:ProductVolumeReport .
?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
?productionFlowsInReportingPeriod a ep-flow:ProductionFlow ;
ep-flow:hasNetworkPart ?productionFlowInReportingPeriod .
?productionFlowInReportingPeriod ep-core:temporalPartOf ?productionFlow .
?productionFlow a ep-flow:WholeLifeProductionFlow ;
ep-flow:flowIntoOrOutOf ?productionFlowFacility .
?productionFlowFacility npd:name ?productionFlowFacilityName .
OPTIONAL {
?productionFlow rdfs:label ?productionFlowName .
}
OPTIONAL {
?productionFlow a ?productionFlowDefinitionType .
?productionFlowDefinitionType a ep-flow:ProductionFlowDefinitionType ;
rdfs:label ?productionFlowDefinitionTypeName .
}
OPTIONAL {
?productionFlow a ?productionFlowDefinitionSubType .
?productionFlowDefinitionSubType a ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label ?productionFlowDefinitionSubTypeName .
}
OPTIONAL {
?productionFlow a ?productionFlowPurposeType .
?productionFlowPurposeType a ep-flow:ProductionFlowPurposeType ;
rdfs:label ?productionFlowPurposeTypeName .
}
OPTIONAL {
?productionFlowInReportingPeriod ep-flow:hasMixedPart ?productFlowInReportingPeriod .
?productFlowInReportingPeriod a ep-flow:ProductFlow .
OPTIONAL {
?productFlowInReportingPeriod ep-core:temporalPartOf ?productFlow .
?productFlow a ep-flow:WholeLifeProductFlow .
OPTIONAL {
?productFlow rdfs:label ?productFlowName .
}
OPTIONAL {
?productFlow a ?productFlowMaterialType .
?productFlowMaterialType a ep-flow:ProductMaterialType ;
rdfs:label ?productFlowMaterialTypeName .
}
OPTIONAL {
?productFlow a ?productFlowGrossOrNetType .
?productFlowGrossOrNetType a ep-flow:ProductFlowGrossOrNetType ;
rdfs:label ?productFlowGrossOrNetTypeName .
}
OPTIONAL {
?productFlowInPeriod ep-core:temporalPartOf ?productFlowInReportingPeriod .
OPTIONAL {
?productFlowInPeriod a ?productFlowInPeriodDurationType .
?productFlowInPeriodDurationType a ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label ?productFlowInPeriodDurationTypeName .
}
?productFlowInPeriod ep-flow:materialThatFlows ?materialThatFlowsInPeriod .
OPTIONAL {
?materialThatFlowsInPeriod a ?mass .
?mass a ep-core:Mass ;
ep-core:kilogram ?massInKilograms .
}
?stateOfMaterialThatFlowsInPeriod ep-core:temporalPartOf ?materialThatFlowsInPeriod .
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod a ?pressure .
?pressure a ep-core:Pressure ;
ep-core:atmosphere ?pressureInAtmospheres .
}
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod a ?temperature .
?temperature a ep-core:Temperature ;
ep-core:celsius ?temperatureInCelsius .
}
?stateOfMaterialThatFlowsInPeriod a ?volume .
?volume a ep-core:Volume ;
ep-core:metre3 ?volumeInMetre3 .
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod ep-flow:grossCalorificValue ?calorificValue .
?calorificValue ep-core:megajoule_m-3 ?grossCalorificValueInMegaJouleMetre_3 .
}
}
}
}
}
}">
<h3>{= ?productionFlowName }</h3>
<table>
<tr><td class="nameValueName">type:</td><td class="nameValueValue">{= ?productionFlowDefinitionTypeName
}</td></tr>
<tr><td class="nameValueName">subtype:</td><td class="nameValueValue">{= ?productionFlowDefinitionSubTypeName }</td></tr>
<tr><td class="nameValueName">purpose:</td><td class="nameValueValue">{= ?productionFlowPurposeTypeName }</td></tr>
<tr><td class="nameValueName">product:</td><td class="nameValueValue">{= ?productFlowName }</td></tr>
<tr><td class="nameValueName">material type:</td><td class="nameValueValue">{= ?productFlowMaterialTypeName }</td></tr>
<tr><td class="nameValueName">gross or net:</td><td class="nameValueValue">{= ?productFlowGrossOrNetTypeName }</td></tr>
<tr><td class="nameValueName">duration type:</td><td class="nameValueValue">{= ?productFlowInPeriodDurationTypeName }</td></tr>
<tr><td class="nameValueName">mass (kg):</td><td class="nameValueValue">{= ?massInKilograms }</td></tr>
<tr><td class="nameValueName">pressure (atm):</td><td class="nameValueValue">{= ?pressureInAtmospheres }</td></tr>
<tr><td class="nameValueName">temperature (C°):</td><td class="nameValueValue">{= ?temperatureInCelsius }</td></tr>
<tr><td class="nameValueName">volume (m<sup>3</sup>):</td><td class="nameValueValue">{= ?volumeInMetre3 }</td></tr>
<tr><td class="nameValueName">gross calorific value (MJ/m<sup>3</sup>):</td><td class="nameValueValue">{= ?grossCalorificValueInMegaJouleMetre_3 }</td></tr>
</table>
</ui:forEach> -->
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:GasSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo_1" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryOwnership" />
</ui:group>