-
Notifications
You must be signed in to change notification settings - Fork 10
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
catalog-validate failed to validate metadata extracted by meta-extract #492
Comments
Hi @tientong98. Sorry I missed the notification for this issue. The issue seems to be the format in which you input the metadata to the
So the file has to be jsonlines, i.e. a single line should be readable as a json object. In your example you first run it through
which should return something like this instead of
So, your metadata in the file needs to be json lines (or from STDIN, or a json serialized string, or a python dict if you work with the python API). So if you remove the
|
Thank you, @jsheunis ! Yes, turning the metadata to json lines solved my issue. Thank you very much for the detailed explanation, really appreciate it! |
Hello,
I'm currently using
datalad 1.0.2
datalad_catalog 1.1.1
and was not able to validate metadata files. Below are what I did:
I tried to use
catalog-translate
but wasn't successful:datalad catalog-translate metadata.json
returned null anddatalad catalog-translate -m metadata.json
returned error:metadata.json
doesn't pass the validation:But I also tried to validate a catalog schema, which also didn't pass the validation either
I was able for add metadata as specified in the example in the handbook
And I can see the differences in the format between the handbook example and the output of
meta-extract
usingmetalad_core
, and this might be related to this issue. Please let me know what's the best way to move forward.Thank you!
Tien
The text was updated successfully, but these errors were encountered: