Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit c3f7c47

Browse files
committed
Added initial run examples script (wip)
1 parent 1e78642 commit c3f7c47

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

run-examples-wip.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
LAYER=query
2+
EXAMPLE=Sparklify
3+
4+
JAR=`ls sansa-examples-spark/target/sansa-examples-spark_*-dist.jar`
5+
BASE_URL="file://"`pwd`"/"
6+
echo "Using jar file $JAR"
7+
echo "Base URL: $BASE_URL"
8+
9+
spark-submit \
10+
--class net.sansa_stack.examples.spark.$LAYER.$EXAMPLE \
11+
--master spark://spark-master:7077 \
12+
"$JAR" -i "$BASE_URL/sansa-examples-spark/src/main/resources/rdf.nt" \
13+
14+
# TODO Validate the output
15+
curl -LH 'Accept: application/sparql-results+json' 'http://localhost:7531/sparql?query=SELECT%20%2A%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D'
16+

0 commit comments

Comments
 (0)