#!/bin/bash if [ $# -ne 1 ] ; then echo "Usage: $0 collect-name" >&2 exit 1 fi graph_name=$1 if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name" else graph_uri="http://localhost:4040/greenstone/data/$graph_name" # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name" fi # 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 s-update --service http://localhost:4040/greenstone/update "DROP GRAPH <$graph_uri>"