-
Notifications
You must be signed in to change notification settings - Fork 4
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
cube-pipeline ignores + character when generating code list URIs #114
Comments
I think this is potentially related (though not the same as) your whitespace issues too:
https://stackoverflow.com/questions/2678551/when-to-encode-space-to-plus-or-20 Not sure what to do about it; it will depend and likely be subtle. I think the best bet is to possibly change our slugify implementation to convert |
In csv2rdf.uri-template the following happens:
|
@jennet ok as I think we suspected this appears to be caused by table2qb slugize. I don't know exactly what code path is being used in your case, (as I don't have your pipeline/config etc available) but I suspect you're somehow calling slugize which I think will end up using this implementation: Essentially so:
Strictly speaking I don't know that this is the cause of your problem; but if this were being used it would cause your issue; so I think it's highly likely this is the root cause. Potential fixes:
|
@RickMoynihan thanks for looking into this. I think option 1 is the safest for now until we have got a more thorough development roadmap in place |
Agreed. 2 is probably pretty easy to add, but might as well work around with 1 at this stage. |
I feel like we did this deliberately for sns-graft, but I forget why. Given that a |
Not sure if the problem will be the value template tags or something else, but if the code list has a concept with URI e.g.
http://example.org/def/concept/age/100+
and the input CSV has a value "100+" (which is correctly set up in the columns.csv to convert tohttp://example.org/def/concept/age/{age}
it generateshttp://example.org/def/concept/age/100
, losing the+
which then results in a broken link.The text was updated successfully, but these errors were encountered: