-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
23 lines (18 loc) · 1.02 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
docker-compose up -d
echo "Waiting for GraphDB to be up-and-running"
curl -X GET --header 'Accept: application/json' 'http://localhost:7200/rest/locations'
retVal=$?
while [ $retVal -ne 0 ]
do
sleep 5
curl -X GET --header 'Accept: application/json' 'http://localhost:7200/rest/locations'
retVal=$?
done
# Create repository from config
curl -X POST -F config=@config.ttl --header 'Content-Type: multipart/form-data' --header 'Accept: */*' 'http://localhost:7200/rest/repositories'
# Upload SHACL file
curl -d @../shapeTest/shacl.ttl --header "Content-Type: application/x-turtle" http://localhost:7200/repositories/epnd_dummy/statements?context=%3Chttp://shacl.local/%3E
# Upload ontology file
curl -d @ontology.owl --header "Content-Type: application/rdf+xml" http://localhost:7200/repositories/epnd_dummy/statements?context=%3Chttp://ontology.local/%3E
# Upload data file
curl -d @output.ttl --header "Content-Type: application/x-turtle" http://localhost:7200/repositories/epnd_dummy/statements?context=%3Chttp://data.local/%3E