w3c / csvw

Documents produced by the CSV on the Web Working Group
Other
161 stars 57 forks source link

Example 8 has tableSchema referring to CSV file #854

Open mgoodhand opened 6 years ago

mgoodhand commented 6 years ago

Example 8 in section 6 of "Model for Tabular Data and Metadata on the Web" shows a tableSchema pointing to a CSV file:

{
  "tableSchema": "government-spending.csv",
  "tables": [{
    "url": "http://example.org/east-sussex-2015-03.csv",
  }, {
    "url": "http://example.org/east-sussex-2015-02.csv"
  }, ...
  ]
}

https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#h-processing-tables

Is this intentional?

From my reading of "Metadata Vocabulary for Tabular Data" section 5.3.2, I'd expect either an embedded JSON object or a string referring to a JSON file:

An object property that provides a single schema description as described in section 5.5 Schemas, used as the default for all the tables in the group. This may be provided as an embedded object within the JSON metadata or as a URL reference to a separate JSON object that is a schema description.

https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/#optional-properties

gkellogg commented 6 years ago

I think this should be government-spending.json instead of government-spending.csv, but surrounding text does indicate getting metadata from CSV files as well. I believe this was @JeniT's example, and she may remember better. It certainly wouldn't be wrong to use the JSON reference, and would be less confusing.

iherman commented 6 years ago

Summary: a separate #856 PR has been issued, based on https://github.com/w3c/csvw/issues/854#issuecomment-323550776.

mgoodhand commented 6 years ago

Thanks for the prompt review and fix.

eddyracer commented 3 years ago

Hello Hello

eddyracer commented 3 years ago

Looking for Government t

eddyracer commented 3 years ago

Look for economic impact payment stimulus plus up payment deposits directly into my PayPal Account which is ready to accept deposits. As well as my Navy Federal Credit Union accounts.