-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
records-api: add Data Package serializer #1905
base: master
Are you sure you want to change the base?
Conversation
* Exposes the Data Package serializer under a JSON-LD serialization with the appropriate profile parameter.
7b6915f
to
a6c7b9f
Compare
@roll I've hooked-in the data package serializer with the MIMEType I mentioned in your original PR. See also inveniosoftware/invenio-app-rdm#2936 for the integration under the "Export" menu on each record. I assume the of this is to integrate with the Frictionless Data libraries, e.g. for fetching datasets, so let me know how we can help with that. |
Hi @slint, great thanks! As I mentioned in the original PR the I think the most appropriate type would be just |
So, yes, once the |
The main issue is that we use Content-Types to differentiate between the different serialization formats in REST API responses and Indeed as you mentioned there's still a draft proposal similar to the I think there are two separate issues/solutions to address:
If either of the above makes sense, I can adjust the implementation so we get at least something in that can work with the Frictionless libraries. |
Yes, so basically the only API Data Package tooling uses is a link to a
If it's possible to do it will be amazing! Data publishers really appreciate when it's integrated into the system (so they don't need to share a custom data package link separately) cc @peterdesmet
In our tooling we don't use MIME type so technically any will work. I think we can use any correct one e.g. the one you proposed |
Neat! Regarding:
If you want an example, see: https://zenodo.org/records/10053903 |
Since I see the JSONSchema draft proposals sort of "frozen" at the moment and can't really understand if the
What I had in mind e.g. for the record at https://zenodo.org/records/10053903 when accessing the
*Note that the One of my concerns with allowing users to provide their own Since the We have two solutions in the works for circumventing this limitation:
There are no short or mid-term plans for developing these features at the moment, but just something to have in mind :) |
Yea totally make sense. Also, we will going to try to register the MIME-type this year so it might end-up as something like |
I agree as it's exact workflow I had in mind (TBH I didn't expect we can get there in the first iteration) and the same I'm going to propose for CKAN community. Regarding immutability, I would pass this question to @peterdesmet but personally I don't see a problem here - data + metadata is an artifact so if the platform (RDM in this case) operates with immutable versioned artifacts than data publishers have just use this model and publish accordingly (e.g. develop a dataset on github and then publish to Zenodo when it's released and immutable). As @peterdesmet and others already publish |
@slint everything in your #1905 (comment) makes sense to me 👍 Regarding immutability:
Well, uploading an immutable "id": "https://doi.org/10.5281/zenodo.10053903" Sometimes I make mistakes (like here) or forget to upload the
Sounds like a very good solution to me. |
Would it make sense and be possible to merge user's |
It would have the benefit that the user's |
Shall we just start from the simplest solution as having a system's Data Package at There are also other options like having merging mechanism in the standard itself like |
the appropriate profile parameter.