Changeset 35010
- Timestamp:
- 2021-04-04T20:16:58+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/sgvizler.xsl
r34972 r35010 12 12 <!-- use the 'main' layout --> 13 13 <xsl:import href="layouts/main.xsl"/> 14 14 <xsl:import href="dataviz/made-the-final.xsl"/> 15 <xsl:import href="dataviz/got-nul-point.xsl"/> 16 <xsl:import href="dataviz/voting-dataflow-jury.xsl"/> 17 <xsl:import href="dataviz/voting-dataflow-tele.xsl"/> 18 15 19 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable> 16 20 <!-- set page title --> … … 72 76 <!-- --> 73 77 <xsl:text> 78 <!-- 74 79 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 75 80 PREFIX gsdlextracted: <http://greenstone.org/gsdlextracted#> … … 81 86 } 82 87 GROUP BY ?country ORDER BY DESC(?freqCount) 83 </xsl:text>84 </textarea>85 <!--86 <pre>sgvizler-div:</pre>87 <textarea id="sample-sgvizler-div" name="sgvizler-div" class="sgvizler" rows="7">88 89 <xsl:text>90 <div id="sgvizler-div"91 data-sgvizler-endpoint="//sowemustthink.space/greenstone3-lod3/greenstone/query"92 data-sgvizler-chart="google.visualization.BarChart"93 data-sgvizler-chart-options="title=Number of Songs from each Country (sorted by size)|legend.position=none|height=900|chartArea.height=840|fontSize=11"94 data-sgvizler-log="2">95 </div>96 </xsl:text>97 </textarea>98 88 --> 99 89 </xsl:text> 90 </textarea> 100 91 101 92 <pre>data-sgvizler-endpoint:</pre> … … 148 139 $(document).ready( 149 140 function() { 141 ssv_load("ssv-orig"); 150 142 ssv_execute(); 151 143 } … … 172 164 </p> 173 165 174 <div id="ssv-made-the-final" style="display: none;"> 175 176 <!-- Made the finals --> 166 167 168 <div id="ssv-orig" style="display: none;"> 169 <!-- --> 177 170 <xsl:text> 178 171 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> … … 182 175 GRAPH <http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> { 183 176 ?s gsdlextracted:Country ?country. 184 ?s gsdlextracted:Final "true"185 177 } 186 178 } 187 GROUP BY ?country ORDER BY DESC(?freqCount) 188 </xsl:text> 189 </div> 190 179 GROUP BY ?country ORDER BY DESC(?freqCount) 180 </xsl:text> 181 </div> 182 <div id="ssv-orig-endpoint" style="display: none;"> 183 <!-- --> 184 <xsl:text> 185 //sowemustthink.space/greenstone3-lod3/greenstone/query 186 </xsl:text> 187 </div> 188 <div id="ssv-orig-chart" style="display: none;"> 189 <!-- --> 190 <xsl:text> 191 google.visualization.BarChart 192 </xsl:text> 193 </div> 194 <div id="ssv-orig-chart-options" style="display: none;"> 195 <!-- --> 196 <xsl:text> 197 title=Number of Songs from each Country (sorted by size)|legend.position=none|height=900|chartArea.height=840|fontSize=11 198 </xsl:text> 199 </div> 200 <div id="ssv-orig-div-style" style="display: none;"> 201 <!-- --> 202 <xsl:text> 203 width:900px; height:300px; margin-left: auto; margin-right: auto; overflow-y: scroll; overflow-x: hidden; 204 </xsl:text> 205 </div> 206 207 208 <xsl:call-template name="ssv-made-the-final"/> 209 <xsl:call-template name="ssv-got-nul-point"/> 210 <xsl:call-template name="ssv-voting-dataflow-jury"/> 211 <xsl:call-template name="ssv-voting-dataflow-tele"/> 212 191 213 192 214 <ul class="ssq"> 215 <li> 216 Number of times entered, sorted by frequency:<br/> 217 <button type="button" class="load-ssq" id="load-ssv-orig" onclick="ssv_load('ssv-orig')">Load query above</button> 218 <button type="button" class="exec-ssq" id="exec-ssv-orig" onclick="ssv_execute()">Visualize Results</button><br/> 219 Plot as a bar graph the number of times each country has completed in the 220 Eurovision Song Contest, sorted by frequency. 221 </li> 222 193 223 <li> 194 224 Made the Finals:<br/> … … 198 228 </li> 199 229 230 <li> 231 The ignominy of "nul point":<br/> 232 <button type="button" class="load-ssq" id="load-ssv-got-nul-point" onclick="ssv_load('ssv-got-nul-point')">Load query above</button> 233 <button type="button" class="exec-ssq" id="exec-ssv-got-nul-point" onclick="ssv_execute()">Visualize Results</button><br/> 234 Plot as a bar graph the number of times each country has made it to the finals. 235 </li> 236 237 238 <li> 239 Dataflow Voting Patterns of Juries:<br/> 240 <button type="button" class="load-ssq" id="load-ssv-voting-dataflow-jury" onclick="ssv_load('ssv-voting-dataflow-jury')">Load query above</button> 241 <button type="button" class="exec-ssq" id="exec-ssv-voting-dataflow-jury" onclick="ssv_execute()">Visualize Results</button><br/> 242 243 Plot as a Sankey Dataflow Graph how juries allocate 244 their votes to countries over the years 2010-2019. 245 Note: to help emphaisze the voting patterns, we plot 246 the <i>square</i> of the voting totals. 247 248 249 Experiment with editing the date range specified in 250 the <tt>FILTER(xsd:integer(?year) > 2010 251 && xsd:integer(?year) <= 2019)</tt> clause 252 in the above text box and then press <i>Show 253 Visualization</i> to see how the voting by jury has 254 changed over the decades. 255 256 257 </li> 258 259 260 261 <li> 262 Dataflow Voting Patterns in Televoting:<br/> 263 <button type="button" class="load-ssq" id="load-ssv-voting-dataflow-tele" onclick="ssv_load('ssv-voting-dataflow-tele')">Load query above</button> 264 <button type="button" class="exec-ssq" id="exec-ssv-voting-dataflow-tele" onclick="ssv_execute()">Visualize Results</button><br/> 265 266 Plot as a Sankey Dataflow Graph of the televoting 267 data by coutnry. Years plotted are 2018-2019 268 as these are the only years the data has been 269 published separate to jury voting. As with 270 the Jury Sankey visual above, we plot 271 the <i>square</i> of the voting totals to 272 help emphasize where differences occur. 273 274 </li> 275 276 277 200 278 201 279 </ul> … … 204 282 </xsl:template> 205 283 206 207 284 </xsl:stylesheet> 208 285
Note:
See TracChangeset
for help on using the changeset viewer.