Changeset 35850
- Timestamp:
- 2022-01-02T17:41:43+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA.sh
r35842 r35850 1 1 #!/bin/bash 2 2 3 #echo "Downloading SPARQL query: countries-in-esc-by-year.sparql" 3 # Before the Errata was introduced, the SPARQL query could be run 4 # directly against the DBPedia endpoint: 5 # 6 ##echo "Downloading SPARQL query: countries-in-esc-by-year.sparql" 4 7 ##./DBPEDIA-LOD-SPARQL-QUERY.sh countries-in-esc-by-year.sparql 8 9 # Now a more complicated federated search is used. 10 # Because the DBPedia endpoint doesn't allow for queries that 11 # use SERIVCE to combine results from other endpoints, the 12 # query we issue is done on the local Greenstone Apache Jena endpoint, 13 # (which does have this facility on), where the Errata information is 14 # stored, but as part of the query run reaches out to the DBPedia endpoint. 5 15 6 16 logfile="01-DOWNLOAD--runtime-log-$$.txt" … … 10 20 if [ $# == 0 ] ; then 11 21 sparql_query_list="local--countries-in-esc-by-year-in-1956--with-errata.sparql local--countries-in-esc-by-year-after-1956--with-errata.sparql" 22 23 echo "" 24 echo "Away to run the query:" 25 echo "" 26 echo " $sparql_query_list" 27 echo "" 28 29 echo "This can take a while to run. Worth considering running with 'nohup':" 30 echo " nohup $0 &" 31 echo "" 32 33 echo "Sleeping for 5 seconds as an opportunity to ^C the script and rerun it" 34 echo "..." 35 sleep 5 36 echo "... continuing" 37 12 38 else 13 39 sparql_query_list="$*"
Note:
See TracChangeset
for help on using the changeset viewer.