Changeset 35097


Ignore:
Timestamp:
2021-04-22T14:58:32+12:00 (3 years ago)
Author:
davidb
Message:

Minor tidy up. Also introduced commented-out block of code for showing from 'first place to last place' as alternative to 'from hero to zero'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/dataviz/got-nul-point-after-winning.xsl

    r35056 r35097  
    2121PREFIX gsdlextracted: <http://greenstone.org/gsdlextracted#>
    2222
    23 SELECT (?country) (COUNT(?country) AS ?freqCount)       
     23SELECT (?country AS ?Country) (COUNT(?country) AS ?freqCount)       
    2424WHERE {
    2525    GRAPH &lt;</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>&gt;  {
    26 #        ?esc_entrant_uri dc:Relation.isPartOf &lt;</xsl:text><xsl:value-of select="$graphURI"/><xsl:text>&gt;.
    27 
    2826        ?esc_entrant_uri gsdlextracted:Country ?country.
    2927    ?esc_entrant_uri gsdlextracted:Place ?place.
     
    3533    BIND(?year_int + 1 AS ?next_year_int).
    3634    BIND(str(?next_year_int) AS ?next_year).
    37    
    38 #        ?esc_entrant_uri gsdlextracted:Final "true".
    3935
    4036        ?next_esc_entrant_uri gsdlextracted:Country ?country.
    4137    ?next_esc_entrant_uri gsdlextracted:Year ?next_year.
    42    
     38
     39    # The following block tests for 'nul point'
    4340        ?next_esc_entrant_uri gsdlextracted:VoteGrandTotal ?total.
    4441        BIND(xsd:integer(?total) AS ?total_int).
    45         FILTER(?total_int = 0).   
     42        FILTER(?total_int = 0).
     43
     44    # If you want to see who went from first to last place
     45    # (which could still mean you scored some points) then
     46    # comment out the block above, and uncommment the following
     47    # one
     48
     49#        ?next_esc_entrant_uri gsdlextracted:ReverseFinishingPos ?rev_finishing_pos.
     50#        BIND(xsd:integer(?rev_finishing_pos) AS ?rev_finishing_pos_int).
     51#        FILTER(?rev_finishing_pos_int = 1).
    4652   }
    4753}
Note: See TracChangeset for help on using the changeset viewer.