diff --git a/webapi/scripts/fuseki-empty-repository.sh b/webapi/scripts/fuseki-empty-repository.sh deleted file mode 100755 index 4a63edff1e..0000000000 --- a/webapi/scripts/fuseki-empty-repository.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -#set -x - -POSITIONAL=() -while [[ $# -gt 0 ]] -do -key="$1" - -case $key in - -r|--repository) - REPOSITORY="$2" - shift # past argument - shift # past value - ;; - -u|--username) - USER_NAME="$2" - shift # past argument - shift # past value - ;; - -p|--password) - PASSWORD="$2" - shift # past argument - shift # past value - ;; - -h|--host) - HOST="$2" - shift # past argument - shift # past value - ;; - *) # unknown option - POSITIONAL+=("$1") # save it in an array for later - shift # past argument - ;; -esac -done -set -- "${POSITIONAL[@]}" # restore positional parameters - -if [[ -z "${REPOSITORY}" || -z "${USER_NAME}" ]]; then - echo "Usage: $(basename "$0") -r|--repository REPOSITORY -u|--username USERNAME [-p|--password PASSWORD] [-h|--host HOST]" - exit 1 -fi - -if [[ -z "${PASSWORD}" ]]; then - echo -n "Password: " - IFS="" read -rs PASSWORD - echo -fi - -if [[ -z "${HOST}" ]]; then - HOST="localhost:3030" -fi - -curl -sS -X POST -H "Content-Type: application/sparql-update" -d "DROP ALL" -u "${USER_NAME}:${PASSWORD}" "http://${HOST}/${REPOSITORY}" diff --git a/webapi/scripts/fuseki-upload-repository.sh b/webapi/scripts/fuseki-upload-repository.sh deleted file mode 100755 index 60d44fed87..0000000000 --- a/webapi/scripts/fuseki-upload-repository.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash - -#set -x - -POSITIONAL=() -while [[ $# -gt 0 ]] -do -key="$1" - -case $key in - -r|--repository) - REPOSITORY="$2" - shift # past argument - shift # past value - ;; - -u|--username) - USER_NAME="$2" - shift # past argument - shift # past value - ;; - -p|--password) - PASSWORD="$2" - shift # past argument - shift # past value - ;; - -h|--host) - HOST="$2" - shift # past argument - shift # past value - ;; - *) # unknown option - POSITIONAL+=("$1") # save it in an array for later - shift # past argument - ;; -esac -done -set -- "${POSITIONAL[@]}" # restore positional parameters - -FILE="$1" - -if [[ -z "${REPOSITORY}" || -z "${USER_NAME}" || -z "${FILE}" ]]; then - echo "Usage: $(basename "$0") -r|--repository REPOSITORY -u|--username USERNAME [-p|--password PASSWORD] [-h|--host HOST] FILE" - exit 1 -fi - -if [[ -z "${PASSWORD}" ]]; then - echo -n "Password: " - IFS="" read -rs PASSWORD - echo -fi - -if [[ -z "${HOST}" ]]; then - HOST="localhost:3030" -fi - -curl -sS -X POST -H "Content-Type: application/trig" --data-binary "@${FILE}" -u "${USER_NAME}:${PASSWORD}" "http://${HOST}/${REPOSITORY}" | tee /dev/null