-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeta.sh
34 lines (23 loc) · 1.07 KB
/
beta.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
#!/bin/bash
echo "Expected to be run after findIDS script!"
filename="arns"
echo "Reading from file $filename"
counter=0
while read -r line
do
#curl -H "Accept: application/sparql-results+xml" http://202.45.139.84:10035/catalogs/fao/repositories/agris?query=SELECT%20%3Ft%20WHERE%20%7B%20%3Chttp://agris.fao.org/aos/records/US2015900006%3E%20dct:title%20%3Ft%20%7D
#curl -H "Accept: application/sparql-results+xml" http://202.45.139.84:10035/catalogs/fao/repositories/agris?query=SELECT%20%3Ft%20WHERE%20%7B%20%3Chttp://agris.fao.org/aos/records/US201500074869%3E%20dct:title%20%3Ft%20%7D
queryENC="SELECT%20%3Ft%20WHERE%20%7B%20%3Chttp://agris.fao.org/aos/records/$line%3E%20dct:title%20%3Ft%20%7D"
qURL="http://202.45.139.84:10035/catalogs/fao/repositories/agris?query=$queryENC"
#echo "Fetching...$counter"
echo "curl -H \"Accept: application/sparql-results+xml\" $qURL" >> urls
#lines="$(wc -l tmp | sed -ne 's/ tmp//p')"
#if [ "$lines" = 8 ]; then
# echo $line >> not.out
#else
# echo "false"
#fi
echo "Moving on.."
echo $line
#break
done < "$filename"