Changeset 36764 for gs2-extensions


Ignore:
Timestamp:
2022-10-09T20:55:48+13:00 (19 months ago)
Author:
davidb
Message:

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

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

Legend:

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

    r35162 r36764  
    99file_ttl=$2
    1010
     11port=${FUSEKI3_PORT:-4040}
     12
    1113if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
    1214    graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
    1315else
    1416    graph_uri="http://localhost:8383/greenstone3/library/collection/$graph_name"
    15     # graph_uri="http://localhost:4040/greenstone/data/$graph_name"
     17    # graph_uri="http://localhost:$port/greenstone/data/$graph_name"
    1618    # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
    1719fi
     
    2426export PATH=/usr/bin:$PATH
    2527
    26 s-post http://localhost:4040/greenstone/data "$graph_uri" "$file_ttl"
     28s-post http://localhost:$port/greenstone/data "$graph_uri" "$file_ttl"
    2729
  • gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-file-query3

    r35080 r36764  
    1212sparql_query=`cat "$input_sparql_query_file"`
    1313
     14port=${FUSEKI3_PORT:-4040}
     15
    1416
    1517# The following line helps with runing a she-bang line of:
     
    1921export PATH=/usr/bin:$PATH
    2022
    21 s-query --service http://localhost:4040/greenstone/query \
     23s-query --service http://localhost:$port/greenstone/query \
    2224    "$sparql_query" > "$output_json_queryresult_file"
  • gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-query3

    r34963 r36764  
    55  exit 1
    66fi
     7
     8port=${FUSEKI3_PORT:-4040}
    79
    810#pushd "$GEXT_JENA"
     
    1416export PATH=/usr/bin:$PATH
    1517
    16 s-query --service http://localhost:4040/greenstone/query "$*"
     18s-query --service http://localhost:$port/greenstone/query "$*"
    1719
    1820
  • gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-reset3

    r35162 r36764  
    88graph_name=$1
    99
     10port=${FUSEKI3_PORT:-4040}
     11
     12
    1013if [ "x$FULL_GREENSTONE_URL_PREFIX" != "x" ] ; then
    1114    graph_uri="$FULL_GREENSTONE_URL_PREFIX/collection/$graph_name"
    1215else
    1316    graph_uri="http://localhost:8383/greenstone3/library/collection/$graph_name"
    14     # graph_uri="http://localhost:4040/greenstone/data/$graph_name"
     17    # graph_uri="http://localhost:$port/greenstone/data/$graph_name"
    1518    # graph_uri="https://so-we-must-think.space/greenstone3-lod3/greenstone/data/$graph_name"
    1619fi
     
    2225export PATH=/usr/bin:$PATH
    2326
    24 s-update --service http://localhost:4040/greenstone/update "DROP GRAPH <$graph_uri>"
     27s-update --service http://localhost:$port/greenstone/update "DROP GRAPH <$graph_uri>"
    2528
  • gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-server3

    r36763 r36764  
    88
    99export JENA_FUSEKI_JAR=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0/fuseki-server.jar
     10
     11port=${FUSEKI3_PORT:-4040}
    1012
    1113if [ ! -d run ] ; then
     
    3032fi
    3133
    32 ./bin/script3/fuseki-server --tdb etc/tdb-triple-store3 --update --port 4040 /greenstone
     34./bin/script3/fuseki-server --tdb etc/tdb-triple-store3 --update --port $port /greenstone
    3335
    3436
Note: See TracChangeset for help on using the changeset viewer.