-
Notifications
You must be signed in to change notification settings - Fork 234
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
Nested Variables #1456
Comments
Yes. See https://wiki.opencog.org/w/SignatureLink I think they are partly implemented, and work in many cases, but that implementation is kind-of incomplete -- not everything uses them or understands them correctly |
Hmm. Except that the SignatureLink is not quite what your original question is about. Its similar, but not the same. Can you provide a more detailed example of what you are trying to do? Maybe we have existing infrastructure to solve this and maybe we don't.... |
I also once started work on a FuzzyLink that does approximate matching, but it's hard to get right. It's hard to understand what is meant by "fuzzy", whether its the right kind of "fuzzy", and what problem it was that the user wanted. |
Note also, your question hints that its about polymorphism, and we have TypeChoice for that. |
This works:
|
This also works:
|
@linas , @Yidnekachew wants to be able to rewrite expressions with some link like
But I don't think it's possible, is it? Of course instead he can write rules specifically for each link type, |
Hmm, maybe meta-rules would be adequate here. Since algebraic properties are usually static, it makes even sense from an efficiency standpoint. |
The naive
which, when evaluated, would return
to deal with the result of searches. However, I think we can do the search ... hang on. next post. |
The below is super-duper klunky, but it does work.
|
Unrelated to this, but after reading lots of ugly R2L code, it became clear that we also need
which, when executed, would create There's also a need to grab values and convert them into atoms, and vice-versa, grab atoms and convert them into values. This opens up a box of all new tricks and techniques, and it should be opened somewhat carefully. Along the way, I want to merge Also, its time we stopped using |
Is there anyway I can implement nested variables of the type
(Variable "$n" (Variable "$a"))
to match(Not (Concept "A"))
?The text was updated successfully, but these errors were encountered: