Changeset 35083
- Timestamp:
- 2021-04-17T10:22:00+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/02-EXPLODE-SPARQLRESULTS-TO-IMPORT.sh
r35081 r35083 2 2 3 3 tmp_cache="tmp-cache" 4 5 cwd=`pwd` 6 cwd_without_prepare=${cwd%/*} 7 collection=${cwd_without_prepare##*/} 4 8 5 9 echo "" … … 23 27 echo "Copying to '$tmp_cache' then exploding:" 24 28 25 #for f in \ 26 # "local--countries-in-esc-by-year-in-1956--with-errata.json" \ 27 # "local--countries-in-esc-by-year-after-1956--with-errata.json" \ 28 # ; do 29 f="local--countries-in-esc-by-year-in-1956--with-errata.json" 30 echo " errata-lod/$f -> $tmp_cache/sparqlresults-$f" 31 /bin/cp "errata-lod/$f" "$tmp_cache/sparqlresults-$f" 29 32 30 f="local--countries-in-esc-by-year-in-1956--with-errata.json" 31 echo " errata-lod/$f -> $tmp_cache/sparqlresults-$f" 32 /bin/cp "errata-lod/$f" "$tmp_cache/sparqlresults-$f" 33 explode_metadata_database.pl \ 34 -collectdir $GSDL3SRCHOME/web/sites/eurovision-lod/collect \ 35 -collection $collection \ 36 -plugin_options "-metadata_merge_on_concat_fields Country,Year,TitleDisambiguation -OIDtype assigned -OIDmetadata Identifier" \ 37 -plugin JSONSPARQLResultPlugin \ 38 $tmp_cache/sparqlresults-$f 33 39 34 explode_metadata_database.pl \ 35 -collectdir $GSDL3SRCHOME/web/sites/eurovision-lod/collect \ 36 -collection eurovision \ 37 -plugin_options "-metadata_merge_on_concat_fields Country,Year,TitleDisambiguation -OIDtype assigned -OIDmetadata Identifier" \ 38 -plugin JSONSPARQLResultPlugin \ 39 $tmp_cache/sparqlresults-$f 40 41 if [ $? != 0 ] ; then 42 echo "Error encountered when exploding:" 1>&2 43 echo " $tmp_cache/sparqlresults-$f" 1>&2 44 exit 1 45 fi 40 if [ $? != 0 ] ; then 41 echo "Error encountered when exploding:" 1>&2 42 echo " $tmp_cache/sparqlresults-$f" 1>&2 43 exit 1 44 fi 46 45 47 46 48 49 50 47 f="local--countries-in-esc-by-year-after-1956--with-errata.json" 48 echo " errata-lod/$f -> $tmp_cache/sparqlresults-$f" 49 /bin/cp "errata-lod/$f" "$tmp_cache/sparqlresults-$f" 51 50 52 53 54 -collection eurovision \55 56 57 51 explode_metadata_database.pl \ 52 -collectdir $GSDL3SRCHOME/web/sites/eurovision-lod/collect \ 53 -collection $collection \ 54 -plugin_options "-metadata_merge_on_concat_fields Country,Year -OIDtype assigned -OIDmetadata Identifier" \ 55 -plugin JSONSPARQLResultPlugin \ 56 $tmp_cache/sparqlresults-$f 58 57 59 if [ $? != 0 ] ; then 60 echo "Error encountered when exploding:" 1>&2 61 echo " $tmp_cache/sparqlresults-$f" 1>&2 62 exit 1 63 fi 64 #done 58 if [ $? != 0 ] ; then 59 echo "Error encountered when exploding:" 1>&2 60 echo " $tmp_cache/sparqlresults-$f" 1>&2 61 exit 1 62 fi 65 63 66 64 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.