- From: Tandy, Jeremy <jeremy.tandy@metoffice.gov.uk>
- Date: Wed, 11 Jun 2014 10:22:04 +0000
- To: "public-csv-wg@w3.org" <public-csv-wg@w3.org>
Hi -
The CSV data model defines a number of flags that need to be set when parsing tabular data model (see [Parsing Tabular Data][1]. The list is:
"""
encoding
The character encoding for the file, one of the encodings listed in [encoding]. The default is utf-8.
row terminator
The character that is used at the end of a row. The default is CRLF.
enclosure character
The character that is used around escaped cells. The default is ".
escape character
The character that is used to escape the enclosure character within escaped cells. The default is ".
skip rows
The number of rows to skip at the beginning of the file, before a header row or tabular data. The default is 0.
comment prefix
A character that, when it appears at the beginning of a skipped row, indicates a comment that should be associated as a comment annotation to the table. The default is #.
header row count
The number of header rows (following the skipped rows) in the file. The default is 1.
delimiter
The separator between cells. The default is ,.
skip columns
The number of columns to skip at the beginning of each row, before any header columns. The default is 0.
header column count
The number of header columns (following the skipped columns) in each row. The default is 0.
skip blank rows
Indicates whether to ignore wholly empty rows (ie rows in which all the cells are empty). The default is false.
trim
Indicates whether to trim whitespace around cells.
"""
I would expect these to be specified as properties in the [metadata vocabulary][2]
Am I missing something?
Jeremy
[1]: http://w3c.github.io/csvw/syntax/#parsing
[2]: http://w3c.github.io/csvw/metadata/index.html
Received on Wednesday, 11 June 2014 10:22:35 UTC