MPRP.uispin.html 2.86 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 rdf:type ep-report:MonthlyProductionReportPartner .
    ?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 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>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>
 
 <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:GasSales" />
 
    <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:WellProductionFlows" />
 
 <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:Cargo" />

    <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:ProductionSales" />
  
    <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:ProductionFlowsAll" />
   
   <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:ProductionInventory" />

   <mprpswp:Table arg:report="{= ?report }"  arg:template="mpr-tables:ProductionInventoryOwnership" />   

<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:FluidSamples" />			

<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:FluidSampleAnalysisResults" />

	<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellTest" />	
	
	<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellInjectionTest" />	
	<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellInjectionTestResults" />		

</ui:group>