Stream: python

Topic: easyDataverse and types support


view this post on Zulip Oliver Bertuch (Jun 06 2025 at 07:24):

@Jan Range is it correct to assume that easyDataverse doesn't yet support the new dataset types feature?

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 07:25):

Asking because my colleague Nitai uses it for a Dataverse Hermes Plugin and it's still declared a "Dataset" when looking at the metadata. https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/7MQB0P

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 07:29):

Here's the deets in the API guide: https://guides.dataverse.org/en/latest/api/native-api.html#create-a-dataset-with-a-dataset-type-software-etc

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 07:45):

Looking at https://github.com/gdcc/easyDataverse/blob/main/easyDataverse/dataset.py I'd say it's not implemented. So we probably need to serialize to JSON and add it manually.

view this post on Zulip Jan Range (Jun 06 2025 at 08:59):

No, it is not implemented yet, but I am happy to add it to the Dataset class. Can you open an issue for this and I'll pick it up once I have time?

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 09:01):

Sure. But won't be fancy, just quick and dirty. https://github.com/gdcc/easyDataverse/issues/51

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 10:46):

I left a comment. Hope it's helpful.

view this post on Zulip Jan Range (Jun 06 2025 at 18:23):

Thanks for the comment! I have one question regarding the endpoint api/datasets/datasetTypes and its return type. What can I expect at the linkedMetadataBlocks property? Is it an array of strings or an object?

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:31):

bleh, does openapi tell you? http://beta.dataverse.org/openapi

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 18:31):

Did @Philip Durbin forget to add OpenAPI specs to the endpoint? :grinning_face_with_smiling_eyes:

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:32):

nothing:

  /datasets/datasetTypes:
    get:
      operationId: Datasets_getDatasetTypes
      responses:
        "200":
          description: OK

:cry: @Juan Pablo Tosca Villanueva will kill me :cold_sweat:

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:34):

it's an array of strings

view this post on Zulip Jan Range (Jun 06 2025 at 18:35):

Awesome, thanks a lot!

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:35):

For now you can see an empty array at https://demo.dataverse.org/api/datasets/datasetTypes

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 18:40):

Why is it empty? Shouldn't there be dataset and software?

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:49):

You're talking about this?

{
  "status": "OK",
  "data": [
    {
      "id": 1,
      "name": "dataset",
      "linkedMetadataBlocks": []
    },
    {
      "id": 2,
      "name": "software",
      "linkedMetadataBlocks": []
    }
  ]
}

view this post on Zulip Oliver Bertuch (Jun 06 2025 at 18:50):

Yes. I am. Stupid me. :doh:

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:50):

ha

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:51):

some day we'll link up codeMeta20 or whatever it's called

view this post on Zulip Philip Durbin ๐Ÿš€ (Jun 06 2025 at 18:51):

Please see #community > CodeMeta

view this post on Zulip Jan Range (Jun 07 2025 at 07:59):

Opened a PR :raised_hands:

https://github.com/gdcc/easyDataverse/pull/52

view this post on Zulip Oliver Bertuch (Jun 07 2025 at 08:12):

Splendid!


Last updated: Nov 01 2025 at 14:11 UTC