Ignore:
Timestamp:
2021-04-11T22:50:02+12:00 (3 years ago)
Author:
davidb
Message:

Check for FULL_GREENSTONE_URL_PREFIX and use this if it exists for the graph URI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-reset3

    r34963 r35058  
    88graph_name=$1
    99
     10if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
     11    graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
     12else
     13    graph_uri="http://localhost:4040/greenstone/data/$graph_name"
     14    # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
     15fi
     16
    1017# The following line helps with runing a she-bang line of:
    1118#   '#!/usr/bin/env ruby'
     
    1421export PATH=/usr/bin:$PATH
    1522
    16 s-update --service http://localhost:4040/greenstone/update "DROP GRAPH <http://localhost:4040/greenstone/data/$graph_name>"
     23s-update --service http://localhost:4040/greenstone/update "DROP GRAPH <$graph_uri>"
    1724
Note: See TracChangeset for help on using the changeset viewer.