source: gs3-extensions/jena-fuseki/trunk/src/src3/gs-triplestore-query3@ 38274

Last change on this file since 38274 was 38274, checked in by davidb, 8 months ago

Updated to work as a GS3 extension without the need for Ruby

  • Property svn:executable set to *
File size: 521 bytes
Line 
1#!/bin/bash
2
3if [ $# -eq 0 ] ; then
4 echo "Usage: $0 <sparql-query>"
5 exit 1
6fi
7
8port=${FUSEKI3_PORT:-8383}
9
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##
15#export PATH=/usr/bin:$PATH
16
17#s-query --service http://localhost:$port/fuseki3/greenstone/query "$*"
18
19curl \
20 -X POST \
21 -H "Content-Type: application/x-www-form-urlencoded" \
22 -d "query=$*" \
23 http://localhost:$port/fuseki3/greenstone/query
24
Note: See TracBrowser for help on using the repository browser.