#!/bin/bash if [ $# -ne 1 ] ; then echo "Usage: $0 dataset-name" >&2 exit 1 fi dataset_name=$1 # strip off leading '/' if present, as not needed in the URL formed below dataset_name=${dataset_name#/} port=${FUSEKI3_PORT:-8383} # The following line helps with runing a she-bang line of: # '#!/usr/bin/env ruby' # when the current script has been run from Perl under Cygwin # export PATH=/usr/bin:$PATH wget -O - --method=DELETE "http://localhost:$port/fuseki3/$/datasets/${dataset_name}" #echo "" #echo "Early testing with this script did see it report an HTTP Reponse:" #echo " ERROR 500: (no description)" #echo "The Fuseki server then no longer listed the dataset, but on the filesystem" #echo "it was still there in the run3/databases/ directory" #echo "Catalina.out error message:" #echo " Admin INFO [1979] DELETE dataset=/mydataset" #echo " Admin WARN [1979] RC = 500 : Already closed" #echo ""