-
Notifications
You must be signed in to change notification settings - Fork 492
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
Feature Request: Simplify dataset metadata JSON files for dataset creation or import #10957
Comments
Note: a more radical simplification would be very interesting, but hopefully this would be an easier quick win. |
Note that the metadata input for the semantic API would look like (using a (~standard) @context for readability):
or, even shorter,
|
This is what I've suggested to @JR-1991 who has slides ready about the gnarly complicated native format, to try the semantic API. 😄 See also discussion here: |
@pdurbin, it is on my bucket list 😁 Can this also be passed to the dataset creation/edit endpoint? |
@JR-1991 well, you have to pass |
Please, please, please create a JSON schema for any rework of the metadata and use something like https://rjsf-team.github.io/react-jsonschema-form/ to enforce it on the UI side. Not having a JSON schema for the current JSON metadata used to create a dataset is extremely frustrating. |
@kuhlaid that makes total sense. Please see this issue: It was split into these: sub-issues:
Which resulted in these pull requests: The latest docs are here:
Do those docs help? Thanks! |
I guess what I was looking for was the 'dataset-schema.json' file (which is impossible to find using the Sphinx docs search). I'm fairly certain this schema does not sufficiently define the metadata that is allowed to be used. The UI uses very explicit elements such as Author Identifier Type and does not seem to allow for values outside of the defined elements in the UI dropdown list. If that is the case then any 'out of bounds' data should be well defined within the schema. If Author Identifier Type for example is limited to ORCID, ISNI, etc. then those should probably be enumerated within the schema. The current 'dataset-schema.json' file is missing details on explicit elements found in the UI. |
@kuhlaid yeah, my fear is that what we're offering is not complete enough. As you can see, all those issues and PRs above have been merged. Would you be able to open a fresh issue explaining what would be helpful to you? |
Overview of the Feature Request
Remove elements from the dataset creation json file that are superfluous
What kind of user is the feature intended for?
API User
What inspired the request?
JSON files are long, complex and intimidating for new users.
What existing behavior do you want changed?
Remove the need of the following attributes in the dataset JSON files :
typeClass
for metadata fieldsmultiple
for metadata fieldsdisplayName
for metadatablocksJSON files comparison
Current Darwin Finches JSON for the fields title, author, datasetContact, dsDescription, subject :
Simplified JSON file :
Are you thinking about creating a pull request for this feature?
Even if this would help increase APIs adoption, we have other priorities at the moment.
The text was updated successfully, but these errors were encountered: