mcdougallab / modeldb

ModelDB 2020 redesign
http://modeldb.science
10 stars 2 forks source link

reference issues #141

Open goldiezhu opened 1 year ago

goldiezhu commented 1 year ago

references are not in order, some paper references are incorrect (e.g. 'id': 234470 'David Gentilcore, Medical charlatanism in early modern Italy' is in 'id': 232098 'A coupled-oscillator model of olfactory bulb gamma oscillations.' and two other papers when it is not in the actual paper references)

references format: 'references': {'value': [{'object_id': 4640, 'object_name': 'Wang XJ, Buzsáki G (1996)'}, {'object_id': 4644, 'object_name': 'White JA, Chow CC, Ritt J, Soto-Treviño C, Kopell N (1998)'},

'missing_references': {'value': 'all done', 'attr_id': 211}

how to do: In metadata.py,

  1. Use get_reference_metadata(pmid) which returns metadata dictionary
  2. Get 'object_id' from retrieve_paper(pmid), which returns the paper
  3. Use metadata dictionary in paper_name(metadata_dict) to get updated 'object_name'
  4. Insert dictionary into paper, overwriting old references
goldiezhu commented 1 year ago

fill in new reference pages

goldiezhu commented 1 year ago

https://github.com/mcdougallab/modeldb/commit/28f212430045dac6d7e8a428f4dc1ccd8ffaeefc