ranking-agent / aragorn-ranker

Exposes TRAPI functions to add literature co-occurrence edges, convert publications to edge weights, and provide scores for answers.
MIT License
0 stars 1 forks source link

Scoring is removing a bunch of node and edge bindings from results #127

Open maximusunc opened 9 months ago

maximusunc commented 9 months ago

Given the following query, lookup returns a valid set of results, but then scoring takes out a bunch of node and edge bindings:

{
  "message": {
    "query_graph": {
      "nodes": {
        "n0": {
          "ids": [
            "MONDO:0009265"
          ],
          "is_set": false,
          "constraints": []
        },
        "n3": {
          "categories": [
            "biolink:Drug"
          ],
          "is_set": false,
          "constraints": []
        },
        "n1": {
          "categories": [
            "biolink:SmallMolecule"
          ],
          "is_set": false,
          "constraints": []
        },
        "n2": {
          "categories": [
            "biolink:Gene",
            "biolink:Protein"
          ],
          "is_set": false,
          "constraints": []
        }
      },
      "edges": {
        "e2": {
          "subject": "n3",
          "predicates": [
            "biolink:affects_activity_of",
            "biolink:interacts_with"
          ],
          "object": "n2",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e3": {
          "subject": "n2",
          "predicates": [
            "biolink:contributes_to",
            "biolink:associated_with",
            "biolink:gene_associated_with_condition"
          ],
          "object": "n0",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e1": {
          "subject": "n1",
          "predicates": [
            "biolink:affects_activity_of",
            "biolink:interacts_with"
          ],
          "object": "n2",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e0": {
          "subject": "n0",
          "predicates": [
            "biolink:correlated_with",
            "biolink:associated_with_likelihood_of"
          ],
          "object": "n1",
          "attribute_constraints": [],
          "qualifier_constraints": []
        }
      }
    }
  },
  "workflow": [
    {
      "id": "lookup",
      "runner_parameters": {
        "allowlist": [
          "infores:aragorn"
        ]
      }
    },
    {
      "id": "score",
      "runner_parameters": {}
    }
  ],
  "log_level": "DEBUG"
}