source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/SUBMIT-OPENANNOTATION-LIST.sh@ 37124

Last change on this file since 37124 was 37124, checked in by davidb, 16 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
3source ../_local_collect_config.sh
4
5
6iuri_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/$col/index/assoc/
7
8ifilename=${1:-archives/HASH012c.dir/openannotation-list.json}
9
10iuri_tail=${ifilename#archives/}
11
12iuri="${iuri_prefix}${iuri_tail}"
13
14
15internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
16
17post_url="${internal_url_base}/populate"
18
19
20echo ""
21
22echo curl -X POST -d "uri=${iuri}" "$post_url"
23curl -X POST -d "uri=${iuri}" "$post_url"
24
25echo ""
Note: See TracBrowser for help on using the repository browser.