Last change
on this file since 35864 was 35864, checked in by davidb, 2 years ago |
Generate some info that indicates how well the SPARQL retrieval has gone in terms of the number of country_in_year entries there are
|
-
Property svn:executable
set to
*
|
File size:
760 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# = 0 ] ; then
|
---|
4 | YEAR=2015
|
---|
5 | sparql_file="local--countries-in-esc-by-year-just-2015--with-errata.sparql"
|
---|
6 | else
|
---|
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"
|
---|
13 | fi
|
---|
14 |
|
---|
15 | echo ""
|
---|
16 | echo "Small collection SPARQL download restricting entries to the year:"
|
---|
17 | echo " $YEAR"
|
---|
18 | echo ""
|
---|
19 |
|
---|
20 | ./01-DOWNLOAD-ESC-LOD-DATA.sh $sparql_file
|
---|
21 |
|
---|
22 |
|
---|
23 | if [ $? = 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-1957--with-errata.json
|
---|
30 |
|
---|
31 | echo "****"
|
---|
32 | echo ""
|
---|
33 | fi
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.