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>
|
---|
18 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
---|
19 | PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
---|
20 | PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
---|
21 | PREFIX gsdlextracted: <http://greenstone.org/gsdlextracted#>
|
---|
22 |
|
---|
23 | SELECT (xsd:integer(?year) as ?Year) (COUNT(?year) AS ?freqCount)
|
---|
24 | WHERE {
|
---|
25 | GRAPH <</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>> {
|
---|
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 | }
|
---|
34 | GROUP BY ?year
|
---|
35 | ORDER 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>
|
---|
41 | google.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>
|
---|
47 | title=Occurrence by year of countries receiving "nul point" 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>
|
---|
54 | width: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 |
|
---|