-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bug: extractFromTemplate and value.extractCategories GREL functions produce empty columns #61
Comments
This is because your expression returns an array, not a single value, and arrays are silently discarded when creating columns out of expressions: OpenRefine/OpenRefine#1088 |
(see also OpenRefine/OpenRefine#4823, which would be one of my preferred ways to improve this) Concretely, what you can do on your side is use |
Or we could decide that this You could do the same |
I'm finally getting around to documenting this. I will go for the pragmatic approach, providing end users with easy-to-reuse recipes, as I'm noticing that onboarding / learning the whole OpenRefine workflow is already pretty challenging for average Wikimedians. As an exercise, I tried to come up a workaround myself which will be helpful for others too, but I'm not sure yet if I found the smartest solution. Is something like |
I would recommend more something like |
I have been trying the
extractFromTemplate
andvalue.extractCategories
GREL functions in various projects. Both work well in the GREL preview dialog window:But then after clicking OK, in the project itself, both produce an empty column. I haven't been able to get it to work in any project for now, but just for testing purposes, here's a project in which it went wrong:
Barbalissos.openrefine.tar.gz
The text was updated successfully, but these errors were encountered: