Last change
on this file since 36764 was 36764, checked in by davidb, 20 months ago |
FUSEKI3_PORT introduced as an environment variable that can be used to control the port the server runs on (defaults to 4040)
|
-
Property svn:executable
set to
*
|
File size:
381 bytes
|
Rev | Line | |
---|
[34963] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | if [ $# -eq 0 ] ; then
|
---|
| 4 | echo "Usage: $0 <sparql-query>"
|
---|
| 5 | exit 1
|
---|
| 6 | fi
|
---|
| 7 |
|
---|
[36764] | 8 | port=${FUSEKI3_PORT:-4040}
|
---|
| 9 |
|
---|
[34963] | 10 | #pushd "$GEXT_JENA"
|
---|
| 11 |
|
---|
| 12 | # The following line helps with runing a she-bang line of:
|
---|
| 13 | # '#!/usr/bin/env ruby'
|
---|
| 14 | # when the current script has been run from Perl under Cygwin
|
---|
| 15 | #
|
---|
| 16 | export PATH=/usr/bin:$PATH
|
---|
| 17 |
|
---|
[36764] | 18 | s-query --service http://localhost:$port/greenstone/query "$*"
|
---|
[34963] | 19 |
|
---|
| 20 |
|
---|
| 21 | #popd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.