#!/bin/bash pushd "$GEXT_JENA" # export JENA_HOME=$GEXT_JENA/packages/apache-jena-3.17.0 export FUSEKI_HOME=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0 export JENA_FUSEKI_JAR=$GEXT_JENA/packages/apache-jena-fuseki-3.17.0/fuseki-server.jar port=${FUSEKI3_PORT:-4040} if [ ! -d run ] ; then echo "Creating directory:" echo " run" mkdir run fi if [ ! -f run/shiro.ini ] || [ src3/run--shiro.ini -nt run/shiro.ini ] ; then echo "Copying src3/run--shiro.ini -> run/shiro.ini" /bin/cp src3/run--shiro.ini run/. fi if [ ! -f run/templates/config-tdb-dir ] || [ src3/run-templates--config-tdb-dir -nt run/templates/config-tdb-dir ] ; then echo "Copying src3/run-templates--config-tdb-dir run/templates/config-tdb-dir" if [ ! -d run/templates ] ; then mkdir run/templates fi /bin/cp src3/run-templates--config-tdb-dir run/templates/config-tdb-dir fi if [ ! -d etc/tdb-triple-store3 ] ; then echo "Creating directory: " echo " etc/tdb-triple-store3" mkdir etc/tdb-triple-store3 fi ./bin/script3/fuseki-server --tdb etc/tdb-triple-store3 --update --port $port /greenstone popd