geneontology / go-fastapi

https://api.geneontology.org/
5 stars 3 forks source link

Return transformed query result from get_gocams_by_geneproduct_id #40

Closed pkalita-lbl closed 1 year ago

pkalita-lbl commented 1 year ago

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"
    }
  },