Changeset 38294 for gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/SUBMIT-OPENANNOTATION-LIST.sh
- Timestamp:
- 2023-10-06T18:07:52+13:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/intermuse/trunk/sites/intermuse/collect/demo-localhost/SUBMIT-OPENANNOTATION-LIST.sh
r38240 r38294 4 4 5 5 6 #iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/7 6 iuri_prefix=$gs_library_url/sites/$site/collect/$col/index/assoc/ 8 7 9 ifilename=$ {1:-archives/HASH012c.dir/openannotation-list.json}8 ifilename=$1 10 9 11 10 iuri_tail=${ifilename#archives/} … … 13 12 iuri="${iuri_prefix}${iuri_tail}" 14 13 15 16 #internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"17 14 internal_url_base="http://localhost:$gs_http_port/simpleAnnotationStore/annotation" 18 19 15 post_url="${internal_url_base}/populate" 20 16 21 17 22 echo "" 18 #echo curl -X POST -d "uri=${iuri}" "$post_url" 19 #curl -X POST -d "uri=${iuri}" "$post_url" 23 20 24 echo curl -X POST -d "uri=${iuri}" "$post_url"25 curl -X POST - d "uri=${iuri}" "$post_url"21 echo " " curl -X POST -H \'Content-Type: text/plain\' -d \"@$ifilename\" $post_url 22 curl -X POST -H 'Content-Type: text/plain' -d "@$ifilename" $post_url 26 23 27 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.