David Price

Improved header incases of different field

1 <ui:group 1 <ui:group
2 let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }" 2 let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }"
3 3
4 -let:fieldName="{# SELECT ?fieldName 4 +let:reportedFieldName="{# SELECT ?reportedFieldName
5 WHERE { 5 WHERE {
6 -?report ep-report:reportOn ?fieldPart . 6 + ?report a ep-report:ProductionReport .
7 -?fieldPart ep-core:temporalPartOf ?field . 7 + ?productVolumeReport ep-core:partOf ?report .
8 -?field npd:name ?fieldName . 8 + ?productVolumeReport a ep-report:ProductVolumeReport .
9 -} 9 + ?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
10 - }" 10 + ?productionFlowsInReportingPeriod a ep-flow:ProductionFlow .
11 + ?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod .
12 + ?stateOfField ep-core:temporalPartOf ?reportedField .
13 + ?reportedField npd:name ?reportedFieldName .
14 +}}"
11 15
12 > 16 >
13 17
...@@ -20,8 +24,17 @@ let:facilityName="{# SELECT DISTINCT ...@@ -20,8 +24,17 @@ let:facilityName="{# SELECT DISTINCT
20 24
21 25
22 26
23 -<h1>Monthly Government Report : {= ?fieldName } Field</h1> 27 +<h1>Monthly Government Report : {= ?reportedFieldName } Field {# SELECT ?month WHERE { ?report a ep-report:ProductionReport . ?report ep-report:issuedAt ?month . } }</h1>
24 -<h2>{# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } } {# SELECT ?month WHERE { ?report a ep-report:ProductionReport . ?report ep-report:issuedAt ?month . } }</h2> 28 +<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
29 +<h2>Submitted by : {# SELECT ?submittingFieldName WHERE
30 +{
31 +
32 +?report a ep-report:ProductionReport .
33 +?report ep-report:reportSubmittedBy ?submittingFieldState .
34 +?submittingFieldState ep-core:temporalPartOf ?submittingField .
35 +?submittingField npd:name ?submittingFieldName .
36 +
37 +} }</h2>
25 38
26 <!-- <ui:forEach ui:resultSet="{# 39 <!-- <ui:forEach ui:resultSet="{#
27 SELECT 40 SELECT
......