Changeset 37302 for gs3-installations
- Timestamp:
- 2023-02-08T10:44:50+13:00 (15 months ago)
- Location:
- gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA--SMALL.sh
r35904 r37302 7 7 8 8 YEAR=$1 9 10 if [ $YEAR = "2020" ] ; then 11 echo "" >&2 12 echo "Eurovision in 2020 was canceled due Covid 19 pandemic" >&2 13 echo "No query to run. Exiting." >&2 14 echo "" >&2 15 16 exit 1 17 fi 18 9 19 sparql_file="local--countries-in-esc-by-year-just-$YEAR--with-errata.sparql" 10 20 -
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA.sh
r35982 r37302 73 73 cd errata-lod \ 74 74 && date >> "../$logfile" \ 75 && . /LOCAL-LOD-QUERY.sh "$f" \75 && ../LOCAL-LOD-QUERY.sh "$f" \ 76 76 && date >> "../$logfile" \ 77 77 && cd .. -
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/LOCAL-LOD-RESET--ERRATA-ALL.sh
r34753 r37302 1 1 #!/bin/bash 2 2 3 gs-triplestore-reset eurovision-errata3 gs-triplestore-reset3 eurovision-errata -
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/README-ADD-A-YEAR.txt
r37283 r37302 1 1 2 3 rm -f errata-lod/local--countries-in-esc-by-year-just-2015--with-errata.json 4 ./01-DOWNLOAD-ESC-LOD-DATA--SMALL.sh 2015 5 2 6 3 7 -
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/README.txt
r37282 r37302 20 20 your specific credentials. 21 21 22 You also need to get an AcousticID, which you store in:23 essentia-audio-features/acousticid_clientid.txt24 25 22 Otherwise you can use 'Track b' which -- proxied through the 26 23 eurovisionworld.com fan web site -- page scrapes YouTube content of … … 28 25 to generate audio features. No key setup is needed if Track b. 29 26 27 # 28 # Setup a Virtual Python3 Environment 29 # 30 30 31 # Setup a Virtual Python3 Environment 31 Make sure you are using Greenstone3's selfcontained-python3 extension 32 (installed through running the relevant script in $GSDL3SRCHOME/ext-cli) 32 33 33 Next create a virtual Python environment: 34 35 ./CREATE-VENV-PYTHON3.sh my-python3-dev 36 37 And then install required Python packages: 34 And then install required Python packages, if not previously done: 38 35 39 36 * For processing Excel Voting data spreadsheet … … 52 49 pip3 install -r essentia-audio-features/requirements.txt 53 50 51 # 54 52 # One-time Errata Triplestore Setup 53 # 55 54 56 55 The (personal) convention of using ALL-CAPS is to signify that these … … 66 65 more accurate results. 67 66 68 Check your Greenstone3 Triplestore server is running: 67 This README assumes you have followed the eurovision/sites/README.txt 68 and added the apache-jena extension to Greenstone 3 ... in which case 69 check your Greenstone3 server is up and running: 69 70 70 sudo systemctl status greenstone3-triplestore71 ant status 71 72 72 Then run: 73 And the SPARQL endpoint is operational: 74 75 http://localhost:8383/fuseki3/index.html 76 77 Now run: 73 78 74 79 ./UPLOAD-TTL-EUROVISION-ERRATA-GRAPH.sh 75 80 76 This currently talks to the Apache Jena v1 Triplestore version that the 77 Greenstone3 extension operates on port 3030 81 82 To check that the errata content has been stored in the triplestore, 83 in the SPARQL tab to the eurovision collection interface, you can 84 run the query: 85 86 PREFIX gsdlextracted: <http://greenstone.org/gsdlextracted#> 87 88 SELECT ?subject ?predicate ?object WHERE { 89 GRAPH <http://localhost:8383/greenstone3/library/collection/eurovision-errata> { 90 ?subject ?predicate ?object. 91 } 92 } 93 OFFSET 0 LIMIT 500 78 94 79 95 96 # 80 97 # Running the 'prepare' ALL-CAPS scripts 81 98 # 82 99 83 100 The prefix to the scripts to run are sequentially numbers 01-..., -
gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/errata-lod/local--countries-in-esc-by-year-just-YYYY--with-errata.sparql.in
r35849 r37302 21 21 (?was_derived_from AS ?WikipediaURL) 22 22 WHERE { 23 SERVICE <https://dbpedia. demo.openlinksw.com/sparql> {23 SERVICE <https://dbpedia.org/sparql> { 24 24 ?countries_in_esc_by_year skos:broader dbc:Countries_in_the_Eurovision_Song_Contest_by_year. 25 25 … … 45 45 BIND (IF(isIRI(?entrant),?entrant,?entrant_errata_uri) AS ?entrant_robust). 46 46 47 SERVICE <https://dbpedia.demo.openlinksw.com/sparql> { 48 47 SERVICE <https://dbpedia.org/sparql> { 49 48 ?country_in_year dbp:song ?song 50 49 FILTER (?song != ""@en). … … 112 111 113 112 114 SERVICE <https://dbpedia.demo.openlinksw.com/sparql> { 113 OPTIONAL { 114 SERVICE <https://dbpedia.org/sparql> { 115 115 116 OPTIONAL {117 116 ?song_robust prov:wasDerivedFrom ?was_derived_from. 118 117 … … 125 124 ?song_robust dbo:abstract ?song_abstract_en 126 125 FILTER (lang(?song_abstract_en) = 'en'). 127 128 126 } 129 127 }
Note:
See TracChangeset
for help on using the changeset viewer.