Message-ID: <622329742.922670.1574089003813.JavaMail.confluen@bs-wiki01.ethz.ch> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_922669_8655115.1574089003813" ------=_Part_922669_8655115.1574089003813 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Container Data Sets

# Container Data Sets

## W= hat is a "Container Data Set"?

=20

A Container Data Set is a container for other data sets but doe= s not contain any data in the data store itself.

=20

A container data set can have properties and can be linked with other da= ta sets.

=20

Each data set can be part of exactly one or none container data sets (1:= N relationship). The contained data sets that have an order, i.e. = there is a first, a second, and a last data set within a container.

=20

It is decided on the level of the Data Set Type whether its data sets ar= e container or not, i.e. either all data sets of a type are container or al= l are plain (non-container) data sets.

=20

## How d= oes a Container Data Set show up in openBIS?

=20

In the data set detail view, container data sets have one additional tab= which reads "Contained Data Sets".

=20

Additionally, the "Files" Data View for a container data set will show a= ll the files in all contained data sets "overlayed" (per directory): If dat= a set A has file `original/a` and data set B has file ```orig= inal/b```, then the container data set C, wrapping A and B, will have b= oth files in its file listing. If two contained data sets have the same fil= e, the order of the data set in the container matters and the file of the <= em>last data set "wins". So if data set A and data set B both have a f= ile `x.tiff` and C contains A and B (in this order), then C will= have the `x.tiff` of data set B.

=20

### Cr= eating Container Data Sets from a Jython Dropbox

=20

Here is a short example of how you can create a container data set withi= n a Jython dropbox

=20
=20
```transaction =3D service.transaction(incoming)

dataSet =3D transaction.createNewDataSet()
...
dataSet1 =3D transaction.createNewDataSet()
...

container =3D transaction.createNewDataSet()
container.setDataSetType("CONTAINER_TYPE")
container.setContainedDataSetCodes([dataSet.dataSetCode, dataSet1.dataSetCo=
de])

...

transaction.commit()
```
=20
------=_Part_922669_8655115.1574089003813--
{"ft_lang_label":"__label__en","ft_lang_prob":0.71998066,"math_prob":0.7350623,"size":2141,"snap":"2019-43-2019-47","text_gpt3_token_len":546,"char_repetition_ratio":0.20542817,"word_repetition_ratio":0.0,"special_character_ratio":0.2802429,"punctuation_ratio":0.1588785,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97425884,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-18T14:56:43Z\",\"WARC-Record-ID\":\"<urn:uuid:911ed21b-aeba-4710-8dce-00b4191d6ada>\",\"Content-Length\":\"8774\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a00294d1-9809-4bbd-b7ff-71542b88c925>\",\"WARC-Concurrent-To\":\"<urn:uuid:f032699f-1472-411b-85d0-5b5082ced5e1>\",\"WARC-IP-Address\":\"129.132.0.195\",\"WARC-Target-URI\":\"https://wiki-bsse.ethz.ch/exportword?pageId=96536792\",\"WARC-Payload-Digest\":\"sha1:2DLULZ7XXMDHRAWMKHZWMLJHD5FK2JU4\",\"WARC-Block-Digest\":\"sha1:QASYDJIMX6DNX6EO4D6GG7UGQAM5HMMT\",\"WARC-Identified-Payload-Type\":\"message/rfc822\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496669795.59_warc_CC-MAIN-20191118131311-20191118155311-00434.warc.gz\"}"}