Last change
on this file since 37301 was 37301, checked in by davidb, 16 months ago |
Changed to work with whatever port GS3 install has specified, rather then assuming 8383
|
-
Property svn:executable
set to
*
|
File size:
711 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# -ne 1 ] ; then
|
---|
4 | echo "Usage: $0 collect-name" >&2
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | graph_name=$1
|
---|
9 |
|
---|
10 | port=${FUSEKI3_PORT:-8383}
|
---|
11 |
|
---|
12 |
|
---|
13 | if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
|
---|
14 | graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
|
---|
15 | else
|
---|
16 | graph_uri="http://localhost:$port/greenstone3/library/collection/$graph_name"
|
---|
17 | fi
|
---|
18 |
|
---|
19 | # The following line helps with runing a she-bang line of:
|
---|
20 | # '#!/usr/bin/env ruby'
|
---|
21 | # when the current script has been run from Perl under Cygwin
|
---|
22 | #
|
---|
23 | export PATH=/usr/bin:$PATH
|
---|
24 |
|
---|
25 | echo s-update --service http://localhost:$port/fuseki3/greenstone/update "DROP GRAPH <$graph_uri>"
|
---|
26 | s-update --service http://localhost:$port/fuseki3/greenstone/update "DROP GRAPH <$graph_uri>"
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.