MPRP.uispin.html 2.3 KB
<ui:group 
let:report="{# SELECT ?report WHERE { ?report a ep-report:MonthlyProductionReportPartner . } }"
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 a ep-report:MonthlyProductionReportPartner .
 ?productVolumeReport ep-core:partOf ?report .
 ?productVolumeReport a ep-report:ProductVolumeReport .
    ?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
    ?productionFlowsInReportingPeriod a ep-flow:ProductionFlowNetwork .
    ?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod .
    ?stateOfField ep-core:temporalPartOf ?reportedField .
    ?reportedField npd:name ?reportedFieldName .
}}"
 
>

<h1>Monthly Partner Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:MonthlyProductionReportPartner . ?report ep-core:name ?title . } }</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE 
{ 

?report a ep-report:MonthlyProductionReportPartner . 
?report ep-report:reportSubmittedFrom ?submittingFieldState . 
?submittingFieldState ep-core:temporalPartOf ?submittingField .
?submittingField npd:name ?submittingFieldName .

} }</h2>


      
 
 <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: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>