csvm
Demo · format-valid IANA · permanent
/.well-known/csvm
Standard: W3C CSV on the Web
Site-wide CSV metadata: describe the columns and types of the CSV files an origin serves.
What it is
CSV on the Web lets publishers attach metadata (column types, units, linked data) to CSV files. A site can publish a site-wide metadata document at /.well-known/csvm describing the CSVs it serves, so consumers don't guess at headers.
The threat it addresses
Raw CSV is ambiguous — is '03/04/2020' March or April? CSVW metadata removes that ambiguity by describing tables and columns in a standard way.
How it works
- A site serves /.well-known/csvm with metadata templates for its CSV files.
- Consumers (or the CSVW annotation process) match table files to their metadata and interpret columns correctly.
Try it
Live demo
Demo — format-valid CSV on the Web metadata
HTTP 200
Open GET /.well-known/csvm ↗
{
"@context": [
"http://www.w3.org/ns/csvw",
{
"@language": "en"
}
],
"@id": "https://well-known.page/demo/csvw/well-known-metadata.json",
"url": "https://well-known.page/demo/csvw/well-known.csv",
"tableSchema": {
"columns": [
{
"name": "spec",
"titles": "Well-known URI",
"datatype": "string"
},
{
"name": "status",
"titles": "Status",
"datatype": "string"
}
]
},
"_demo_note": "Illustrative CSV on the Web (W3C) metadata description. No CSV file is actually served at the demo URL."
}