# Data Store documentation

**URL:** <https://discourse.slicer.org/t/data-store-documentation/178>\
**Category:** Development\
**Created:** [April 23, 2017, 3:21pm UTC](https://discourse.slicer.org/t/data-store-documentation/178 "2017-04-23T15:21:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorensen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lorensen/32/31_2.png) [@Lorensen](https://discourse.slicer.org/u/Lorensen)\
**Post date:** [April 23, 2017, 3:21pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/1 "2017-04-23T15:21:14Z")

</div>

I have been trying to upload an mrb to the DataStore using the Slice module, I notice that uploaded data set does not have an index,json file that somehow describes the .png file that holds my scene view. Also, the metadata is missing the slicerdatastore metadata. If I add that metadata manually through the midas interface, my dataset shows up in the slicer datastore datasets.

Where is the upload process documented that describes the index.json file and how to get the meta data properly documented?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [April 24, 2017, 12:41pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/2 "2017-04-24T12:41:47Z")

</div>

Hi Bill,

Thanks for the note.

> [@Lorensen](#):
>
> Where is the upload process documented that describes the index.json file and how to get the meta data properly documented?

Current documentation is available here:

- [Documentation/Nightly/Modules/DataStore - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Modules/DataStore)
- [Documentation/4.6/Modules/DataStore - Slicer Wiki](https://www.slicer.org/wiki/Documentation/4.6/Modules/DataStore)

Could you could add a note on the wiki pages ?

---

<div class="post-metadata">

**Author:** ![Lorensen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lorensen/32/31_2.png) [@Lorensen](https://discourse.slicer.org/u/Lorensen)\
**Post date:** [April 24, 2017, 8:27pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/3 "2017-04-24T20:27:00Z")

</div>

@jc ,can you upload an mrb to the datastore and see if it appears in the Slicer DataStore. I have a feeling that the mechanism is broken. When I upload (using the Slicer Datastore module), the meta data is nor properly populated. I have tried this with my own mrb’s and mrb’s I have downloaded from the DataStore.

Bill

---

<div class="post-metadata">

**Author:** ![Lorensen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lorensen/32/31_2.png) [@Lorensen](https://discourse.slicer.org/u/Lorensen)\
**Post date:** [April 26, 2017, 2:47pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/4 "2017-04-26T14:47:06Z")

</div>

@jcfr @pieper Is the datastore broken? Can you upload a dataset and see if it shows up in the Slicer DataStore listing?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [April 26, 2017, 2:59pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/5 "2017-04-26T14:59:00Z")

</div>

Hi Bill,

I didn’t have a chance to look into this yet. I will let you know as soon as I have an update.

Thanks for your patience,  
Jc

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [May 2, 2017, 7:49pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/6 "2017-05-02T19:49:32Z")

</div>

> [@Lorensen](#):
>
> Where is the upload process documented that describes the index.json file and how to get the meta data properly documented?

I would recommend to look at:

- the following Midas plugin: [GitHub - midasplatform/slicerdatastore: Midas Server module for uploading and downloading data from 3D Slicer](https://github.com/midasplatform/slicerdatastore)
- [GitHub - Slicer/Slicer-DataStore: Slicer module to Download, Upload and Browse MRB datasets stored in a Midas database](https://github.com/Slicer/Slicer-DataStore)

---

<div class="post-metadata">

**Author:** ![Lorensen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lorensen/32/31_2.png) [@Lorensen](https://discourse.slicer.org/u/Lorensen)\
**Post date:** [May 2, 2017, 8:03pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/7 "2017-05-02T20:03:33Z")

</div>

Sorry I can’t help. My php skills are 0.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [May 2, 2017, 8:14pm UTC](https://discourse.slicer.org/t/data-store-documentation/178/8 "2017-05-02T20:14:07Z")

</div>

Having an other look, the following module is responsible for the extraction of metadata associated with a MRB file is this one:

> **[midasplatform/mrbextractor](https://github.com/midasplatform/mrbextractor/tree/9a9e26f9a7d47ca5e7ab1a14908a1be851374307)**
>
> Midas Server module to extract MRB metadata. Contribute to midasplatform/mrbextractor development by creating an account on GitHub.

Note that revision `9a9e26f9` is used on the slicer server.

More specifically, the script in charge of extract the metadata is this one: [https://github.com/midasplatform/mrbextractor/blob/9a9e26f9a7d47ca5e7ab1a14908a1be851374307/controllers/components/scripts/mrb-extract-views.py](https://github.com/midasplatform/mrbextractor/blob/9a9e26f9a7d47ca5e7ab1a14908a1be851374307/controllers/components/scripts/mrb-extract-views.py)

Generation of `index.json` happens here:

> <https://github.com/midasplatform/mrbextractor/blob/9a9e26f9a7d47ca5e7ab1a14908a1be851374307/controllers/components/scripts/mrb-extract-views.py#L77>
