-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pathfinder: Rework templating system #832
Comments
Work on this will first require some example tables for testing, assigning @colleenXu to build these:
|
Example tables are now in Note: I made these tables thinking of how to construct the existing Pathfinder MVP templates using templates 1 + 2, and not really 3. Some things to account for @rjawesome @tokebe:
|
|
After today's discussion with Jackson, we decided to drop "potential qualifier support" for now (it would maybe involve separate QGraph for a predicate+qualifier-set combo). So I pushed a commit to adjust the |
Done |
Updates(1) Lookup tables were adjusted right before Sept Translator Relay biothings/bte_trapi_query_graph_handler#215.
(2) Hotfixes (direct commits) made during Sept Translator Relay to fix TRAPI validation errors for Pathfinder responses |
Current discussion topics
|
Related changes deployed to Prod as of 11/13 |
Parent issue: #794
In order to better cover the space of possible pathfinder queries (in terms of pinned-node pairings), we need to revisit how Pathfinder acquires templates. Instead of manually-built TRAPI templates, we should instead generate templates on-the-fly based on the node categories presented in the pathfinder query.
Essentially, within the existing framework of the current prototype, we replace the "select templates" step as follows:
Assume two lookup tables:
These tables would be defined as yaml files (
categoryTable.yaml
andpredicateTable.yaml
) in the query_graph_handler data folder, with the following structure:These tables would then be used to generate templates as specified in these slides
At which point behavior returns to the current implementation of the prototype, with one exception:
When generating final results from the existing template results (see parent issue, current prototype), skip constructing a result for any intermediate node which is not equal to or a descendant of the unpinned node category (as a computational shortcut, if the unpinned node category is
biolink:NamedThing
, then no need to check, just proceed with making the result).The text was updated successfully, but these errors were encountered: