Changeset 34791
- Timestamp:
- 2021-02-02T12:00:44+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/transform/pages/about.xsl
r34708 r34791 13 13 14 14 15 <xsl:template name="coll-description"> 15 <xsl:template name="coll-description"> 16 <div id="about-desc"> 17 <h2>Introduction</h2> 18 <p style="padding-bottom: 10px;"> 19 The <a href="https://eurovision.tv">Eurovision Song 20 Content</a> is a live-broadcast televised event that 21 was first held in 1956 featuring artists singing original songs from 22 7 countries. Since then it has grown into an event involving 23 over 40 countries, and streamed all around the world. ... 24 25 </p> 26 27 <p> 28 The aim of this site is to demonstrate the use the Greenstone3 Digital Library software platform to channel 29 and transform Linked Open Data Resources into an appealing web site for fans of the contest. 30 </p> 31 16 32 17 33 <script type="text/javascript" src="//www.google.com/jsapi"><xsl:text> </xsl:text></script> 18 34 <script type="text/javascript" src="//mgskjaeveland.github.io/sgvizler/v/0.6/sgvizler.js"><xsl:text> </xsl:text></script> 19 35 20 36 <script type="text/javascript"> 21 37 <xsl:text disable-output-escaping="yes"> … … 46 62 data-sgvizler-loglevel="2" 47 63 data-sgvizler-chart-options="title=Number of Songs from each Country" 48 style="width:650px; height: 400px; margin-left: auto; margin-right: auto">64 style="width:650px; height:500px; margin-left: auto; margin-right: auto"> 49 65 <xsl:attribute name="data-sgvizler-query"> 50 66 SELECT (?country) (COUNT(?country) AS ?freqCount) … … 58 74 <xsl:text> </xsl:text> 59 75 </div> 76 60 77 61 </xsl:template> 78 <h2>Technical Development</h2> 79 <p> 80 In terms of how this collection was developed using the Greenstone DL architecture, the starting point is 81 the formulation of a SPARQL query to retrieve from DBpedia entries about all the entrants in the contest 82 over the years: 83 <pre style="background-color: #fff; color: #000; padding: 12px;"> 84 SELECT ?countries_in_esc_by_year ?country_in_year ?year as ?Year ?country as ?Country ?entrant ?entrant_label as ?Creator ?song ?song_label as ?Title ?was_derived_from as ?WikipediaURL 85 WHERE { 86 ?countries_in_esc_by_year skos:broader dbc:Countries_in_the_Eurovision_Song_Contest_by_year. 87 88 ?country_in_year dct:subject ?countries_in_esc_by_year. 89 bind( REPLACE(str(?country_in_year), ".*(\\d{4})", "$1") as ?year). 90 FILTER ( xsd:integer(?year) < 2020). 91 92 ?country_in_year dbp:country ?country. 93 94 ?country_in_year dbp:entrant ?entrant. 95 ?entrant rdfs:label ?entrant_label 96 FILTER (lang(?entrant_label) = 'en'). 97 98 ?country_in_year dbp:song ?song. 99 ?song rdfs:label ?song_label 100 FILTER (lang(?song_label) = 'en'). 101 102 OPTIONAL { 103 ?song prov:wasDerivedFrom ?was_derived_from 104 } 105 } 106 ORDER BY DESC(?countries_in_esc_by_year) 107 </pre> 108 109 </p> 110 111 <p> 112 113 The resulting SPARQL query result set (JSON format selected for output) is then ingested into a Greenstone DL 114 collection, and used in a variety of ways. 115 For now an (admittedly cryptic) list of technical steps that were developed and/or deployed to 116 provide the functionality encountered in interacting with this site. 117 118 <ul> 119 <li>New SPARQL plugin for <i>download_from.pl</i> developed, used in GLI to enter the above query</li> 120 <li>New SPARQL <i>Document Processing</i> plugin developed</li> 121 <li>Greenstone3 Apache Jena Triple Store Extension activated</li> 122 <li>SGVizler used to display Google Visualizations such as the pie-chart above.</li> 123 <li>Metadata in document view enhanced through Greenstone Format Statements micro-data</li> 124 <li>Custom <i>interface</i> developed</li> 125 </ul> 126 </p> 127 128 <p> 129 Bullet points above to be expanded upon! 130 </p> 131 132 <p> 133 Viewing the <a download="collectionConfig.xml" href="sites/{$site_name}/collect/{$collName}/etc/collectionConfig.xml">collection configuration file</a> provides 134 a good insight into how all of these technical aspectcs are brought together. 135 </p> 136 137 <p> 138 Full disclosure as to how the collection all ticks is provided through our 139 Subversion repository. Topping up our <a href="https//trac.greenstone.org/browser/main/trunk/greenstone3">Greenstone3 code base</a> 140 we have: 141 142 <ul> 143 <li>The site: <a href="https://trac.greenstone.org/browser/main/trunk/model-sites-dev/eurovision-lod">eurovision-lod</a></li> 144 <li>The interface: <a href="https://trac.greenstone.org/browser/main/trunk/model-interfaces-dev/eurovision-lod">eurovision-lod</a></li> 145 <li>The triplestore extension: <a href="https://trac.greenstone.org/browser/gs2-extensions/apache-jena/trunk/src">apache-jena</a></li> 146 </ul> 147 148 149 </p> 150 151 <h2>Eurovision LOD SPARQL Endpoint</h2> 152 <p> 153 This Digital Library collection can be queried through this 154 <a href="{$library_name}/collection/{$collName}/page/sparql">SPARQL endpoint</a> 155 </p> 156 157 <h2>Eurovision LOD Errata</h2> 158 <p> 159 Songs titles and Entrants (artists) that do not resolve to URIs: 160 <ul> 161 <li> 162 <a href="sites/{$site_name}/collect/{$collName}/prepare/problem-songs.html">Problem Songs (titles are string literals)</a> 163 </li> 164 <li> 165 <a href="sites/{$site_name}/collect/{$collName}/prepare/problem-entrants.html">Problem Entrants (artists are string literals)</a> 166 </li> 167 <li> 168 <a href="sites/{$site_name}/collect/{$collName}/prepare/problem-songs-and-entrants.html">Problem Songs and Entrants (both titles and artists are string literals)</a> 169 </li> 170 <li> 171 <a href="sites/{$site_name}/collect/{$collName}/prepare/problem-return-paths-songs-and-entrants.html">Problem 'return paths' for Songs and Entrants (the reverse check that a song entry specifies the dbp:artist as a URI fails)</a> 172 </li> 173 </ul> 174 </p> 175 176 </div> 177 178 179 </xsl:template> 62 180 63 181
Note:
See TracChangeset
for help on using the changeset viewer.