ranking-agent / strider

A TRAPI-compliant component of ARAGORN that queries distributed KPs and assembles answers to user questions.
MIT License
3 stars 0 forks source link

Missing Edge Bindings #408

Closed cbizon closed 1 year ago

cbizon commented 1 year ago

input:

{"message": {
      "query_graph": {
        "nodes": {
          "chemical": {
            "categories": [
              "biolink:ChemicalEntity"
            ],
          },    
          "disease": {
            "ids": [
              "MONDO:0010526"
            ],
            "categories": [
              "biolink:DiseaseOrPhenotypicFeature"
            ],
          },        
          "i": {  
            "categories": [
              "biolink:BiologicalProcessOrActivity"
            ],
          },
          "e": {
            "categories": [
              "biolink:ChemicalEntity"
            ],

          }
        },
          "edges": {
          "edge_0": {
            "subject": "i",
            "object": "chemical",
            "predicates": [
              "biolink:has_input"
            ]
          },
          "edge_1": {
            "subject": "i",
            "object": "e",
            "predicates": [
              "biolink:has_input"
            ]
          },
          "edge_2": {
            "subject": "e",
            "object": "disease",
            "predicates": [
              "biolink:treats"
            ]
          }
        }
      }
}}

Call strider.renci.org/1.4/query

Here is the first result:

{
    "node_bindings": {
        "chemical": [
            {
                "id": "PUBCHEM.COMPOUND:727",
                "query_id": null,
                "attributes": null
            }
        ],
        "i": [
            {
                "id": "UMLS:C0279023",
                "query_id": null,
                "attributes": null
            }
        ],
        "e": [
            {
                "id": "MESH:D000700",
                "query_id": null,
                "attributes": null
            }
        ],
        "disease": [
            {
                "id": "MONDO:0010526",
                "query_id": null,
                "attributes": null
            }
        ]
    },
    "analyses": [
        {
            "resource_id": "infores:aragorn",
            "edge_bindings": {
                "edge_2": [
                    {
                        "id": "6da6879ab34b",
                        "attributes": null
                    }
                ]
            },
            "score": null,
            "support_graphs": null,
            "scoring_method": null,
            "attributes": null
        }
    ]
}

The node bindings look fine, but there is only a single edge binding.

uhbrar commented 1 year ago

fixed via #409