Changeset 35060


Ignore:
Timestamp:
2021-04-12T15:14:06+12:00 (3 years ago)
Author:
davidb
Message:

Addition of logging process time; introduction of 'in-1956' sparql query

Location:
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/FULL-REBUILD.sh

    r34837 r35060  
    11#!/bin/bash
    22
    3 ./IMPORT.sh && ./BUILDCOL.sh && ./ACTIVATE.sh
     3logfile="FULL-REBUILD--runtime-log-$$.txt"
     4echo "Running bash script: $0" > "$logfile"
     5echo "" >> "$logfile"
     6
     7echo "Running IMPORT.sh" >> "$logfile" \
     8    && date >> "$logfile" \
     9    && ./IMPORT.sh \
     10    && date >> "$logfile" \
     11    && echo "" >> "$logfile" \
     12        \       
     13    && echo "Running BUILDCOL.sh" >> "$logfile" \
     14    && date >> "$logfile" \
     15    && ./BUILDCOL.sh \
     16    && date >> "$logfile" \
     17    && echo "" >> "$logfile" \
     18        \
     19    && ./ACTIVATE.sh
     20
     21
     22echo ""
     23echo "Timed logged output:"
     24echo "  $logfile"
     25echo ""
     26
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA.sh

    r35033 r35060  
    44##./DBPEDIA-LOD-SPARQL-QUERY.sh countries-in-esc-by-year.sparql
    55
    6 echo "Downloading JSON content via SPARQL query:"
    7 echo " errata-lod/local--countries-in-esc-by-year-after-1956--with-errata.sparql"
     6logfile="01-DOWNLOAD--runtime-log-$$.txt"
     7echo "Running bash script: $0" > "$logfile"
     8echo "" >> "$logfile"
    89
    9 cd errata-lod \
    10     && date > runtime-log-$$.txt && ./LOCAL-LOD-QUERY.sh ./local--countries-in-esc-by-year-after-1956--with-errata.sparql  && date >> runtime-log-$$.txt
     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
    1114
     15    echo "Downloading JSON content via SPARQL query:" | tee "$logfile"
     16    echo " errata-lod/$f" | tee "$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 TracChangeset for help on using the changeset viewer.