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

resolution of nmdc-prefixed schema element, JSON data objects and DataPortal pages #1359

Closed
turbomam opened this issue Nov 16, 2023 · 7 comments
Assignees

Comments

@turbomam
Copy link
Member

turbomam commented Nov 16, 2023

possible duplicate issue

@turbomam
Copy link
Member Author

turbomam commented Nov 16, 2023

prefer not to use DRS for getting objects (multiple steps?)

@turbomam
Copy link
Member Author

turbomam commented Nov 16, 2023

nmdc.yaml says

  nmdc: https://w3id.org/nmdc/

@turbomam
Copy link
Member Author

@turbomam
Copy link
Member Author

https://api-dev.microbiomedata.org/docs#/objects/get_object_info_objects__object_id__get

/objects/{object_id}

Resolution strategy:

if object_id.startswith("sty"): # nmdc:Study typecode then try https://data.microbiomedata.org/details/study/nmdc:{object_id}
if object_id.startswith("bsm"): # nmdc:Biosample typecode then try https://data.microbiomedata.org/details/sample/nmdc:{object_id}
if object_id.startswith some known typecode then try https://api.microbiomedata.org/nmdcschema/ids/nmdc:{object_id}
try https://w3id.org/nmdc/{object_id}
try mdb.objects.find_one({"id": object_id})

@dwinston
Copy link
Collaborator

related: microbiomedata/nmdc-server#1058

@turbomam turbomam changed the title resolution of nmdc-prefixed schema element and data objects resolution of nmdc-prefixed schema element, JSON data objects and DataPortal pages Nov 16, 2023
@PeopleMakeCulture PeopleMakeCulture moved this from Lineup to At bat in Polyneme mixset Nov 27, 2023
@dwinston
Copy link
Collaborator

this should be close-able once microbiomedata/nmdc-runtime#405 is merged and released.

@PeopleMakeCulture PeopleMakeCulture moved this from At bat to Lineup in Polyneme mixset Dec 5, 2023
@PeopleMakeCulture PeopleMakeCulture moved this from Lineup to Scored in Polyneme mixset Dec 5, 2023
@sujaypatil96
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants