Last change
on this file since 38274 was 38274, checked in by davidb, 8 months ago |
Updated to work as a GS3 extension without the need for Ruby
|
-
Property svn:executable
set to
*
|
File size:
715 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# -ne 1 ] ; then
|
---|
4 | echo "Usage: $0 dataset-name" >&2
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | dataset_name=$1
|
---|
9 |
|
---|
10 | # strip off leading '/' if present, as not needed in the URL formed below
|
---|
11 | dataset_name=${dataset_name#/}
|
---|
12 |
|
---|
13 |
|
---|
14 | port=${FUSEKI3_PORT:-8383}
|
---|
15 |
|
---|
16 | ## The following line helps with runing a she-bang line of:
|
---|
17 | ## '#!/usr/bin/env ruby'
|
---|
18 | ## when the current script has been run from Perl under Cygwin
|
---|
19 | ##
|
---|
20 | #export PATH=/usr/bin:$PATH
|
---|
21 |
|
---|
22 | #wget -O - --method=GET "http://localhost:$port/fuseki3/$/datasets/${dataset_name}" 1>/dev/null
|
---|
23 |
|
---|
24 | #
|
---|
25 | # Consider letting the JSON returned be output to screen??
|
---|
26 | #
|
---|
27 | curl --silent -X GET \
|
---|
28 | "http://localhost:$port/fuseki3/\$/datasets/${dataset_name}" 1>/dev/null
|
---|
29 |
|
---|
30 | get_status=$?
|
---|
31 |
|
---|
32 | exit $get_status
|
---|
Note:
See
TracBrowser
for help on using the repository browser.