source: gs2-extensions/apache-jena/trunk/src/src/gs-triplestore-add@ 28686

Last change on this file since 28686 was 28466, checked in by davidb, 11 years ago

PATH environment tweaked to help the Fuseki s-xxx scripts be run from Perl under Cygwin. s-put also changed to s-post as the former does not actually append triples, but wipes out all previous triples

  • Property svn:executable set to *
File size: 440 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
11# The following line helps with runing a she-bang line of:
12# '#!/usr/bin/env ruby'
13# when the current script has been run from Perl under Cygwin
14#
15export PATH=/usr/bin:$PATH
16
17s-post http://localhost:3030/greenstone/data $graph_name "$file_ttl"
18
Note: See TracBrowser for help on using the repository browser.