- Timestamp:
- 2021-04-11T17:56:13+12:00 (3 years ago)
- Location:
- main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/about.xsl
r35047 r35056 180 180 ); 181 181 </gsf:script> 182 182 183 <xsl:variable name="graphURI">https://so-we-must-think.space<xsl:value-of select="$siteURL"/><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collName"/></xsl:variable> 183 184 <div id="sgvizler2-country-count" 184 185 data-sgvizler-endpoint="//sowemustthink.space/greenstone3-lod3/greenstone/query" … … 192 193 SELECT (?country) (COUNT(?country) AS ?freqCount) 193 194 WHERE { 194 GRAPH < http://localhost:4040/greenstone/data/<xsl:value-of select="$collName"/>> {195 GRAPH <<xsl:value-of select="$graphURI"/>> { 195 196 ?s gsdlextracted:Country ?country 196 197 } -
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/sgvizler.xsl
r35054 r35056 9 9 exclude-result-prefixes="java util"> 10 10 11 12 11 <!-- use the 'main' layout --> 13 12 <xsl:import href="layouts/main.xsl"/> 14 13 15 <xsl:import href="dataviz/made-the-final.xsl"/> 16 <xsl:import href="dataviz/list-of-winners.xsl"/> 17 <xsl:import href="dataviz/list-of-losers.xsl"/> 18 <xsl:import href="dataviz/got-nul-point.xsl"/> 19 <xsl:import href="dataviz/got-nul-point-after-winning.xsl"/> 20 <xsl:import href="dataviz/voting-dataflow-jury.xsl"/> 21 <xsl:import href="dataviz/voting-dataflow-tele.xsl"/> 22 <xsl:import href="dataviz/draw-bias.xsl"/> 23 <xsl:import href="dataviz/draw-bias-normalized.xsl"/> 14 15 <xsl:variable name="graphURI">https://so-we-must-think.space<xsl:value-of select="$siteURL"/><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collName"/></xsl:variable> 16 17 <xsl:include href="dataviz/made-the-final.xsl"/> 18 <xsl:include href="dataviz/list-of-winners.xsl"/> 19 <xsl:include href="dataviz/list-of-losers.xsl"/> 20 <xsl:include href="dataviz/got-nul-point.xsl"/> 21 <xsl:include href="dataviz/got-nul-point-after-winning.xsl"/> 22 <xsl:include href="dataviz/voting-dataflow-jury.xsl"/> 23 <xsl:include href="dataviz/voting-dataflow-tele.xsl"/> 24 <xsl:include href="dataviz/draw-bias.xsl"/> 25 <xsl:include href="dataviz/draw-bias-normalized.xsl"/> 24 26 25 27 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable> … … 116 118 117 119 <script type="text/javascript" src="ext/jena/sgvizler2/sgvizler2.js"><xsl:text> </xsl:text></script> 118 119 120 <div class="page moreindent"> 120 121 <form class="sgvizler-form" id="sample-sparql-query-form" … … 216 217 SELECT (?country) (COUNT(?country) AS ?freqCount) 217 218 WHERE { 218 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {219 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 219 220 ?s gsdlextracted:Country ?country. 220 221 } -
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/sparql.xsl
r35047 r35056 121 121 </div> 122 122 123 <xsl:variable name="graphURI">https://so-we-must-think.space<xsl:value-of select="$siteURL"/><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collName"/></xsl:variable> 124 123 125 <div class="moreindent"> 124 126 <form id="sample-sparql-query-form" action="/greenstone3-lod3/greenstone/query" target="_blank" … … 131 133 132 134 SELECT ?subject ?predicate ?object WHERE { 133 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {135 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 134 136 ?subject ?predicate ?object. 135 137 } … … 194 196 195 197 SELECT ?subject ?predicate ?object WHERE { 196 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {198 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 197 199 ?subject ?predicate ?object. 198 200 ?subject gsdlextracted:Year "2000". … … 209 211 210 212 SELECT ?subject ?predicate ?object WHERE { 211 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {213 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 212 214 ?subject ?predicate ?object. 213 215 ?subject gsdlextracted:Year "2000". … … 230 232 231 233 SELECT ?subject ?predicate ?object WHERE { 232 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {234 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 233 235 ?subject ?predicate ?object 234 236 … … 257 259 258 260 SELECT ?esc_entrant_uri ?country ?year WHERE { 259 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {260 ?esc_entrant_uri dc:Relation.isPartOf < http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>>.261 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 262 ?esc_entrant_uri dc:Relation.isPartOf <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>>. 261 263 262 264 ?esc_entrant_uri gsdlextracted:Year ?year. … … 277 279 278 280 SELECT ?country ?year ?total WHERE { 279 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {280 ?esc_entrant_uri dc:Relation.isPartOf < http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>>.281 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 282 ?esc_entrant_uri dc:Relation.isPartOf <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>>. 281 283 282 284 ?esc_entrant_uri gsdlextracted:SingVotesTotal ?total. … … 301 303 302 304 SELECT ?country ?year ?jury_country ?jury_vote WHERE { 303 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {304 ?esc_entrant_uri dc:Relation.isPartOf < http://127.0.0.1:8383/greenstone3/library/collection/</xsl:text><xsl:value-of select="$collName"/><xsl:text>>.305 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 306 ?esc_entrant_uri dc:Relation.isPartOf <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>>. 305 307 306 308 ?esc_entrant_uri ?gsdlextracted_jury_country_uri ?jury_vote. … … 328 330 PREFIX dc: <http://purl.org/dc/elements/1.1/> 329 331 330 331 332 SELECT ?year ?country ?total_max WHERE { 332 GRAPH < http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> {333 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 333 334 334 335 { … … 365 366 366 367 SELECT ?country (STR(COUNT(?country)) as ?number_of_vote_wins) WHERE { 367 GRAPH <http://localhost:4040/greenstone/data/</xsl:text><xsl:value-of select="$collName"/><xsl:text>> { 368 369 368 GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> { 370 369 { 371 SELECT ?year (STR(MAX(?total_int)) as ?total_max) WHERE { 372 373 370 SELECT ?year (STR(MAX(?total_int)) as ?total_max) WHERE { 374 371 ?esc_entrant_uri gsdlextracted:VoteGrandTotal ?total. 375 372 BIND(xsd:integer(?total) AS ?total_int). … … 412 409 ?currency ?gdpPppPerCapita ?giniCoefficient WHERE { 413 410 414 # SERVICE <https://dbpedia.demo.openlinksw.com/sparql> {415 411 SERVICE <https://dbpedia.org/sparql> { 416 412
Note:
See TracChangeset
for help on using the changeset viewer.