{"id":446,"date":"2023-04-17T16:56:57","date_gmt":"2023-04-17T14:56:57","guid":{"rendered":"http:\/\/localhost:8888\/?p=446"},"modified":"2025-11-26T16:56:57","modified_gmt":"2025-11-26T16:56:57","slug":"zenodo-repository-block","status":"publish","type":"post","link":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/2023\/04\/zenodo-repository-block\/","title":{"rendered":"Zenodo Repository Block"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <strong>Zenodo Repository<\/strong> block allows us to reuse datasets published to Zenodo. Starting with the DOI of the dataset, the block allows us to preselect the desired files that can be used further. The visitor should select one of them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, for the DOI <a rel=\"noreferrer noopener\" href=\"https:\/\/doi.org\/10.5281\/zenodo.7767654\" target=\"_blank\">10.5281\/zenodo.7767654<\/a> we preselected only the <code>txt<\/code> files in order to allow the visitors to see the file content using the Text Viewer block.<\/p>\n\n\n\n<div class=\"wp-block-inseri-core-zenodo\" data-attributes=\"{&quot;blockId&quot;:&quot;FogSZUfAD0gi668V1NZG8&quot;,&quot;doi&quot;:&quot;10.5281\/zenodo.7767654&quot;,&quot;files&quot;:[&quot;gs_rasmm_space.txt&quot;,&quot;gs_voxmm_space.txt&quot;,&quot;gs_vox_space.txt&quot;,&quot;points_data.txt&quot;,&quot;streamlines_data.txt&quot;],&quot;isVisible&quot;:true,&quot;label&quot;:&quot;Please select a file (source DOI 10.5281\/zenodo.7767654)&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;zenodo&quot;},&quot;selectedFile&quot;:null}\">is loading &#8230;<\/div>\n\n\n\n<div class=\"wp-block-inseri-core-text-viewer\" data-attributes=\"{&quot;blockId&quot;:&quot;aKGMHSAFfInnci4JVEWrD&quot;,&quot;content&quot;:&quot;&quot;,&quot;height&quot;:246,&quot;inputKey&quot;:&quot;FogSZUfAD0gi668V1NZG8\/file&quot;,&quot;label&quot;:&quot;The content of the selected file&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;textViewer-qbj&quot;}}\">is loading &#8230;<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">But a similar behaviour can be obtained using more basic blocks: the Web API block in order to call the Zenodo API combined with the Dropdown block (and some processing that can be done via the Python Code block). The advantage of the Zenodo Repository block is that it provides a simpler interface.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more details please see the corresponding <a href=\"https:\/\/inseri-swiss.github.io\/inseri-core-wp\/blocks\/zenodo\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:60%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-inseri-core-export alignright\" data-attributes=\"{&quot;align&quot;:&quot;right&quot;,&quot;blockId&quot;:&quot;vaxQQCzmrnvQCf4meQgfk&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;export&quot;},&quot;postId&quot;:446}\">is loading &#8230;<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-inseri-core-share alignright\" data-attributes=\"{&quot;align&quot;:&quot;right&quot;,&quot;blockId&quot;:&quot;KTETwIissQyi0jL3ZpuwV&quot;,&quot;copiedText&quot;:&quot;Copied&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;share&quot;},&quot;showIcon&quot;:true,&quot;text&quot;:&quot;Share&quot;}\">is loading &#8230;<\/div>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Zenodo Repository block allows us to reuse datasets published to Zenodo. Starting with the DOI of the dataset, the block allows us to preselect the desired files that can be used further. The visitor should select one of them. Next, for the DOI 10.5281\/zenodo.7767654 we preselected only the txt files in order to allow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[40,50,53,55],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-inseri-core-block","tag-export","tag-share","tag-text-viewer","tag-zenodo-repository"],"_links":{"self":[{"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/comments?post=446"}],"version-history":[{"count":1,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":2119,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/posts\/446\/revisions\/2119"}],"wp:attachment":[{"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/media?parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/categories?post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zi.uzh.ch\/whp\/science-it\/inseri\/wp-json\/wp\/v2\/tags?post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}