-
Notifications
You must be signed in to change notification settings - Fork 20
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
Throw an error when filter_kg removes all nodes of a particular qnode_id #845
Comments
interesting case. indeed, the second the slightly difficult part about having I can think of two options here:
|
I think I would vote for option 2, as that seems more precise. and I can't think of a situation when we would want execution to keep going if |
I agree. I think it would be more reasonable to let |
I agree. If there are no nodes for qnode_id, resultify() will claim 0 results. |
cool! I will assign this to @finnagin then. |
But it also seems to me that we don't want to let expand do an expand step where neither end has a curie? I mean it's okay if the query_graph has no curie specified, but if other expansion doesn't narrow it down, then it probably shouldn't be permitted? e.g., a query graph of: but a query_graph of: Side wonderment: |
yeah - I can add some code to prohibit expand from expanding an edge where neither end has a curie (whether input or derived). I can create a separate issue for that. (I can't really think of someone wanting to do such a query... maybe there's a tiny chance someone might want to once we have the ability to expand on only certain provided by's... e.g., 'give me all the re: your side wonderment: yes, expand would always do e00 first, because it knows to start with an edge that has a curie specified and proceed onwards from there. |
If ARAX_resultify.py should return zero results for the case where we have a non-empty KG but for a specific query node there are no corresponding KG nodes (and that would make sense given issue #692), I think we should (1) open a new issue requesting that behavior of Resultify and (2) write a unit test specifically to test that behavior. |
I think the group agreed that that is the desired behavior for I can create an issue to request that from |
finn reports that he has implemented the necessary error-reporting code in filter, in his local code enlistment; just waiting on having the cycles to push it |
@amykglen, I found a DSL that makes me feel there might be a potential bug in add_qedge(), expand() or resultify().
Here is the DSL command:
The problem here is that in
filter_kg
step, it filtered out all then01
nodes based on the cutoff0.0001
, then theexpand
should not be able to expand the edges betweenn01
andn02
because there is non01
for expanding. I found that no error was reported but it just got stuck in somewhere. I think in this case it should throw out an error.The text was updated successfully, but these errors were encountered: