source: main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA.sh@ 35111

Last change on this file since 35111 was 35062, checked in by davidb, 3 years ago

Fixed issue with 'tee' logging

  • Property svn:executable set to *
File size: 928 bytes
Line 
1#!/bin/bash
2
3#echo "Downloading SPARQL query: countries-in-esc-by-year.sparql"
4##./DBPEDIA-LOD-SPARQL-QUERY.sh countries-in-esc-by-year.sparql
5
6logfile="01-DOWNLOAD--runtime-log-$$.txt"
7echo "Running bash script: $0" > "$logfile"
8echo "" >> "$logfile"
9
10for f in \
11 "local--countries-in-esc-by-year-in-1956--with-errata.sparql" \
12 "local--countries-in-esc-by-year-after-1956--with-errata.sparql" \
13 ; do
14
15 echo "Downloading JSON content via SPARQL query:" | tee -a "$logfile"
16 echo " errata-lod/$f" | tee -a "$logfile"
17
18 cd errata-lod \
19 && date >> "../$logfile" \
20 && ./LOCAL-LOD-QUERY.sh "$f" \
21 && date >> "../$logfile" \
22 && cd ..
23
24 echo "" >> "$logfile"
25
26done
27
28echo ""
29echo "Timed logged output:"
30echo " $logfile"
31echo ""
32
33# cd errata-lod \
34# && date > runtime-log-$$.txt && ./LOCAL-LOD-QUERY.sh ./local--countries-in-esc-by-year-after-1956--with-errata.sparql && date >> runtime-log-$$.txt
35
Note: See TracBrowser for help on using the repository browser.