Strabon

diff scripts/strabon @ 1246:da14a303bf2c

merge with default
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Thu Aug 01 14:40:30 2013 +0300 (2013-08-01)
parents a1e2561b7c2c 49d07fd6367e
children
line diff
     1.1 --- a/scripts/strabon	Wed Mar 27 13:30:17 2013 +0200
     1.2 +++ b/scripts/strabon	Thu Aug 01 14:40:30 2013 +0300
     1.3 @@ -61,6 +61,9 @@
     1.4  # the URI of the named graph into which the RDF files shall be stored
     1.5  NAMED_GRAPH=
     1.6  
     1.7 +# true when inference is enabled
     1.8 +INFERENCE=
     1.9 +
    1.10  # predefined queries
    1.11  QUERY_SIZE="SELECT (COUNT(*) as ?C) WHERE {?s ?p ?o}"
    1.12  QUERY_GETALL="SELECT * WHERE {?s ?p ?o}"
    1.13 @@ -179,6 +182,7 @@
    1.14  	echo "		    \`ntriples' (default), \`n3', \`rdfxml', \`turtle', or \`nquads'."
    1.15  	echo "	-g NAMED_GRAPH : the URI of the named graph into which the RDF files shall be stored"
    1.16  	echo "	                 (defaults to the default graph)."
    1.17 +	echo "	--inference : enables inference."
    1.18  }
    1.19  
    1.20  function help_describe() {
    1.21 @@ -534,6 +538,12 @@
    1.22  				fi
    1.23  			fi
    1.24  
    1.25 +			# check whether inference is enabled
    1.26 +			if test "${1}" = "--inference"; then
    1.27 +				shift
    1.28 +				INFERENCE="-i true"
    1.29 +			fi
    1.30 +
    1.31  		done
    1.32  
    1.33  		# if no files are given
    1.34 @@ -599,7 +609,7 @@
    1.35  			file="$(pwd)/${file}"
    1.36  		fi
    1.37  
    1.38 -		STRABON_EXEC="${STRABON_EXEC}(cd ${RUNTIME} && java ${JAVA_OPTS} -cp ./target/\*:. ${PKG}.${DATABASE}.${CLASS} ${HOST} ${PORT} ${DB} ${DBUSER} ${DBPASS} \"${file}\" -f ${FORMAT} ${NAMED_GRAPH});
    1.39 +		STRABON_EXEC="${STRABON_EXEC}(cd ${RUNTIME} && java ${JAVA_OPTS} -cp ./target/\*:. ${PKG}.${DATABASE}.${CLASS} ${HOST} ${PORT} ${DB} ${DBUSER} ${DBPASS} \"${file}\" -f ${FORMAT} ${NAMED_GRAPH} ${INFERENCE});
    1.40  "
    1.41  	done
    1.42  elif test "${CLASS}" = "QueryOp"; then