You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
DATASET_SIZE=100000 # number of products in the dataset. There is around 350 triples generated by product.
|
|
|
|
MEMORY_SIZE=1000000 # availlable memory for Oxigraph in GB. Useful to simulate low RAM machines.
|
|
|
|
|
|
|
|
cd bsbm-tools
|
|
|
|
./generate -fc -pc ${DATASET_SIZE} -s nt -fn "explore-${DATASET_SIZE}"
|
|
|
|
cargo build --release --manifest-path="../../server/Cargo.toml"
|
|
|
|
(
|
|
|
|
ulimit -d ${MEMORY_SIZE}
|
|
|
|
./../../target/release/oxigraph_server --file oxigraph_data
|
|
|
|
) &
|
|
|
|
sleep 5
|
|
|
|
curl -f -X POST -H 'Content-Type:application/n-triples' --data-binary "@explore-${DATASET_SIZE}.nt" http://localhost:7878/
|
|
|
|
./testdriver -ucf usecases/explore/sparql.txt -o "../bsbm.explore.oxigraph.${DATASET_SIZE}.${MEMORY_SIZE}.$(date +'%Y-%m-%d').xml" http://localhost:7878/query
|
|
|
|
./testdriver -ucf usecases/businessIntelligence/sparql.txt -o "../bsbm.businessIntelligence.oxigraph.${DATASET_SIZE}.${MEMORY_SIZE}.$(date +'%Y-%m-%d').xml" http://localhost:7878/query
|
|
|
|
kill $!
|
|
|
|
rm -r oxigraph_data
|
|
|
|
rm "explore-${DATASET_SIZE}.nt"
|
|
|
|
rm -r td_data
|