-
Notifications
You must be signed in to change notification settings - Fork 3
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
Shadowfax #279
Conversation
src/shadowfax.py
Outdated
else: | ||
unpinned_node_category = node.get("categories", ["biolink:NamedThing"])[0] | ||
if len(pinned_node_ids) != 2: | ||
logger.info(f"{guid}: Pathfinder queries requrie two pinned nodes.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
logger.info(f"{guid}: Pathfinder queries requrie two pinned nodes.") | ||
return message, 500 | ||
|
||
async with httpx.AsyncClient(timeout=900) as client: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeated below, should it be a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's probably a good idea, yeah.
src/shadowfax.py
Outdated
"predicate": "biolink:related_to", | ||
"sources": [ | ||
{ | ||
"resource_id": "infores:shadowfax", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been added to infores?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a debugging thing that slipped through the cracks, just to make it easier to differentiate which edges were actually coming from shadowfax. This has been changed to infores:aragorn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments - KL/AT probably the only blocker.
main_edge = uuid.uuid1().hex | ||
before_edge = uuid.uuid1().hex | ||
after_edge = uuid.uuid1().hex | ||
knowledge_graph["edges"][main_edge] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs knowledge level / agent type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
This adds pathfinder queries into ARAGORN's capabilities. There are still a few things we still want to handle, but this will work for now.
Before merging, we also need to look at how to get the redis working properly.