Bob DuCharme

MPRG now includes some data

<ui:group>
This is a placeholder for MPRGov stuff.
</ui:group>
\ No newline at end of file
<ui:group let:facilityName="{# SELECT DISTINCT
?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }">
<h1></h1>
<h1>{= ?facilityName } Field</h1>
<ui:forEach ui:resultSet="{#
SELECT
?productionFlowFacilityName
?productionFlowName
?productionFlowDefinitionTypeName
?productionFlowDefinitionSubTypeName
?productionFlowPurposeTypeName
?productFlowName
?productFlowMaterialTypeName
?productFlowGrossOrNetTypeName
?productFlowInPeriodDurationTypeName
?massInKilograms
?pressureInAtmospheres
?temperatureInCelsius
?volumeInMetre3
?grossCalorificValueInMegaJouleMetre_3
WHERE
{
?productionReport a ep-prodreport:ProductionReport .
?productVolumeReport ep-core:partOf ?productionReport ;
a ep-prodreport:ProductVolumeReport .
?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
?productionFlowsInReportingPeriod a ep-flow:ProductionFlow ;
ep-flow:hasNetworkPart ?productionFlowInReportingPeriod .
?productionFlowInReportingPeriod ep-core:temporalPartOf ?productionFlow .
?productionFlow a ep-flow:WholeLifeProductionFlow ;
ep-flow:flowIntoOrOutOf ?productionFlowFacility .
?productionFlowFacility npd:name ?productionFlowFacilityName .
OPTIONAL {
?productionFlow rdfs:label ?productionFlowName .
}
OPTIONAL {
?productionFlow a ?productionFlowDefinitionType .
?productionFlowDefinitionType a ep-flow:ProductionFlowDefinitionType ;
rdfs:label ?productionFlowDefinitionTypeName .
}
OPTIONAL {
?productionFlow a ?productionFlowDefinitionSubType .
?productionFlowDefinitionSubType a ep-flow:ProductionFlowDefinitionSubType ;
rdfs:label ?productionFlowDefinitionSubTypeName .
}
OPTIONAL {
?productionFlow a ?productionFlowPurposeType .
?productionFlowPurposeType a ep-flow:ProductionFlowPurposeType ;
rdfs:label ?productionFlowPurposeTypeName .
}
OPTIONAL {
?productionFlowInReportingPeriod ep-flow:hasMixedPart ?productFlowInReportingPeriod .
?productFlowInReportingPeriod a ep-flow:ProductFlow .
OPTIONAL {
?productFlowInReportingPeriod ep-core:temporalPartOf ?productFlow .
?productFlow a ep-flow:WholeLifeProductFlow .
OPTIONAL {
?productFlow rdfs:label ?productFlowName .
}
OPTIONAL {
?productFlow a ?productFlowMaterialType .
?productFlowMaterialType a ep-flow:ProductMaterialType ;
rdfs:label ?productFlowMaterialTypeName .
}
OPTIONAL {
?productFlow a ?productFlowGrossOrNetType .
?productFlowGrossOrNetType a ep-flow:ProductFlowGrossOrNetType ;
rdfs:label ?productFlowGrossOrNetTypeName .
}
OPTIONAL {
?productFlowInPeriod ep-core:temporalPartOf ?productFlowInReportingPeriod .
OPTIONAL {
?productFlowInPeriod a ?productFlowInPeriodDurationType .
?productFlowInPeriodDurationType a ep-flow:TemporalPartOfAFlowDurationType ;
rdfs:label ?productFlowInPeriodDurationTypeName .
}
?productFlowInPeriod ep-flow:materialThatFlows ?materialThatFlowsInPeriod .
OPTIONAL {
?materialThatFlowsInPeriod a ?mass .
?mass a ep-core:Mass ;
ep-core:kilogram ?massInKilograms .
}
?stateOfMaterialThatFlowsInPeriod ep-core:temporalPartOf ?materialThatFlowsInPeriod .
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod a ?pressure .
?pressure a ep-core:Pressure ;
ep-core:atmosphere ?pressureInAtmospheres .
}
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod a ?temperature .
?temperature a ep-core:Temperature ;
ep-core:celsius ?temperatureInCelsius .
}
?stateOfMaterialThatFlowsInPeriod a ?volume .
?volume a ep-core:Volume ;
ep-core:metre3 ?volumeInMetre3 .
OPTIONAL {
?stateOfMaterialThatFlowsInPeriod ep-flow:grossCalorificValue ?calorificValue .
?calorificValue ep-core:megajoule_m-3 ?grossCalorificValueInMegaJouleMetre_3 .
}
}
}
}
}
}"><!-- next: define a view of the productionFlow based on the table above -->
<!-- ui:resourceView ui:resource="{= ?productionFlow }"/-->
<h3>{= ?productionFlowName }</h3>
<table>
<tr><td class="nameValueName">type:</td><td class="nameValueValue">{= ?productionFlowDefinitionTypeName
}</td></tr>
<tr><td class="nameValueName">subtype:</td><td class="nameValueValue">{= ?productionFlowDefinitionSubTypeName }</td></tr>
<tr><td class="nameValueName">purpose:</td><td class="nameValueValue">{= ?productionFlowPurposeTypeName }</td></tr>
<tr><td class="nameValueName">product:</td><td class="nameValueValue">{= ?productFlowName }</td></tr>
<tr><td class="nameValueName">material type:</td><td class="nameValueValue">{= ?productFlowMaterialTypeName }</td></tr>
<tr><td class="nameValueName">gross or net:</td><td class="nameValueValue">{= ?productFlowGrossOrNetTypeName }</td></tr>
<tr><td class="nameValueName">duration type:</td><td class="nameValueValue">{= ?productFlowInPeriodDurationTypeName }</td></tr>
<tr><td class="nameValueName">mass (kg):</td><td class="nameValueValue">{= ?massInKilograms }</td></tr>
<tr><td class="nameValueName">pressure (atm):</td><td class="nameValueValue">{= ?pressureInAtmospheres }</td></tr>
<tr><td class="nameValueName">temperature (C&#176;):</td><td class="nameValueValue">{= ?temperatureInCelsius }</td></tr>
<tr><td class="nameValueName">volume (m<sup>3</sup>):</td><td class="nameValueValue">{= ?volumeInMetre3 }</td></tr>
<tr><td class="nameValueName">gross calorific value (MJ/m<sup>3</sup>):</td><td class="nameValueValue">{= ?grossCalorificValueInMegaJouleMetre_3 }</td></tr>
</table>
</ui:forEach>
</ui:group>
\ No newline at end of file
......
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/spin/ddr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:report
rdf:type rdf:Property ;
rdfs:label "report"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
ui:instanceView
[ rdf:type mprgswp:MPRGView ;
arg:report spin:_this
] .
<http://www.reportinghub.no/swp/mprg>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
rdf:type ui:NodeClass ;
rdfs:label "MPRG view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report to display."^^xsd:string ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# imports: http://www.reportinghub.no/ep/spin/ddr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:report
rdf:type rdf:Property ;
rdfs:label "report"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
ui:instanceView
[ rdf:type html:P ;
ui:child
[ rdf:type html:B ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "this is another test"^^xsd:string
] ;
ui:childIndex 0
]
] .
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
ui:instanceView
[ rdf:type mprgswp:MPRGView ;
arg:report spin:_this
] .
<http://www.reportinghub.no/swp/mprg>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
rdf:type ui:NodeClass ;
rdfs:label "MPRG view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report to display."^^xsd:string ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:headIncludes
[ rdf:type html:Title ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "Monthly Production Report (government)"^^xsd:string
]
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
......