-
Notifications
You must be signed in to change notification settings - Fork 57
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
How simple is simple mapping? #74
Comments
Yeah... Whatever we decide to do, we should keep one more constraint in mind: we shouldn't mess with the RFC6570. What I mean is we should not incorporate, say, case normalization into the template. Not only would we create a mess specification-wise, but we would also make any implementation difficult because it could not rely on external RFC6570 implementations any more. In practice, what this could mean is that these are achieved via separate manipulation k/v pairs in the metadata, to be performed on the cell values before any template function. Something like
or get back to the regexp alternatives:
Sigh. Feature creep... Sigh :-) Ivan
Ivan Herman, W3C |
Proposed resolution: keep it simple and not allow any operations on CSV data aside from those provided through normalisation, parsing numeric & date/time formats & use of URI templates. |
+1 |
+1. This also includes existing cell value language that extract a semantic value based on format descriptions (e.g., boolean, date/time, numeric). |
+1 ... this pushes string manipulation, case normalisation etc. to the more complicated (templated) mapping which we've not really discussed yet. I think we said this would be a community group thing. |
Discussed at Feb F2F. All agreed. |
Mindful of our decision at the F2F / TPAC to 'punt' templated mapping out of scope, I am still trying to determine how simple the 'simple mapping' is ...
We agreed that the URI Templates were in scope - which allow a little cleverness in parsing the cell values to create, amongst other things, URLs for the row. But looking back on the minutes of our discussion of 17-Sep-2014 I see the following ...
"""
phila: following up jtandy, ... re use of string functions for URI generation
escaping?
I had experience of trying to do that, ... basic string function of removing white space, case normalization, ...
but that's as complex as it got
phila: was simple excel spreadsheet, using awk
so turning string name of a ministry into a URI
pretty basic stuff
case normalize, and get rid of whitespace
AndyS, you wanted to mention URI templates.
AndyS: similar to what Phil says
We use a lot of URI templates
multiple fields into one URI
sector, area, ID all go in.
certain amount of cleaning, string manipulation, whitespace, chars we don't want, ...
[...]
"""
From the overview of URI Templates (RFC 6570) that I produced for the F2F we can see that URI Templates support is mostly about 'expansion' of expressions; string manipulation support is limited to a substring value modifier (from position zero to an arbitrary position).
It seems from the discussion on the 17-Sep that we need a little more capability when it comes to string manipulation ...
I'm not advocating a position here (yet!) - just indicating that this requirement is outstanding. Certainly the FPWD of the mapping documents (anticipated for Dec-2014) will not include these functions.
The text was updated successfully, but these errors were encountered: