source: gs3-installations/eurovision-lod/trunk/sites/eurovision/collect/eurovision/prepare/errata-lod/LOCAL-LOD-QUERY.sh.UNUSED@ 37319

Last change on this file since 37319 was 37300, checked in by davidb, 16 months ago

Renaming script to avoid confusion with the versions that are located one directory higher

  • Property svn:executable set to *
File size: 655 bytes
Line 
1#!/bin/bash
2
3input_sparql_query_file=${1:-local--countries-in-esc-by-year-after-1956--with-errata.sparql}
4
5output_json_queryresult_file=${input_sparql_query_file%.*}.json
6
7sparql_query=`cat "$input_sparql_query_file"`
8
9echo ""
10echo "Sending:"
11echo " $input_sparql_query_file"
12echo ""
13echo "To local SPARQL endpoint:"
14echo " http://localhost:3030/greenstone/query"
15echo ""
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}'
21
22s-query --service http://localhost:3030/greenstone/query \
23 "$sparql_query" > "$output_json_queryresult_file"
Note: See TracBrowser for help on using the repository browser.