Showing
2 changed files
with
166 additions
and
3 deletions
| 1 | -<ui:group> | 1 | +<ui:group let:facilityName="{# SELECT DISTINCT |
| 2 | - This is a placeholder for MPRGov stuff. | 2 | +?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"> |
| 3 | +<h1></h1> | ||
| 4 | +<h1>{= ?facilityName } Field</h1> | ||
| 5 | + | ||
| 6 | + <ui:forEach ui:resultSet="{# | ||
| 7 | +SELECT | ||
| 8 | +?productionFlowFacilityName | ||
| 9 | +?productionFlowName | ||
| 10 | +?productionFlowDefinitionTypeName | ||
| 11 | +?productionFlowDefinitionSubTypeName | ||
| 12 | +?productionFlowPurposeTypeName | ||
| 13 | +?productFlowName | ||
| 14 | +?productFlowMaterialTypeName | ||
| 15 | +?productFlowGrossOrNetTypeName | ||
| 16 | +?productFlowInPeriodDurationTypeName | ||
| 17 | +?massInKilograms | ||
| 18 | +?pressureInAtmospheres | ||
| 19 | +?temperatureInCelsius | ||
| 20 | +?volumeInMetre3 | ||
| 21 | +?grossCalorificValueInMegaJouleMetre_3 | ||
| 22 | +WHERE | ||
| 23 | + { | ||
| 24 | +?productionReport a ep-prodreport:ProductionReport . | ||
| 25 | + | ||
| 26 | +?productVolumeReport ep-core:partOf ?productionReport ; | ||
| 27 | + a ep-prodreport:ProductVolumeReport . | ||
| 28 | + | ||
| 29 | +?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod . | ||
| 30 | + | ||
| 31 | +?productionFlowsInReportingPeriod a ep-flow:ProductionFlow ; | ||
| 32 | + ep-flow:hasNetworkPart ?productionFlowInReportingPeriod . | ||
| 33 | + | ||
| 34 | +?productionFlowInReportingPeriod ep-core:temporalPartOf ?productionFlow . | ||
| 35 | + | ||
| 36 | +?productionFlow a ep-flow:WholeLifeProductionFlow ; | ||
| 37 | + ep-flow:flowIntoOrOutOf ?productionFlowFacility . | ||
| 38 | + | ||
| 39 | +?productionFlowFacility npd:name ?productionFlowFacilityName . | ||
| 40 | +OPTIONAL { | ||
| 41 | +?productionFlow rdfs:label ?productionFlowName . | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +OPTIONAL { | ||
| 45 | + ?productionFlow a ?productionFlowDefinitionType . | ||
| 46 | + | ||
| 47 | + ?productionFlowDefinitionType a ep-flow:ProductionFlowDefinitionType ; | ||
| 48 | + rdfs:label ?productionFlowDefinitionTypeName . | ||
| 49 | +} | ||
| 50 | + | ||
| 51 | +OPTIONAL { | ||
| 52 | + ?productionFlow a ?productionFlowDefinitionSubType . | ||
| 53 | + ?productionFlowDefinitionSubType a ep-flow:ProductionFlowDefinitionSubType ; | ||
| 54 | + rdfs:label ?productionFlowDefinitionSubTypeName . | ||
| 55 | +} | ||
| 56 | + | ||
| 57 | +OPTIONAL { | ||
| 58 | + ?productionFlow a ?productionFlowPurposeType . | ||
| 59 | + ?productionFlowPurposeType a ep-flow:ProductionFlowPurposeType ; | ||
| 60 | + rdfs:label ?productionFlowPurposeTypeName . | ||
| 61 | +} | ||
| 62 | + | ||
| 63 | +OPTIONAL { | ||
| 64 | + ?productionFlowInReportingPeriod ep-flow:hasMixedPart ?productFlowInReportingPeriod . | ||
| 65 | + ?productFlowInReportingPeriod a ep-flow:ProductFlow . | ||
| 66 | + OPTIONAL { | ||
| 67 | + ?productFlowInReportingPeriod ep-core:temporalPartOf ?productFlow . | ||
| 68 | + ?productFlow a ep-flow:WholeLifeProductFlow . | ||
| 69 | + OPTIONAL { | ||
| 70 | + ?productFlow rdfs:label ?productFlowName . | ||
| 71 | + } | ||
| 72 | + OPTIONAL { | ||
| 73 | + ?productFlow a ?productFlowMaterialType . | ||
| 74 | + ?productFlowMaterialType a ep-flow:ProductMaterialType ; | ||
| 75 | + rdfs:label ?productFlowMaterialTypeName . | ||
| 76 | + } | ||
| 77 | + OPTIONAL { | ||
| 78 | + ?productFlow a ?productFlowGrossOrNetType . | ||
| 79 | + ?productFlowGrossOrNetType a ep-flow:ProductFlowGrossOrNetType ; | ||
| 80 | + rdfs:label ?productFlowGrossOrNetTypeName . | ||
| 81 | + } | ||
| 82 | + OPTIONAL { | ||
| 83 | + ?productFlowInPeriod ep-core:temporalPartOf ?productFlowInReportingPeriod . | ||
| 84 | + OPTIONAL { | ||
| 85 | + ?productFlowInPeriod a ?productFlowInPeriodDurationType . | ||
| 86 | + ?productFlowInPeriodDurationType a ep-flow:TemporalPartOfAFlowDurationType ; | ||
| 87 | + rdfs:label ?productFlowInPeriodDurationTypeName . | ||
| 88 | + } | ||
| 89 | + ?productFlowInPeriod ep-flow:materialThatFlows ?materialThatFlowsInPeriod . | ||
| 90 | + OPTIONAL { | ||
| 91 | + ?materialThatFlowsInPeriod a ?mass . | ||
| 92 | + ?mass a ep-core:Mass ; | ||
| 93 | + ep-core:kilogram ?massInKilograms . | ||
| 94 | + } | ||
| 95 | + ?stateOfMaterialThatFlowsInPeriod ep-core:temporalPartOf ?materialThatFlowsInPeriod . | ||
| 96 | + OPTIONAL { | ||
| 97 | + ?stateOfMaterialThatFlowsInPeriod a ?pressure . | ||
| 98 | + ?pressure a ep-core:Pressure ; | ||
| 99 | + ep-core:atmosphere ?pressureInAtmospheres . | ||
| 100 | + } | ||
| 101 | + OPTIONAL { | ||
| 102 | + ?stateOfMaterialThatFlowsInPeriod a ?temperature . | ||
| 103 | + ?temperature a ep-core:Temperature ; | ||
| 104 | + ep-core:celsius ?temperatureInCelsius . | ||
| 105 | + } | ||
| 106 | + ?stateOfMaterialThatFlowsInPeriod a ?volume . | ||
| 107 | + ?volume a ep-core:Volume ; | ||
| 108 | + ep-core:metre3 ?volumeInMetre3 . | ||
| 109 | + OPTIONAL { | ||
| 110 | + ?stateOfMaterialThatFlowsInPeriod ep-flow:grossCalorificValue ?calorificValue . | ||
| 111 | + ?calorificValue ep-core:megajoule_m-3 ?grossCalorificValueInMegaJouleMetre_3 . | ||
| 112 | + } | ||
| 113 | + } | ||
| 114 | + } | ||
| 115 | + } | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | +}"><!-- next: define a view of the productionFlow based on the table above --> | ||
| 119 | + <!-- ui:resourceView ui:resource="{= ?productionFlow }"/--> | ||
| 120 | + <h3>{= ?productionFlowName }</h3> | ||
| 121 | + <table> | ||
| 122 | + | ||
| 123 | + <tr><td class="nameValueName">type:</td><td class="nameValueValue">{= ?productionFlowDefinitionTypeName | ||
| 124 | + }</td></tr> | ||
| 125 | +<tr><td class="nameValueName">subtype:</td><td class="nameValueValue">{= ?productionFlowDefinitionSubTypeName }</td></tr> | ||
| 126 | +<tr><td class="nameValueName">purpose:</td><td class="nameValueValue">{= ?productionFlowPurposeTypeName }</td></tr> | ||
| 127 | +<tr><td class="nameValueName">product:</td><td class="nameValueValue">{= ?productFlowName }</td></tr> | ||
| 128 | +<tr><td class="nameValueName">material type:</td><td class="nameValueValue">{= ?productFlowMaterialTypeName }</td></tr> | ||
| 129 | +<tr><td class="nameValueName">gross or net:</td><td class="nameValueValue">{= ?productFlowGrossOrNetTypeName }</td></tr> | ||
| 130 | +<tr><td class="nameValueName">duration type:</td><td class="nameValueValue">{= ?productFlowInPeriodDurationTypeName }</td></tr> | ||
| 131 | +<tr><td class="nameValueName">mass (kg):</td><td class="nameValueValue">{= ?massInKilograms }</td></tr> | ||
| 132 | +<tr><td class="nameValueName">pressure (atm):</td><td class="nameValueValue">{= ?pressureInAtmospheres }</td></tr> | ||
| 133 | +<tr><td class="nameValueName">temperature (C°):</td><td class="nameValueValue">{= ?temperatureInCelsius }</td></tr> | ||
| 134 | +<tr><td class="nameValueName">volume (m<sup>3</sup>):</td><td class="nameValueValue">{= ?volumeInMetre3 }</td></tr> | ||
| 135 | +<tr><td class="nameValueName">gross calorific value (MJ/m<sup>3</sup>):</td><td class="nameValueValue">{= ?grossCalorificValueInMegaJouleMetre_3 }</td></tr> | ||
| 136 | + | ||
| 137 | + | ||
| 138 | + </table> | ||
| 139 | + </ui:forEach> | ||
| 140 | + | ||
| 141 | + | ||
| 3 | </ui:group> | 142 | </ui:group> |
| 143 | + | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | # baseURI: http://www.reportinghub.no/swp/mprg | 1 | # baseURI: http://www.reportinghub.no/swp/mprg |
| 2 | # imports: http://uispin.org/tui | 2 | # imports: http://uispin.org/tui |
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
| 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report |
| 4 | # imports: http://www.reportinghub.no/ep/spin/ddr-tables | 5 | # imports: http://www.reportinghub.no/ep/spin/ddr-tables |
| 5 | # imports: http://www.reportinghub.no/spin/rh | 6 | # imports: http://www.reportinghub.no/spin/rh |
| ... | @@ -28,6 +29,20 @@ arg:template | ... | @@ -28,6 +29,20 @@ arg:template |
| 28 | rdfs:label "template"^^xsd:string ; | 29 | rdfs:label "template"^^xsd:string ; |
| 29 | rdfs:subPropertyOf sp:arg . | 30 | rdfs:subPropertyOf sp:arg . |
| 30 | 31 | ||
| 32 | +<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> | ||
| 33 | + ui:instanceView | ||
| 34 | + [ rdf:type html:P ; | ||
| 35 | + ui:child | ||
| 36 | + [ rdf:type html:B ; | ||
| 37 | + ui:child | ||
| 38 | + [ rdf:type ui:TextNode ; | ||
| 39 | + ui:childIndex 0 ; | ||
| 40 | + ui:text "this is another test"^^xsd:string | ||
| 41 | + ] ; | ||
| 42 | + ui:childIndex 0 | ||
| 43 | + ] | ||
| 44 | + ] . | ||
| 45 | + | ||
| 31 | <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> | 46 | <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> |
| 32 | ui:instanceView | 47 | ui:instanceView |
| 33 | [ rdf:type mprgswp:MPRGView ; | 48 | [ rdf:type mprgswp:MPRGView ; |
| ... | @@ -36,7 +51,7 @@ arg:template | ... | @@ -36,7 +51,7 @@ arg:template |
| 36 | 51 | ||
| 37 | <http://www.reportinghub.no/swp/mprg> | 52 | <http://www.reportinghub.no/swp/mprg> |
| 38 | rdf:type owl:Ontology ; | 53 | rdf:type owl:Ontology ; |
| 39 | - owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/spin/rh> ; | 54 | + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/production> ; |
| 40 | owl:versionInfo "0.1.0"^^xsd:string . | 55 | owl:versionInfo "0.1.0"^^xsd:string . |
| 41 | 56 | ||
| 42 | mprgswp:MPRGView | 57 | mprgswp:MPRGView |
| ... | @@ -55,4 +70,12 @@ mprgswp:MPRGView | ... | @@ -55,4 +70,12 @@ mprgswp:MPRGView |
| 55 | html:rel "stylesheet"^^xsd:string ; | 70 | html:rel "stylesheet"^^xsd:string ; |
| 56 | html:type "text/css"^^xsd:string | 71 | html:type "text/css"^^xsd:string |
| 57 | ] ; | 72 | ] ; |
| 73 | + ui:headIncludes | ||
| 74 | + [ rdf:type html:Title ; | ||
| 75 | + ui:child | ||
| 76 | + [ rdf:type ui:TextNode ; | ||
| 77 | + ui:childIndex 0 ; | ||
| 78 | + ui:text "Monthly Production Report (government)"^^xsd:string | ||
| 79 | + ] | ||
| 80 | + ] ; | ||
| 58 | ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | 81 | ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | ... | ... |
-
Please register or login to post a comment