source: main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/02-EXPLODE-SPARQLRESULTS-TO-IMPORT.sh@ 34866

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

Change to work with exploding (GS terminology) the sparqlresutls-*.json file

  • Property svn:executable set to *
File size: 501 bytes
Line 
1#!/bin/bash
2
3if [ ! -d tmp ] ; then
4 echo "Making temporary directory: tmp"
5 mkdir tmp
6fi
7
8echo "Creating temporary copies:"
9
10for f in "local--countries-in-esc-by-year-after-1956--with-errata.json" ; do
11
12 echo " errata-lod/$f -> tmp/sparqlresults-$f"
13 /bin/cp "errata-lod/$f" "tmp/sparqlresults-$f"
14done
15
16echo "Regenerating sparqlresults-* files in '../import' (from exploded results in 'tmp')"
17
18/bin/rm -rf ../import/sparqlresults-*
19/bin/mv tmp/sparqlresults-* ../import/.
20
21
Note: See TracBrowser for help on using the repository browser.