... | ... | @@ -70,7 +70,7 @@ Following assumptions were made: |
|
|
* the collections are copied and published just one time, even if the rule to publish them is executed multiple times.
|
|
|
|
|
|
# Available functions of the python scripts
|
|
|
The B2SAFE B2SHARE client has 3 major functions draft, meta, pub to create a draft, add metadata to it and publish it. Further it as helping functions to list all available communities, to get the schema of a community to understand possible key value pairs of metadata file user has to fill, to get a specific draft to check it before publishing and to delete a draft if it is not correct. The arguments that needed to be specified for every call are the **--confpath** the path to the configuration file for the b2shareclient.py and the **--userName** name if the user in iRODS, to get the B2SHARE access token of the user from his meta data.
|
|
|
The B2SAFE B2SHARE client **b2shareclient.py** has 3 major functions: draft, meta, pub; to create a draft, add metadata to and publish it. Further it has helping functions to list all names of communities available in B2SHARE, to get the schema of a community, to understand possible key value pairs of metadata file user has to fill, to get a specific draft to check it before publishing and to delete a draft if it is not correct. The arguments that are needed to be specified for every call are the **--confpath** the path to the configuration file for the b2shareclient.py and the **--userName** name if the user in iRODS, to get the B2SHARE access token of the user from his meta data.
|
|
|
```
|
|
|
python b2shareclient.py -h
|
|
|
usage: b2shareclient.py [-h] [--confpath CONFPATH] [-dbg] [-d] [-u USERNAME]
|
... | ... | |