Changeset 35058


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

Location:
gs2-extensions/apache-jena/trunk/src/src3
Files:
2 edited

Legend:

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

    r34963 r35058  
    99file_ttl=$2
    1010
     11if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
     12    graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
     13else
     14    graph_uri="http://localhost:4040/greenstone/data/$graph_name"
     15    # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
     16fi
     17
     18
    1119# The following line helps with runing a she-bang line of:
    1220#   '#!/usr/bin/env ruby'
     
    1523export PATH=/usr/bin:$PATH
    1624
    17 s-post http://localhost:4040/greenstone/data $graph_name "$file_ttl"
     25s-post http://localhost:4040/greenstone/data "$graph_uri" "$file_ttl"
    1826
  • 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.