-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_graph.sh
More file actions
executable file
·30 lines (26 loc) · 912 Bytes
/
update_graph.sh
File metadata and controls
executable file
·30 lines (26 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# bin/bash
echo "delete namedgraphs"
curl -D- -X DELETE \
"${R_ENDPOINT_V}?c=<https://sk.acdh.oeaw.ac.at/project/fackel>"
sleep 300
echo "upload namedgraphs data.ttl"
curl "${R_ENDPOINT_V}?context-uri=https://sk.acdh.oeaw.ac.at/project/fackel" \
-H 'Content-Type: application/x-turtle; charset=UTF-8' \
-H 'Accept: text/boolean' \
-d @rdf/data.ttl
sleep 300
echo "namedgraphs texts.ttl"
curl "${R_ENDPOINT_V}?context-uri=https://sk.acdh.oeaw.ac.at/project/fackel" \
-H 'Content-Type: application/x-turtle; charset=UTF-8' \
-H 'Accept: text/boolean' \
-d @rdf/texts.ttl
sleep 300
for i in {1..10}
do
echo "namedgraphs mentions${i}.ttl"
curl "${R_ENDPOINT_V}?context-uri=https://sk.acdh.oeaw.ac.at/project/fackel" \
-H 'Content-Type: application/x-turtle; charset=UTF-8' \
-H 'Accept: text/boolean' \
-d @rdf/mentions$i.ttl
sleep 300
done