Skip to content

Instantly share code, notes, and snippets.

@argahsuknesib
Last active September 6, 2022 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save argahsuknesib/2bba5e88f8240aa77d751a74b5b31ecd to your computer and use it in GitHub Desktop.
Save argahsuknesib/2bba5e88f8240aa77d751a74b5b31ecd to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for tripleFile in *.nt; do
echo "PUSHING DATA INTO THE SOLID PODS"
echo "================================"
if [ -z "$baseURL"]
then
echo "baseURL is not specified, please specify a base URL."
elif [ -z "$timestamp"]
then
echo "timestamp argument is not specified"
elif [-z "$dataFile"]
then
echo "dataFile argument is not specified"
elif [-z "$versioningConcept"]
then
echo "valid versioning concept is not specified"
elif [-z "$bucketSize"]
then
echo "valid bucket size is not specified"
elif [-z "$authentication"]
then
echo "specifiy an authentication credential file, or None in case"
else
npx ts-node ./SolidEventSourcing/EventSource/index.ts $tripleFile "$baseURL" "$versioningConcept" "$bucketSize" "$authentication" "$timestamp"
fi
echo
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment