David Price

Improved header incases of different field

<ui:group
let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }"
let:fieldName="{# SELECT ?fieldName
let:reportedFieldName="{# SELECT ?reportedFieldName
WHERE {
?report ep-report:reportOn ?fieldPart .
?fieldPart ep-core:temporalPartOf ?field .
?field npd:name ?fieldName .
}
}"
?report a ep-report:ProductionReport .
?productVolumeReport ep-core:partOf ?report .
?productVolumeReport a ep-report:ProductVolumeReport .
?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
?productionFlowsInReportingPeriod a ep-flow:ProductionFlow .
?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod .
?stateOfField ep-core:temporalPartOf ?reportedField .
?reportedField npd:name ?reportedFieldName .
}}"
>
......@@ -20,8 +24,17 @@ let:facilityName="{# SELECT DISTINCT
<h1>Monthly Government Report : {= ?fieldName } Field</h1>
<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>
<h1>Monthly Government Report : {= ?reportedFieldName } Field {# SELECT ?month WHERE { ?report a ep-report:ProductionReport . ?report ep-report:issuedAt ?month . } }</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE
{
?report a ep-report:ProductionReport .
?report ep-report:reportSubmittedBy ?submittingFieldState .
?submittingFieldState ep-core:temporalPartOf ?submittingField .
?submittingField npd:name ?submittingFieldName .
} }</h2>
<!-- <ui:forEach ui:resultSet="{#
SELECT
......