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

Last change on this file since 35904 was 35904, checked in by davidb, 2 years ago

Fixed error in just-year filename; improved info in echo statement

  • Property svn:executable set to *
File size: 761 bytes
Line 
1#!/bin/bash
2
3if [ $# = 0 ] ; then
4 YEAR=2015
5 sparql_file="local--countries-in-esc-by-year-just-2015--with-errata.sparql"
6else
7
8 YEAR=$1
9 sparql_file="local--countries-in-esc-by-year-just-$YEAR--with-errata.sparql"
10
11 cat errata-lod/local--countries-in-esc-by-year-just-YYYY--with-errata.sparql.in \
12 | sed "s/YYYY/$YEAR/g" > "errata-lod/$sparql_file"
13fi
14
15echo ""
16echo "Small collection SPARQL download restricting entries to the year:"
17echo " $YEAR"
18echo ""
19
20./01-DOWNLOAD-ESC-LOD-DATA.sh $sparql_file
21
22
23if [ $? = 0 ] ; then
24 echo ""
25 echo "****"
26 echo "Country in Year matches:"
27 echo "****"
28
29 fgrep country_in_year errata-lod/local--countries-in-esc-by-year-just-$YEAR--with-errata.json
30
31 echo "****"
32 echo ""
33fi
34
Note: See TracBrowser for help on using the repository browser.