W3C home > Mailing lists > Public > public-csv-wg@w3.org > June 2015

csvm @context clarification [was Re: .well-known]

From: David Booth <david@dbooth.org>
Date: Fri, 19 Jun 2015 18:44:59 -0400
Message-ID: <55849B6B.7090708@dbooth.org>
To: Gregg Kellogg <gregg@greggkellogg.net>
CC: public-csv-wg@w3.org
Regarding the @context requirement for a metadata document, the spec is 
not clear that if the value of @context is an array, then the string 
"http://www.w3.org/ns/csvw" must be the *first* element of that array. 
I suggest changing the wording in section 5.2 to something like:

"An array composed of a string (as the first element) and an object (as 
the second element), where the string is http://www.w3.org/ns/csvw"

David Booth

On 06/19/2015 04:19 PM, Gregg Kellogg wrote:
>> On Jun 19, 2015, at 12:17 PM, David Booth <david@dbooth.org>
>> wrote:
>> A technical question: does a CSVW metadata file supposed to contain
>> a particular string -- a 'magic number' perhaps -- that identifies
>> it as being a CSVW file?   If the metadata file is discovered first
>> -- such as through a web search -- then this would help prevent a
>> non-CSVW JSON file that just happens to look like a CSVW metadata
>> file from being erroneously interpreted as a CSVW metadata file.
> The IANA registration shows no Magic Number, but valid metadata
> documents MUST have the context "http://www.w3.org/ns/csvw, which
> will typically (although not necessarily) appear at the beginning of
> the document. In fact, this is what my JSON-LD processor looks to to
> not treat it as JSON-LD, but as Tabular Metadata.
> Gregg
>> I did not find the answer to this question when I looked in the
>> spec, but maybe I looked in the wrong place.
>> Thanks, David Booth
Received on Friday, 19 June 2015 22:45:28 UTC

This archive was generated by hypermail 2.3.1 : Friday, 19 June 2015 22:45:28 UTC