-
Notifications
You must be signed in to change notification settings - Fork 4
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
Change location of where ListLink wrapping occurs. #165
base: master
Are you sure you want to change the base?
Conversation
As discussed in issue MOZI-AI#164. Untested -- I have not tried running this code; I think it's correct but I might have made a mistake, or missed a spot where a change was needed.
@linas I think its better to get rid of them at all. As the GroundedSchemaNodes are removed, there is no need for extra ListLink to wrap the output. I will be working on this |
I don't understand at all. The ListLink here has nothing at all to do with GroundedSchemaNodes.... they are completely unrelated. The GroundedSchema never needed these... The ListLink here is grouping together a bunch of clauses, for some other unknown reason. |
@linas yes, the GroundedSchemaNodes have nothing to do with this but moving the ListLink up will create a much bigger number of outgoing nodes for the ListLink which the Pattern miner code is complains. |
This does not change the number of nodes/links created, at all: exactly the same structures are created, either way. All that this does is refactor the code-base. It does not change the output of the codebase. |
@Habush I will merge this PR as it fixes the issue with having an empty ListLink you were getting from Biogrid. can you check? |
This pull req does not change the output: it still produces empty list links in all the same places as before. |
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.
I thought you have replaced the ListLinks with scheme list here?
Yes, exactly, it replaces 9 different locations by only two. That should make it easier to remove those two, if/when you are ready to do that, rather than struggling with all 9. |
To be clear on why we were using ListLink at first, the and when there is a result, since we were sending a bunch of clauses (more than one EvaluationLinks) as a result, we need to wrap all in one ListLink and return. But now, we don't have a GroundedSchemaNode ... but when you refactor the code, since you dont want to modify the output, you keep the ListLink but we dont need them anymore as it was for the above reason we used them HERE in the first place. |
It is impossible for the pattern matcher to ever see
|
Here's a better example:
|
Oh... I understand now ... |
As discussed in issue #164.
Untested -- I have not tried running this code; I think it's correct
but I might have made a mistake, or missed a spot where a change was
needed.