TranslatorSRI / NameResolution

A service for finding CURIEs from lexical strings.
3 stars 2 forks source link

Report scores for reverse lookup #116

Closed gaurav closed 7 months ago

gaurav commented 7 months ago

This PR modifies the lookup endpoints so that we report the Solr scores for each result.

Example result:

[
  {
    "curie": "UBERON:0000178",
    "label": "blood",
    "synonyms": [
      "Bld",
      "BLOOD",
      "blood",
      "Haema",
      "Blood",
      "Sanguis",
      "Blood, NOS",
      "whole blood",
      "Whole Blood",
      "Portion of blood",
      "peripheral blood",
      "vertebrate blood",
      "portion of blood",
      "Peripheral Blood",
      "Blood (substance)",
      "Reticuloendothelial System, Blood"
    ],
    "types": [
      "biolink:AnatomicalEntity",
      "biolink:PhysicalEssence",
      "biolink:OrganismalEntity",
      "biolink:SubjectOfInvestigation",
      "biolink:BiologicalEntity",
      "biolink:ThingWithTaxon",
      "biolink:NamedThing",
      "biolink:Entity",
      "biolink:PhysicalEssenceOrOccurrent"
    ],
    "score": 98.381294
  }
]

Closes #109