Changeset 35882


Ignore:
Timestamp:
2022-01-05T08:37:27+13:00 (2 years ago)
Author:
davidb
Message:

Script adjusted to run TTL file in the errata-lod dir (which previously would have been local)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/LOCAL-LOD-QUERY.sh

    r34746 r35882  
    11#!/bin/bash
    22
    3 input_sparql_query_file=${1:-fix-problem-songs--using-errata.sparql}
     3input_sparql_query_file=${1:-errata-lod/local--countries-in-esc-by-year-after-1956--with-errata.sparql}
     4
     5output_json_queryresult_file=${input_sparql_query_file%.*}.json
    46
    57sparql_query=`cat "$input_sparql_query_file"`
     
    1214echo "   http://localhost:3030/greenstone/query"
    1315echo ""
     16echo "Saving output JSON resultset as:"
     17echo "  $output_json_queryresult_file"
     18echo ""
     19
     20# s-query --service http://localhost:3030/greenstone/query 'SELECT * {?s ?p ?o}'
    1421
    1522s-query --service http://localhost:3030/greenstone/query \
    16     "$sparql_query"
     23    "$sparql_query" > "$output_json_queryresult_file"
Note: See TracChangeset for help on using the changeset viewer.