Skip to content

reciprocal queries not matching #317

@andrewsu

Description

@andrewsu

I execute this query to find any NamedThing related to xylitol (UMLS:C0043369):

{
   "message": {
       "query_graph": {
           "edges": {
               "e01": {
                   "subject": "n0",
                   "object": "n1"
               }
           },
           "nodes": {
               "n0": {
                   "ids": ["UMLS:C0043369"],
                   "categories": ["biolink:SmallMolecule"]
               },
               "n1": {
                   "categories": ["biolink:NamedThing"]
               }
           }
       }
   }
}

one of the results is Aldehyde Reductase (UMLS:C0002003)

                "UMLS:C0002003": {
                    "categories": [
                        "biolink:Protein"
                    ],
                    "name": "Aldehyde Reductase",
                "e4adf01204f21097e082a304b13da4f2": {
                    "predicate": "biolink:physically_interacts_with",
                    "subject": "UMLS:C0043369",
                    "object": "UMLS:C0002003",
                    "attributes": [
                        ...
                        {
                            "attribute_type_id": "biolink:aggregator_knowledge_source",
                            "value": [
                                "infores:biothings-semmeddb-chemical"
                            ],
                            "value_type_id": "biolink:InformationResource"
                        },
                        {
                            "attribute_type_id": "publications",
                            "value": [
                                "PMID:26264136",
                                "PMID:28188449"
                            ]
                        }
                    ]

But when I query for NamedThings related to Aldehyde Reductase (UMLS:C0002003), I get no results:

{
   "message": {
       "query_graph": {
           "edges": {
               "e01": {
                   "subject": "n0",
                   "object": "n1"
               }
           },
           "nodes": {
               "n0": {
                   "ids": ["UMLS:C0002003"],
                   "categories": ["biolink:Protein"]
               },
               "n1": {
                   "categories": ["biolink:NamedThing"]
               }
           }
       }
   }
}
        "knowledge_graph": {
            "nodes": {},
            "edges": {}
        },
        "results": []

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions