source: gs3-extensions/jena-fuseki/trunk/src/src3/gs-triplestore-dataset-ping3@ 38274

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
3if [ $# -ne 1 ] ; then
4 echo "Usage: $0 dataset-name" >&2
5 exit 1
6fi
7
8dataset_name=$1
9
10# strip off leading '/' if present, as not needed in the URL formed below
11dataset_name=${dataset_name#/}
12
13
14port=${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#
27curl --silent -X GET \
28 "http://localhost:$port/fuseki3/\$/datasets/${dataset_name}" 1>/dev/null
29
30get_status=$?
31
32exit $get_status
Note: See TracBrowser for help on using the repository browser.