Last change
on this file since 37124 was 37124, checked in by davidb, 2 months ago |
Changed to used derived name of collection from file-system
|
-
Property svn:executable
set to
*
|
File size:
507 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | source ../_local_collect_config.sh
|
---|
4 |
|
---|
5 |
|
---|
6 | iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
|
---|
7 |
|
---|
8 | ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
|
---|
9 |
|
---|
10 | iuri_tail=${ifilename#archives/}
|
---|
11 |
|
---|
12 | iuri="${iuri_prefix}${iuri_tail}"
|
---|
13 |
|
---|
14 |
|
---|
15 | internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
|
---|
16 |
|
---|
17 | post_url="${internal_url_base}/populate"
|
---|
18 |
|
---|
19 |
|
---|
20 | echo ""
|
---|
21 |
|
---|
22 | echo curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
23 | curl -X POST -d "uri=${iuri}" "$post_url"
|
---|
24 |
|
---|
25 | echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.