RobokopU24 / Feedback

Feedback on the ROBOKOP project
https://robokop.renci.org
0 stars 0 forks source link

Ensure generated queries don't contain `name` field #216

Open Woozl opened 6 months ago

Woozl commented 6 months ago

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.

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" ] } } } } } ```
EvanDietzMorris commented 1 month ago

To add some more detail to this, I think: