Bob DuCharme

trying to output MPRG using rhspin:MPRGTableTemplates

1 -<ui:group let:facilityName="{# SELECT DISTINCT 1 +<ui:group
2 -?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"> 2 +let:report="{# SELECT ?report WHERE { ?report a ep-prodreport:ProductionReport . } }"
3 -<h1></h1> 3 +>
4 +
5 +<!--
6 +
7 +let:facilityName="{# SELECT DISTINCT
8 +?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"
9 +
10 +-->
11 +
4 <h1>{= ?facilityName } Field</h1> 12 <h1>{= ?facilityName } Field</h1>
5 13
6 - <ui:forEach ui:resultSet="{# 14 +<!-- <ui:forEach ui:resultSet="{#
7 SELECT 15 SELECT
8 ?productionFlowFacilityName 16 ?productionFlowFacilityName
9 ?productionFlowName 17 ?productionFlowName
...@@ -115,8 +123,7 @@ OPTIONAL { ...@@ -115,8 +123,7 @@ OPTIONAL {
115 } 123 }
116 } 124 }
117 125
118 -}"><!-- next: define a view of the productionFlow based on the table above --> 126 +}">
119 - <!-- ui:resourceView ui:resource="{= ?productionFlow }"/-->
120 <h3>{= ?productionFlowName }</h3> 127 <h3>{= ?productionFlowName }</h3>
121 <table> 128 <table>
122 129
...@@ -136,8 +143,12 @@ OPTIONAL { ...@@ -136,8 +143,12 @@ OPTIONAL {
136 143
137 144
138 </table> 145 </table>
139 - </ui:forEach>
140 146
147 + </ui:forEach> -->
148 +
149 + <p>template test start</p>
150 + <ddrswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlows" />
151 + <p>template test end</p>
141 152
142 </ui:group> 153 </ui:group>
143 154
...\ 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
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production-report 3 # imports: http://www.reportinghub.no/ep/schema/1.0/production-report
5 # imports: http://www.reportinghub.no/ep/spin/ddr-tables 4 # imports: http://www.reportinghub.no/ep/spin/ddr-tables
5 +# imports: http://www.reportinghub.no/ep/spin/mpr-tables
6 # imports: http://www.reportinghub.no/spin/rh 6 # imports: http://www.reportinghub.no/spin/rh
7 7
8 @prefix arg: <http://spinrdf.org/arg#> . 8 @prefix arg: <http://spinrdf.org/arg#> .
...@@ -51,7 +51,7 @@ arg:template ...@@ -51,7 +51,7 @@ arg:template
51 51
52 <http://www.reportinghub.no/swp/mprg> 52 <http://www.reportinghub.no/swp/mprg>
53 rdf:type owl:Ontology ; 53 rdf:type owl:Ontology ;
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> ; 54 + 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> ;
55 owl:versionInfo "0.1.0"^^xsd:string . 55 owl:versionInfo "0.1.0"^^xsd:string .
56 56
57 mprgswp:MPRGView 57 mprgswp:MPRGView
...@@ -65,12 +65,6 @@ mprgswp:MPRGView ...@@ -65,12 +65,6 @@ mprgswp:MPRGView
65 spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> 65 spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
66 ] ; 66 ] ;
67 ui:headIncludes 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 ; 68 [ rdf:type html:Title ;
75 ui:child 69 ui:child
76 [ rdf:type ui:TextNode ; 70 [ rdf:type ui:TextNode ;
...@@ -78,4 +72,10 @@ mprgswp:MPRGView ...@@ -78,4 +72,10 @@ mprgswp:MPRGView
78 ui:text "Monthly Production Report (government)"^^xsd:string 72 ui:text "Monthly Production Report (government)"^^xsd:string
79 ] 73 ]
80 ] ; 74 ] ;
75 + ui:headIncludes
76 + [ rdf:type html:Link ;
77 + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
78 + html:rel "stylesheet"^^xsd:string ;
79 + html:type "text/css"^^xsd:string
80 + ] ;
81 ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . 81 ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
......