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

Return transformed query result from get_gocams_by_geneproduct_id #40

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

pkalita-lbl
Copy link
Contributor

This allows the /api/gp/{id}/models endpoint to return "plain" values like:

  {
    "gocam": "http://model.geneontology.org/5745387b00001770",
    "title": "Zcchc16, zinc finger, CCHC domain containing 16"
  }

Instead of:

  {
    "gocam": {
      "type": "uri",
      "value": "http://model.geneontology.org/5745387b00001770"
    },
    "title": {
      "datatype": "http://www.w3.org/2001/XMLSchema#string",
      "type": "literal",
      "value": "Zcchc16, zinc finger, CCHC domain containing 16"
    }
  },

@pkalita-lbl pkalita-lbl marked this pull request as draft April 12, 2023 19:33
@pkalita-lbl pkalita-lbl marked this pull request as ready for review April 12, 2023 20:09
@pkalita-lbl pkalita-lbl merged commit 3154d87 into main Apr 12, 2023
@pkalita-lbl pkalita-lbl deleted the fix-gp-models-return-type branch April 12, 2023 20:09
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

Successfully merging this pull request may close these issues.

2 participants