Showing
2 changed files
with
224 additions
and
61 deletions
| 1 | -<ui:group> | ||
| 2 | - This is a placeholder for MPRGov stuff. | ||
| 3 | -</ui:group> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<ui:group let:facilityName="{# SELECT DISTINCT | ||
| 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 | + | ||
| 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-report | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production |
| 4 | -# imports: http://www.reportinghub.no/ep/spin/ddr-tables | 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-report |
| 5 | -# imports: http://www.reportinghub.no/spin/rh | 5 | +# imports: http://www.reportinghub.no/ep/spin/ddr-tables |
| 6 | - | 6 | +# imports: http://www.reportinghub.no/spin/rh |
| 7 | -@prefix arg: <http://spinrdf.org/arg#> . | 7 | + |
| 8 | -@prefix html: <http://uispin.org/html#> . | 8 | +@prefix arg: <http://spinrdf.org/arg#> . |
| 9 | -@prefix let: <http://uispin.org/let#> . | 9 | +@prefix html: <http://uispin.org/html#> . |
| 10 | -@prefix letrs: <http://uispin.org/letrs#> . | 10 | +@prefix let: <http://uispin.org/let#> . |
| 11 | -@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> . | 11 | +@prefix letrs: <http://uispin.org/letrs#> . |
| 12 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 12 | +@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> . |
| 13 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 13 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 14 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 14 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 15 | -@prefix sp: <http://spinrdf.org/sp#> . | 15 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 16 | -@prefix spin: <http://spinrdf.org/spin#> . | 16 | +@prefix sp: <http://spinrdf.org/sp#> . |
| 17 | -@prefix spl: <http://spinrdf.org/spl#> . | 17 | +@prefix spin: <http://spinrdf.org/spin#> . |
| 18 | -@prefix ui: <http://uispin.org/ui#> . | 18 | +@prefix spl: <http://spinrdf.org/spl#> . |
| 19 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 19 | +@prefix ui: <http://uispin.org/ui#> . |
| 20 | - | 20 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 21 | -arg:report | 21 | + |
| 22 | - rdf:type rdf:Property ; | 22 | +arg:report |
| 23 | - rdfs:label "report"^^xsd:string ; | 23 | + rdf:type rdf:Property ; |
| 24 | - rdfs:subPropertyOf sp:arg . | 24 | + rdfs:label "report"^^xsd:string ; |
| 25 | - | 25 | + rdfs:subPropertyOf sp:arg . |
| 26 | -arg:template | 26 | + |
| 27 | - rdf:type rdf:Property ; | 27 | +arg:template |
| 28 | - rdfs:label "template"^^xsd:string ; | 28 | + rdf:type rdf:Property ; |
| 29 | - rdfs:subPropertyOf sp:arg . | 29 | + rdfs:label "template"^^xsd:string ; |
| 30 | - | 30 | + rdfs:subPropertyOf sp:arg . |
| 31 | -<http://www.reportinghub.no/ep/schema/production-report#ProductionReport> | 31 | + |
| 32 | - ui:instanceView | 32 | +<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> |
| 33 | - [ rdf:type mprgswp:MPRGView ; | 33 | + ui:instanceView |
| 34 | - arg:report spin:_this | 34 | + [ rdf:type html:P ; |
| 35 | - ] . | 35 | + ui:child |
| 36 | - | 36 | + [ rdf:type html:B ; |
| 37 | -<http://www.reportinghub.no/swp/mprg> | 37 | + ui:child |
| 38 | - rdf:type owl:Ontology ; | 38 | + [ rdf:type ui:TextNode ; |
| 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> ; | 39 | + ui:childIndex 0 ; |
| 40 | - owl:versionInfo "0.1.0"^^xsd:string . | 40 | + ui:text "this is another test"^^xsd:string |
| 41 | - | 41 | + ] ; |
| 42 | -mprgswp:MPRGView | 42 | + ui:childIndex 0 |
| 43 | - rdf:type ui:NodeClass ; | 43 | + ] |
| 44 | - rdfs:label "MPRG view"^^xsd:string ; | 44 | + ] . |
| 45 | - rdfs:subClassOf ui:Element ; | 45 | + |
| 46 | - spin:constraint | 46 | +<http://www.reportinghub.no/ep/schema/production-report#ProductionReport> |
| 47 | - [ rdf:type spl:Argument ; | 47 | + ui:instanceView |
| 48 | - rdfs:comment "The report to display."^^xsd:string ; | 48 | + [ rdf:type mprgswp:MPRGView ; |
| 49 | - spl:predicate arg:report ; | 49 | + arg:report spin:_this |
| 50 | - spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> | 50 | + ] . |
| 51 | - ] ; | 51 | + |
| 52 | - ui:headIncludes | 52 | +<http://www.reportinghub.no/swp/mprg> |
| 53 | - [ rdf:type html:Link ; | 53 | + rdf:type owl:Ontology ; |
| 54 | - html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | 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> ; |
| 55 | - html:rel "stylesheet"^^xsd:string ; | 55 | + owl:versionInfo "0.1.0"^^xsd:string . |
| 56 | - html:type "text/css"^^xsd:string | 56 | + |
| 57 | - ] ; | 57 | +mprgswp:MPRGView |
| 58 | - ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | 58 | + rdf:type ui:NodeClass ; |
| 59 | + rdfs:label "MPRG view"^^xsd:string ; | ||
| 60 | + rdfs:subClassOf ui:Element ; | ||
| 61 | + spin:constraint | ||
| 62 | + [ rdf:type spl:Argument ; | ||
| 63 | + rdfs:comment "The report to display."^^xsd:string ; | ||
| 64 | + spl:predicate arg:report ; | ||
| 65 | + spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> | ||
| 66 | + ] ; | ||
| 67 | + ui:headIncludes | ||
| 68 | + [ rdf:type html:Link ; | ||
| 69 | + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | ||
| 70 | + html:rel "stylesheet"^^xsd:string ; | ||
| 71 | + html:type "text/css"^^xsd:string | ||
| 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 | + ] ; | ||
| 81 | + ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | ... | ... |
-
Please register or login to post a comment