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

feat(API): Implement must-haves of Generalized Ontology Querying API (based on Pablo’s prototype) + Tests #14

Closed
Bento007 opened this issue Feb 9, 2024 · 0 comments
Assignees

Comments

@Bento007
Copy link
Collaborator

Bento007 commented Feb 9, 2024

Depends on:

Generate Data all_ontology.json

DOD: Implement and test.

  • Get Ontology Term Ancestors by Term ID
    • include optional flag for whether to include self (default to false)
  • Get Ontology Term Ancestors by Term ID List
  • Get Ontology Term Descendants by Term ID
    • include optional flag for whether to include self (default to false)
  • Get Ontology Term Descendants by Term ID List
  • Is Term ID Deprecated
  • Get Ontology Term ID ‘Replaced By’
  • Return None if not provided
  • Get Ontology Metadata by Term ID
  • Return dict with metadata annotated as “Comments”, “Considers”, or “Term Tracker” (annotated in OWL/OBOs as IAO_0000233, usually a link to a github issue with community discussion around term)
  • Get Ontology Term ID ‘Label’
Bento007 added a commit that referenced this issue Feb 23, 2024
## Reason for Change

- #14

## Changes

- implement all_ontology querying functions to fetch metadata, for
single term IDs and bulk IDs
- reorganize file structure to store artifacts that will be packaged
with the API in the python/api directory, rather than in the
ontology-builder directory (which will not be packaged).
- In turn, reorganize the env.py constants + GHAs pointing to
directories to read from / output generated files to.

## Testing steps
- unit tests 

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

No branches or pull requests

2 participants