Skip to content
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

Refactor /nmdcschema/associations endpoint #717

Open
PeopleMakeCulture opened this issue Oct 4, 2024 · 4 comments
Open

Refactor /nmdcschema/associations endpoint #717

PeopleMakeCulture opened this issue Oct 4, 2024 · 4 comments
Assignees

Comments

@PeopleMakeCulture
Copy link
Collaborator

Spinoff from branch 401-sparql related to #401

@PeopleMakeCulture
Copy link
Collaborator Author

PeopleMakeCulture commented Oct 24, 2024

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]

@PeopleMakeCulture PeopleMakeCulture moved this from Lineup to Injured List in Polyneme mixset Oct 24, 2024
@github-project-automation github-project-automation bot moved this from Injured List to Scored in Polyneme mixset Oct 30, 2024
@shreddd
Copy link
Collaborator

shreddd commented Nov 8, 2024

implement with all-docs

@jeffbaumes
Copy link
Collaborator

@PeopleMakeCulture I think this related_ids() function is kind of how this endpoint could function. So a list of ids comes in, along with a target class type, and out comes an association between input ids and output ids. related_ids() outputs a list of pairs [input_id, output_id] which is a nice form for joining columns to data frames.

@dwinston
Copy link
Collaborator

some motivating context: folks are performing lots of client-side munging and writing logic that could be done server-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Front of house
Development

No branches or pull requests

4 participants