source: gs2-extensions/apache-jena/trunk/src/src3/gs-triplestore-add3@ 35058

Last change on this file since 35058 was 35058, checked in by davidb, 3 years ago

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

  • Property svn:executable set to *
File size: 730 bytes
Line 
1#!/bin/bash
2
3if [ $# -ne 2 ] ; then
4 echo "Usage: $0 collect-name ttl-file" >&2
5 exit 1
6fi
7
8graph_name=$1 # triplestore server setup to also add to 'default' graph automatically
9file_ttl=$2
10
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
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#
23export PATH=/usr/bin:$PATH
24
25s-post http://localhost:4040/greenstone/data "$graph_uri" "$file_ttl"
26
Note: See TracBrowser for help on using the repository browser.