TranslatorSRI / NameResolution

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

Return entire document in reverse lookups #115

Closed gaurav closed 7 months ago

gaurav commented 7 months ago

We previously returned only the list of synonyms during a reverse-lookup. This PR updates that so that we return all the information we have on that CURIE in the Solr database, including the preferred name, all the synonyms, Biolink type, id and version. An example:

{
  "MONDO:0005737": {
    "curie": "MONDO:0005737",
    "names": [
      "EHF",
      "Ebola",
      "Ebola fever",
      "disease ebola",
      "Ebola disease",
      "Ebola Infection",
      "Infection, Ebola",
      "Ebola virus disease",
      "ebola virus disease",
      "Ebola Virus Disease",
      "Ebolavirus Infection",
      "Ebola virus infection",
      "Ebola Virus Infection",
      "Infection, Ebolavirus",
      "ebola virus infection",
      "Ebolavirus Infections",
      "Infections, Ebolavirus",
      "Virus Infection, Ebola",
      "Infection, Ebola Virus",
      "Ebola hemorrhagic fever",
      "Ebola Hemorrhagic Fever",
      "ebola fever hemorrhagic",
      "ebola hemorrhagic fever",
      "Ebola haemorrhagic fever",
      "ebola haemorrhagic fever",
      "Hemorrhagic Fever, Ebola",
      "EVD - Ebola virus disease",
      "Ebolavirus infectious disease",
      "Ebola virus hemorrhagic fever",
      "Viral hemorrhagic fever, Ebola",
      "Ebola virus disease (disorder)",
      "Ebolavirus disease or disorder",
      "Viral haemorrhagic fever, Ebola",
      "Ebolavirus caused disease or disorder",
      "Ebola virus hemorrhagic fever (diagnosis)"
    ],
    "types": [
      "Disease",
      "DiseaseOrPhenotypicFeature",
      "BiologicalEntity",
      "ThingWithTaxon",
      "NamedThing",
      "Entity"
    ],
    "preferred_name": "Ebola hemorrhagic fever",
    "shortest_name_length": 3,
    "curie_suffix": 5737,
    "id": "9a4bb391-4334-4bde-a8fe-8bacee3a6f44",
    "_version_": 1775179837774758000
  }
}