The exercise for the if statement wiki page doesn't give the proper results. I included the prefix: "sdmx-code": "http://purl.org/linked-data/sdmx/2009/code#" in the cow_person_example.csv JSON schema, and replaced the "male" column with the following code:
{
"name": "male",
"datatype": "string",
"@id": "https://iisg.amsterdam/cow_person_example.csv/column/male",
"dc:description": "The state of being male or female",
"titles": ["male"],
"propertyUrl": "sdmx-code:sex",
"valueUrl": "sdmx-code:{% if male == '0' %}sex-F{% else %}sex-M{% endif %}"
},
The valueUrl does not seem to accept the if statement, while a "csvw:value" with the same code does run without issues.
The exercise for the if statement wiki page doesn't give the proper results. I included the prefix:
"sdmx-code": "http://purl.org/linked-data/sdmx/2009/code#"in the cow_person_example.csv JSON schema, and replaced the "male" column with the following code:The valueUrl does not seem to accept the if statement, while a "csvw:value" with the same code does run without issues.