-
Notifications
You must be signed in to change notification settings - Fork 0
/
5-sparql.sh
executable file
·60 lines (53 loc) · 1.68 KB
/
5-sparql.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
set -e
source .env
#for query in "${QUERIES[@]}"
#do
# echo $query
# #curl \
# # --include -v \
# # --header "Authorization: Basic $STARDOG_AUTH" \
# # --header "Content-Type: application/sparql-update" \
# # --data-binary $query \
# # "${ENDPOINT}/update"
##
#
# #curl -v -H "Accept: text/turtle" --header "Authorization: Basic $STARDOG_AUTH" --data-urlencode update@$query 'http://data.zazuko.com/lobbywatch/update/update'
#
#done
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/factions.rq' \
"${ENDPOINT}/update"
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/parties.rq' \
"${ENDPOINT}/update"
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/zefix.rq' \
"${ENDPOINT}/update"
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/reverse_properties.rq' \
"${ENDPOINT}/update"
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/legalforms.rq' \
"${ENDPOINT}/update"
curl \
--include -v \
--header "Authorization: Basic $STARDOG_AUTH" \
--header "Content-Type: application/sparql-update" \
--data-binary '@queries/legalforms.rq' \
"${ENDPOINT}/update"