-
Notifications
You must be signed in to change notification settings - Fork 33
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
Match by attribute namespace #107
Comments
An alternative may be to establish a hierarchy/ancestry for namespaced keywords. Example:
Advantages:
Disadvantages: With either approach we would match on something like |
When we have attributes that share the same namespace, e.g.:
it would be handy to match on "explanation". We do not currently allow this. For one, ":a" must be a keyword. It might get too crazy even for us if we endeavored to support a function in this slot, though it would allow dynamic type matching. That may not be possible without rewriting the rule using a macro, as I'm not sure Clara supports this directly.
We could match on attribute namespace within a rule with the syntax
explanation/*
by adding the necessary logic to our default fact-type function.The text was updated successfully, but these errors were encountered: