-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Filter path by empty label field (FilterContext) #977
Comments
Hmm, this one is tricky, since we never defined what will happen with empty values. Definitely, the returns don't make any sense from user's point of view. I think I think we should enforce the following behavior:
The problem is that we need to check the code to make sure it doesn't expect something like this to work: var label quad.Value
if something {
label = quad.IRI("x")
}
// expects that if label is nil, the filter will be skipped
p = p.LabelContext(label) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example program:
None of these successfully limit to just the quad with the empty Label:
How can I do that?
Additionally, I don't understand why empty string "" and nil both return the values that have populated Label fields but not the one that has an empty Label field. Shouldn't it be the other way around?
The text was updated successfully, but these errors were encountered: