source: main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/dataviz/got-nul-point-by-year.xsl@ 35107

Last change on this file since 35107 was 35107, checked in by davidb, 3 years ago

New viz added

File size: 2.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
8 extension-element-prefixes="java util"
9 exclude-result-prefixes="java util">
10
11 <xsl:template name="ssv-got-nul-point-by-year">
12
13
14 <div id="ssv-got-nul-point-by-year" style="display: none;">
15
16<!-- Got nul-point in the final -->
17<xsl:text>
18PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
19PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
20PREFIX dc: &lt;http://purl.org/dc/elements/1.1/&gt;
21PREFIX gsdlextracted: &lt;http://greenstone.org/gsdlextracted#&gt;
22
23SELECT (xsd:integer(?year) as ?Year) (COUNT(?year) AS ?freqCount)
24WHERE {
25 GRAPH &lt;</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>&gt; {
26 ?esc_entrant_uri gsdlextracted:Country ?country.
27 ?esc_entrant_uri gsdlextracted:Year ?year.
28
29 ?esc_entrant_uri gsdlextracted:VoteGrandTotal ?total.
30 BIND(xsd:integer(?total) AS ?total_int).
31 FILTER(?total_int = 0).
32 }
33}
34GROUP BY ?year
35ORDER BY ASC(?year)
36</xsl:text>
37 </div>
38 <div id="ssv-got-nul-point-by-year-chart" style="display: none;">
39<!-- -->
40<xsl:text>
41google.visualization.ColumnChart
42</xsl:text>
43 </div>
44 <div id="ssv-got-nul-point-by-year-chart-options" style="display: none;">
45<!-- -->
46<xsl:text>
47title=Occurrence by year of countries receiving &quot;nul point&quot; in the final|height=300|chartArea.height=240|fontSize=11|vAxis.maxValue=6|hAxis.title=Year|hAxis.maxValue=2019|vAxis.title=Occurrences|hAxis.ticks=[1956,1958,1960]|hAxis.format='|legend=none
48</xsl:text>
49 </div>
50
51 <div id="ssv-got-nul-point-by-year-div-style" style="display: none;">
52<!-- -->
53<xsl:text>
54width:900px; height:300px; margin-left: auto; margin-right: auto; overflow-y: hidden; overflow-x: hidden;
55</xsl:text>
56
57 </div>
58
59 </xsl:template>
60
61</xsl:stylesheet>
62
Note: See TracBrowser for help on using the repository browser.