Bob DuCharme

trying to output MPRG using rhspin:MPRGTableTemplates

<ui:group let:facilityName="{# SELECT DISTINCT
?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }">
<h1></h1>
<ui:group
let:report="{# SELECT ?report WHERE { ?report a ep-prodreport:ProductionReport . } }"
>
<!--
let:facilityName="{# SELECT DISTINCT
?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"
-->
<h1>{= ?facilityName } Field</h1>
<ui:forEach ui:resultSet="{#
<!-- <ui:forEach ui:resultSet="{#
SELECT
?productionFlowFacilityName
?productionFlowName
......@@ -115,8 +123,7 @@ OPTIONAL {
}
}
}"><!-- next: define a view of the productionFlow based on the table above -->
<!-- ui:resourceView ui:resource="{= ?productionFlow }"/-->
}">
<h3>{= ?productionFlowName }</h3>
<table>
......@@ -136,8 +143,12 @@ OPTIONAL {
</table>
</ui:forEach>
</ui:forEach> -->
<p>template test start</p>
<ddrswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlows" />
<p>template test end</p>
</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
# 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/ep/spin/mpr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
......@@ -51,7 +51,7 @@ arg:template
<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:imports <http://www.reportinghub.no/ep/spin/mpr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://uispin.org/tui> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
......@@ -65,12 +65,6 @@ mprgswp:MPRGView
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 ;
......@@ -78,4 +72,10 @@ mprgswp:MPRGView
ui:text "Monthly Production Report (government)"^^xsd:string
]
] ;
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> .
......