Strabon
changeset 1069:49d07fd6367e
Added inference option in strabon script.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Tue Apr 23 16:15:52 2013 +0300 (2013-04-23) |
parents | 589bc43488c9 |
children | eec1a8547bc2 |
files | scripts/strabon |
line diff
1.1 --- a/scripts/strabon Mon Apr 22 19:19:51 2013 +0300 1.2 +++ b/scripts/strabon Tue Apr 23 16:15:52 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', or \`turtle'." 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