ranking-agent/strider

Missing Edge Bindings

cbizon opened this issue · 1 comments

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.

fixed via #409