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 entire document in reverse lookups #115

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

gaurav
Copy link
Contributor

@gaurav gaurav commented Nov 16, 2023

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

@gaurav gaurav requested a review from cbizon November 16, 2023 16:49
@gaurav gaurav merged commit 39c1aaa into master Nov 16, 2023
1 check passed
@gaurav gaurav deleted the improve-reverse-lookup branch November 16, 2023 18:15
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