The current UI generates messy TRAPI queries with extra fields that aren't necessary (and perhaps misleading). The name field should never appear in the query, nor should categories if ids exists. In other words, if ids is present, it should be the only key in a node object.
The current UI generates messy TRAPI queries with extra fields that aren't necessary (and perhaps misleading). The
name
field should never appear in the query, nor shouldcategories
ifids
exists. In other words, ifids
is present, it should be the only key in a node object.Example query
``` { "message": { "query_graph": { "nodes": { "n0": { "categories": [ "biolink:Gene" ], "name": "Gene" }, "n1": { "name": "Alzheimer disease", "categories": [ "biolink:Disease", "biolink:DiseaseOrPhenotypicFeature", "biolink:BiologicalEntity", "biolink:NamedThing", "biolink:ThingWithTaxon" ], "ids": [ "MONDO:0004975" ] } }, "edges": { "e0": { "subject": "n0", "object": "n1", "predicates": [ "biolink:related_to" ] } } } } } ```