Changeset 35850


Ignore:
Timestamp:
2022-01-02T17:41:43+13:00 (2 years ago)
Author:
davidb
Message:

Some addition print text added highlighting the length of time the script takes to run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/01-DOWNLOAD-ESC-LOD-DATA.sh

    r35842 r35850  
    11#!/bin/bash
    22
    3 #echo "Downloading SPARQL query: countries-in-esc-by-year.sparql"
     3# Before the Errata was introduced, the SPARQL query could be run
     4# directly against the DBPedia endpoint:
     5#
     6##echo "Downloading SPARQL query: countries-in-esc-by-year.sparql"
    47##./DBPEDIA-LOD-SPARQL-QUERY.sh countries-in-esc-by-year.sparql
     8
     9# Now a more complicated federated search is used.
     10# Because the DBPedia endpoint doesn't allow for queries that
     11# use SERIVCE to combine results from other endpoints, the
     12# query we issue is done on the local Greenstone Apache Jena endpoint,
     13# (which does have this facility on), where the Errata information is
     14# stored, but as part of the query run reaches out to the DBPedia endpoint.
    515
    616logfile="01-DOWNLOAD--runtime-log-$$.txt"
     
    1020if [ $# == 0 ] ; then
    1121    sparql_query_list="local--countries-in-esc-by-year-in-1956--with-errata.sparql local--countries-in-esc-by-year-after-1956--with-errata.sparql"
     22
     23    echo ""
     24    echo "Away to run the query:"
     25    echo ""
     26    echo "  $sparql_query_list"
     27    echo ""
     28
     29    echo "This can take a while to run.  Worth considering running with 'nohup':"
     30    echo "  nohup $0 &"
     31    echo ""
     32
     33    echo "Sleeping for 5 seconds as an opportunity to ^C the script and rerun it"
     34    echo "..."
     35    sleep 5
     36    echo "... continuing"
     37   
    1238else
    1339    sparql_query_list="$*"
Note: See TracChangeset for help on using the changeset viewer.