TranslatorSRI / Plater

Plater automatically creates a TRAPI interface for a biolink-compliant neo4j graph.
1 stars 7 forks source link

subpredicate query failing #68

Closed cbizon closed 2 years ago

cbizon commented 2 years ago

Query:

q = {"message":{"query_graph":{
  "edges": {
    "e00": {
      "object": "n01",
      "predicates": [
        "biolink:located_in"
      ],
      "subject": "n00"
    }
  },
  "nodes": {
    "n00": {
      "ids": [
        "NCBIGene:5354"
      ]
    },
    "n01": {
      "categories": [
        "biolink:AnatomicalEntity"
      ]
    }
  }
}}}

(NCBIGene:5354)-[located_in]->(AnatomicalEntity)

Running against automat/hetio returns 0 results.

But, changing the query to

(NCBIGene:5354)-[expressed_in]->(AnatomicalEntity) returns 56 results.

However, expressed_in is_a located_in, so the first query should also return those 56 results.

cbizon commented 2 years ago

Resolved in deployment