dandi / dandi-schema

Schemata for DANDI archive project
Apache License 2.0
7 stars 10 forks source link

Include explicitly dandiset ID and version within citation/datacite record #259

Open yarikoptic opened 4 weeks ago

yarikoptic commented 4 weeks ago

ATM our records look like

❯ (set -x; doiref 10.48324/dandi.000485/0.241014.2127 )
+zsh:47> doiref 10.48324/dandi.000485/0.241014.2127
+doiref:2> doi=+doiref:2> echo 10.48324/dandi.000485/0.241014.2127
+doiref:2> doi=+doiref:2> sed -e 's,https*://.*doi\.org/,,g'
+doiref:2> doi=10.48324/dandi.000485/0.241014.2127 
+doiref:3> curl --silent -L -d '' --header 'Accept: application/x-bibtex; charset=utf-8' https://doi.org/10.48324/dandi.000485/0.241014.2127
+doiref:4> sed -e s,%2F,/,g
+doiref:4> xclip -i
+doiref:5> xclip -o
@misc{https://doi.org/10.48324/dandi.000485/0.241014.2127,
  doi = {10.48324/DANDI.000485/0.241014.2127},
  url = {https://dandiarchive.org/dandiset/000485/0.241014.2127},
  author = {Haesemeyer, Martin},
  title = {Thermal Plaid Experiments},
  publisher = {DANDI Archive},
  year = {2024}
}

so neither title nor explicit field include identifier (000485, or DANDI:000485) or version (0.241014.2127).

@djarecka found already that there is Version attribute we should add to datacite records, but it does not then appear in bibtex rendering. She also discovered that "identifiers" was removed in 4.5 from new JSON schema version since it is not really in original schema. Apparently the entire datacite jsonschema serialization is a fruit of "manual labor":

and is not "official":

I will file a separate issue/PR on identifiers and overall there is more to figure out how to improve our citation record.