#!/bin/bash if [ $# -ne 1 ] && [ $# -ne 2 ] ; then echo "Usage: $0 dataset-name [tdb|tdb2]" >&2 exit 1 fi dataset_name=$1 dataset_type=${2:-tdb} 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 - --post-data="dbName=${dataset_name}&dbType=${dataset_type}" "http://localhost:$port/fuseki3/$/datasets"