parent
d248ee6183
commit
e34e56beef
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 50 KiB |
@ -1,24 +1,27 @@ |
|||||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||||
|
|
||||||
DATASET_SIZE=10000 |
DATASET_SIZE=100000 # number of products in the dataset. There is around 350 triples generated by product. |
||||||
PARALLELISM=5 |
PARALLELISM=16 |
||||||
|
VERSION="4.3.2" |
||||||
cd bsbm-tools |
cd bsbm-tools |
||||||
./generate -fc -pc ${DATASET_SIZE} -s nt -fn "explore-${DATASET_SIZE}" -ud -ufn "explore-update-${DATASET_SIZE}" |
./generate -fc -pc ${DATASET_SIZE} -s nt -fn "explore-${DATASET_SIZE}" -ud -ufn "explore-update-${DATASET_SIZE}" |
||||||
wget https://downloads.apache.org/jena/binaries/apache-jena-fuseki-4.1.0.zip |
wget https://downloads.apache.org/jena/binaries/apache-jena-${VERSION}.zip |
||||||
unzip apache-jena-fuseki-4.1.0.zip |
unzip apache-jena-${VERSION}.zip |
||||||
rm apache-jena-fuseki-4.1.0.zip |
rm apache-jena-${VERSION}.zip |
||||||
echo "rootLogger.level = ERROR" > log4j2.properties |
./apache-jena-${VERSION}/bin/tdb2.tdbloader --loader=parallel --loc=td_data "explore-${DATASET_SIZE}.nt" |
||||||
./apache-jena-fuseki-4.1.0/fuseki-server --tdb2 --loc=td_data --update /bsbm & |
wget https://downloads.apache.org/jena/binaries/apache-jena-fuseki-${VERSION}.zip |
||||||
|
unzip apache-jena-fuseki-${VERSION}.zip |
||||||
|
rm apache-jena-fuseki-${VERSION}.zip |
||||||
|
echo "rootLogger.level = ERROR" > ./apache-jena-fuseki-${VERSION}/log4j2.properties |
||||||
|
./apache-jena-fuseki-${VERSION}/fuseki-server --tdb2 --loc=td_data --update /bsbm & |
||||||
sleep 10 |
sleep 10 |
||||||
curl -f -X POST -H 'Content-Type:text/plain' --data-binary "@explore-${DATASET_SIZE}.nt" http://localhost:3030/bsbm |
./testdriver -mt ${PARALLELISM} -ucf usecases/explore/sparql.txt -o "../bsbm.explore.jena.${DATASET_SIZE}.${PARALLELISM}.${VERSION}.xml" http://localhost:3030/bsbm/query |
||||||
sleep 60 |
./testdriver -mt ${PARALLELISM} -ucf usecases/exploreAndUpdate/sparql.txt -o "../bsbm.exploreAndUpdate.jena.${DATASET_SIZE}.${PARALLELISM}.${VERSION}.xml" http://localhost:3030/bsbm/query -u http://localhost:3030/bsbm/update -udataset "explore-update-${DATASET_SIZE}.nt" |
||||||
./testdriver -mt ${PARALLELISM} -ucf usecases/explore/sparql.txt -o "../bsbm.explore.jena.${DATASET_SIZE}.${PARALLELISM}.4.1.0.xml" http://localhost:3030/bsbm/query |
#./testdriver -mt ${PARALLELISM} -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.jena.${DATASET_SIZE}.${PARALLELISM}.${VERSION}.xml" http://localhost:3030/bsbm/query |
||||||
./testdriver -mt ${PARALLELISM} -ucf usecases/exploreAndUpdate/sparql.txt -o "../bsbm.exploreAndUpdate.jena.${DATASET_SIZE}.${PARALLELISM}.4.1.0.xml" http://localhost:3030/bsbm/query -u http://localhost:3030/bsbm/update -udataset "explore-update-${DATASET_SIZE}.nt" |
|
||||||
#./testdriver -mt ${PARALLELISM} -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.jena.${DATASET_SIZE}.${PARALLELISM}.4.1.0.xml" http://localhost:3030/bsbm/query |
|
||||||
kill $! |
kill $! |
||||||
rm "explore-${DATASET_SIZE}.nt" |
rm "explore-${DATASET_SIZE}.nt" |
||||||
rm "explore-update-${DATASET_SIZE}.nt" |
rm "explore-update-${DATASET_SIZE}.nt" |
||||||
rm -r td_data |
rm -r td_data |
||||||
rm -r run |
rm -r run |
||||||
rm -r apache-jena-fuseki-4.1.0 |
rm -r apache-jena-${VERSION} |
||||||
rm log4j2.properties |
rm -r apache-jena-fuseki-${VERSION} |
||||||
|
Loading…
Reference in new issue