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:
1.1 KB
|
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=DELETE "http://localhost:$port/fuseki3/$/datasets/${dataset_name}"
|
---|
23 |
|
---|
24 | curl -X DELETE "http://localhost:$port/fuseki3/$/datasets/${dataset_name}"
|
---|
25 |
|
---|
26 |
|
---|
27 | echo ""
|
---|
28 | echo "Generates a message about database already being closed, but does seem to work OK"
|
---|
29 | echo ""
|
---|
30 |
|
---|
31 | #echo ""
|
---|
32 | #echo "Early testing with this script did see it report an HTTP Reponse:"
|
---|
33 | #echo " ERROR 500: (no description)"
|
---|
34 | #echo "The Fuseki server then no longer listed the dataset, but on the filesystem"
|
---|
35 | #echo "it was still there in the run3/databases/ directory"
|
---|
36 | #echo "Catalina.out error message:"
|
---|
37 | #echo " Admin INFO [1979] DELETE dataset=/mydataset"
|
---|
38 | #echo " Admin WARN [1979] RC = 500 : Already closed"
|
---|
39 | #echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.