source: gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-reset3@ 36764

Last change on this file since 36764 was 36764, checked in by davidb, 19 months ago

FUSEKI3_PORT introduced as an environment variable that can be used to control the port the server runs on (defaults to 4040)

  • Property svn:executable set to *
File size: 766 bytes
Line 
1#!/bin/bash
2
3if [ $# -ne 1 ] ; then
4 echo "Usage: $0 collect-name" >&2
5 exit 1
6fi
7
8graph_name=$1
9
10port=${FUSEKI3_PORT:-4040}
11
12
13if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
14 graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
15else
16 graph_uri="http://localhost:8383/greenstone3/library/collection/$graph_name"
17 # graph_uri="http://localhost:$port/greenstone/data/$graph_name"
18 # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
19fi
20
21# The following line helps with runing a she-bang line of:
22# '#!/usr/bin/env ruby'
23# when the current script has been run from Perl under Cygwin
24#
25export PATH=/usr/bin:$PATH
26
27s-update --service http://localhost:$port/greenstone/update "DROP GRAPH <$graph_uri>"
28
Note: See TracBrowser for help on using the repository browser.