I'm experimenting with Migration API to import data from our legacy repository system. My goal is to create JSON-LD metadata which is compatible with Dataset Migration API in 6.5.
To test the API, I exported some metadata records out of my 6.5 test installation in OAI-ORE format, as instructed in Migration API documents, made some trivial modifications to metadata and tried to re-import metadata using Migration API.
However, I get a 400 bad request error when reimporting the data, Dataverse complaining about:
The API request cannot be completed with the parameters supplied. Details: Compound field values must be JSON objects, field: author
The example file I loaded from Migration API documentation imports fine.
How is your JSON-LD file different from the example file? Can you share it with us?
At first I tried a file which I exported from Dataverse 6.5 using OAI-ORE export format because I supposed that exported JSONLD works directly with Dataset Migration API.
It didn't work out but by trial and error I managed to modify the example file to include additional information our use case requires (eg. geospatial metadata). My exported file from 6.5 and modified, functional import file based on example file are here: https://gist.github.com/mjlassila/ecdbd11447ccdf87995db20bfc5e686c
Ah, great, so you got it working.
Yep, it works now as intended.
Perhaps it would be useful add to Dataset Migration API documentation that exported OAI-ORE data is not directly compatible with the API?
In case anyone other than us uses BaseX and XQuery for data wrangling, here is a snippet of XQuery for generating JSON-LD compatible with the Dataset Migration API. https://gist.github.com/mjlassila/ecdbd11447ccdf87995db20bfc5e686c
Yes! Are you interested in making a pull request?
I can try :smile: Is the documentation source in the Dataverse Github repo current or is there a separate repository for documentation?
Same repo. Here's the file: https://github.com/IQSS/dataverse/blob/develop/doc/sphinx-guides/source/developers/dataset-migration-api.rst
This might help as well: https://guides.dataverse.org/en/6.5/contributor/documentation.html
Even if you just write Markdown I'm happy to convert it to rst for you.
Hopefully I got it right: https://github.com/IQSS/dataverse/pull/11192
Thanks for the PR!
make html works fine. You can preview the changes at https://dataverse-guide--11192.org.readthedocs.build/en/11192/developers/dataset-migration-api.html
I added that link to your PR description.
As to the actual content, it looks like Jim (qqmyers) has some feedback for you.
I'm surprised that siteUrl is needed but Jim would know better than I would.
@mjlassila merged! Thanks!
Last updated: Oct 30 2025 at 06:21 UTC