-
Notifications
You must be signed in to change notification settings - Fork 9
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
Trouble getting Jinja "if" statements to work #148
Comments
Hi @dirkdevriendt , yes could you maybe post a few lines of the data and the relevant block of the metadata file? |
Thanks @rijpma ! A simple example would be the following csv:
with the following metadata:
Which in cattle.datalegend.net yields, as expected:
While the
|
something like
"valueUrl": "{{gender|lower}}"
workswhile
"valueUrl": "pato:{% if gender == 'F' %}0000383{% else %}0000384{% endif %}"
does notReference from the docs:
https://github.com/CLARIAH/COW/wiki/12.-example:-if-statement-converting-sex-variable-and-values-appropriately
When using the online cattle.datalegend.net tool, I get the expected result, but using the command line with the exact same json metadata files, the algorithm seems to skip the triples or includes incomplete URIs
I don't think there is a way to increase the logging level and get a better idea of where things go awry?
I can post a complete example if this is not an obvious error/misunderstanding on my end and a test case would help.
The text was updated successfully, but these errors were encountered: