Inconsistent data type for `biolink:supporting_text`
The biolink:supporting_text attribute seems to have a value of type object/dict in rtx-kg2, but list/array in ARAX
Business impact: this may cause an issue for tools that parse these results downstream, with a likely outcome of not displaying to the user the supporting text from the publication presented as evidence for a given edge / relationship. Anecdotal evidence suggests that this is already happening in production.
- Example of data represented as a
listof dicts: https://arax.ncats.io/?r=354684 :: See result 1 → Analysis support graph → edge (withprimary_knowledge_source=infores:arax)
.
- Example of data represented as a
dict: https://arax.ncats.io/?r=355183 :: See result 1 → any edge (withprimary_knowledge_source=infores:semmeddb, andaggregator_knowledge_source=infores:rtx-kg2)
@Genomewide @webyrd do you know which the UI prefers? A list or an object/dict?
I think these lines make it as an array/list of object. So, if we prefer an object/dict, just need to update these lines.
I see those lines turning it into a list; is the thought process that if these attributes already exist as a dict they would just stay as a dict?
I think the answer is yes. I didn't see that there are other places that turn them into a list except for these lines.