microbiomedata / nmdc-runtime

Runtime system for NMDC data management and orchestration
https://microbiomedata.github.io/nmdc-runtime/
Other
6 stars 3 forks source link

Refactor /nmdcschema/associations endpoint #717

Open PeopleMakeCulture opened 3 weeks ago

PeopleMakeCulture commented 3 weeks ago

Spinoff from branch 401-sparql related to #401

PeopleMakeCulture commented 2 days ago

More consensus is needed on how this endpoint should work. There is a desire for something more generalized than a tool that navigates "has_input" and "has_output" relationships.

One idea is to use @eecavanna's refscan tool to create and cache a dict of possible paths between any two connected mongo collections.

I think this is something that will come up in the next referential integrity meeting.

In the meantime, I've prototyped a more specific use-case for traversing from data objects to biosamples [link to GH issue needed]