Re: Whitespace in filenames

Jen, sorry for the delay in replying.

> On May 24, 2017, at 4:45 AM, Jen Williams <jen@networkedplanet.com> wrote:
> 
> What's the standard for dealing with whitespace in filenames, especially when generating URI prefixes for where the file will be hosted.
> 
> Does someone have a link to where the specs describe what to do? Leave the whitespace in? URI encode it?

Whitespace, as such, is illegal in URIs and IRIs as described by RFCs 3986 [1] and 3987 [2]. Typically whitespace becomes URI encoded (e.g., %20 for space) via some transformation process.

This can come into play in a number of different places:

* URIs (link properties) used within metadata documents must be valid IRIs. This comes from the fact that CSVW Metadata documents are valid JSON-LD documents, and values interpreted as IRIs must resolve to an absolute IRI, which cannot contain whitespace.

* Table cell values which are interpreted as URIs do so through the use of a URI Template [3]. The URI Template mechanism takes care of encoding substitution values, unless particular flags are used in the template. This could result in illegal IRIs, in which case the resulting output would simply be invalid.

Note that CSVW does not provide a mechanism for defining URI prefixes, as such, other than through the use of Link Properties [4] and URI Template Properties [5].

Gregg

[1] https://tools.ietf.org/html/rfc3986 <https://tools.ietf.org/html/rfc3986>
[2] https://tools.ietf.org/html/rfc3987 <https://tools.ietf.org/html/rfc3987>
[3] https://tools.ietf.org/html/rfc6570 <https://tools.ietf.org/html/rfc6570>
[4] https://www.w3.org/TR/tabular-metadata/#link-properties <https://www.w3.org/TR/tabular-metadata/#link-properties>
[5] https://www.w3.org/TR/tabular-metadata/#uri-template-properties <https://www.w3.org/TR/tabular-metadata/#uri-template-properties>


> Cheers
> 
> -- 
> 
> Jen Williams
> LinkedIn <https://www.linkedin.com/in/jrpwilliams>
> Skype: jen_networkedplanet
> 
> Networked Planet Ltd
> Website <http://www.networkedplanet.com/> | Twitter <http://www.twitter.com/nwplanet>

Received on Thursday, 1 June 2017 19:49:34 UTC