Changeset 35064


Ignore:
Timestamp:
2021-04-12T20:48:08+12:00 (3 years ago)
Author:
davidb
Message:

Updated query to use DISTINCT (and inner SELECT), since countries have more than on entry in 1956

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/sgvizler.xsl

    r35056 r35064  
    211211
    212212        <div id="ssv-orig" style="display: none;">
    213 <!-- -->
    214 <xsl:text>
     213          <!--
    215214PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
    216215PREFIX gsdlextracted: &lt;http://greenstone.org/gsdlextracted#&gt;
     
    222221}
    223222GROUP BY ?country ORDER BY DESC(?freqCount)
     223-->
     224<!-- -->
     225<xsl:text>
     226PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
     227PREFIX gsdlextracted: &lt;http://greenstone.org/gsdlextracted#&gt;
     228
     229SELECT ?country (COUNT(?country) AS ?freqCount)     
     230WHERE {
     231    GRAPH &lt;</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>&gt;  {
     232        {
     233            SELECT DISTINCT ?country ?year WHERE {
     234                ?s gsdlextracted:Country ?country.
     235                ?s gsdlextracted:Year ?year.
     236           } ORDER BY ?country ?year
     237        }
     238    }
     239}
     240GROUP BY ?country ORDER BY DESC(?freqCount)
     241
    224242</xsl:text>
    225243        </div>
Note: See TracChangeset for help on using the changeset viewer.