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 |
|
---|
3 | input_sparql_query_file=${1:-local--countries-in-esc-by-year-after-1956--with-errata.sparql}
|
---|
4 |
|
---|
5 | output_json_queryresult_file=${input_sparql_query_file%.*}.json
|
---|
6 |
|
---|
7 | sparql_query=`cat "$input_sparql_query_file"`
|
---|
8 |
|
---|
9 | echo ""
|
---|
10 | echo "Sending:"
|
---|
11 | echo " $input_sparql_query_file"
|
---|
12 | echo ""
|
---|
13 | echo "To local SPARQL endpoint:"
|
---|
14 | echo " http://localhost:3030/greenstone/query"
|
---|
15 | echo ""
|
---|
16 | echo "Saving output JSON resultset as:"
|
---|
17 | echo " $output_json_queryresult_file"
|
---|
18 | echo ""
|
---|
19 |
|
---|
20 | # s-query --service http://localhost:3030/greenstone/query 'SELECT * {?s ?p ?o}'
|
---|
21 |
|
---|
22 | s-query --service http://localhost:3030/greenstone/query \
|
---|
23 | "$sparql_query" > "$output_json_queryresult_file"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.