CSV Dialect Description Format

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Provide JSON example)
(Add info about Data Package)
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
}}
 
}}
 
'''CSV Dialect Dscription Format''' is a [[JSON]]-based format for describing the particular rules for a variety of delimited files, such as [[CSV]] or [[tab delimited]]. It does not describe the format of the data fields within a record of the file; this may be done with [[JSON Table Schema]] or [[CSV Schema]].
 
'''CSV Dialect Dscription Format''' is a [[JSON]]-based format for describing the particular rules for a variety of delimited files, such as [[CSV]] or [[tab delimited]]. It does not describe the format of the data fields within a record of the file; this may be done with [[JSON Table Schema]] or [[CSV Schema]].
 +
 +
The original source of the specification, dataprotocols.org is now now Data Package at [https://datapackage.org/ datapackage.org] from Frictionless Data. Their specifications are also available on their [https://github.com/frictionlessdata/datapackage GitHub].
  
 
== Examples ==
 
== Examples ==
 +
 +
=== 1.0 ===
  
 
<pre>
 
<pre>
Line 17: Line 21:
 
     "skipinitialspace": false
 
     "skipinitialspace": false
 
   }
 
   }
 +
}
 +
</pre>
 +
 +
=== 1.2 ===
 +
 +
<pre>
 +
{
 +
  "csvddfVersion": 1.2,
 +
  "delimiter": ",",
 +
  "doubleQuote": true,
 +
  "lineTerminator": "\r\n",
 +
  "quoteChar": "\"",
 +
  "skipInitialSpace": true,
 +
  "header": true
 
}
 
}
 
</pre>
 
</pre>
  
 
== Links ==
 
== Links ==
 +
 +
* [https://github.com/frictionlessdata/datapackage Data Package GitHub repo].
 
* [http://dataprotocols.org/csv-dialect/ Official description/spec]
 
* [http://dataprotocols.org/csv-dialect/ Official description/spec]
 
* [https://web.archive.org/web/20131017022844/http://dataprotocols.org/csv-dialect/ Official description/spec via archive.org (v1.0)]
 
* [https://web.archive.org/web/20131017022844/http://dataprotocols.org/csv-dialect/ Official description/spec via archive.org (v1.0)]
  
 
[[Category:JSON based file formats]]
 
[[Category:JSON based file formats]]

Latest revision as of 17:02, 18 April 2025

File Format
Name CSV Dialect Description Format
Ontology

CSV Dialect Dscription Format is a JSON-based format for describing the particular rules for a variety of delimited files, such as CSV or tab delimited. It does not describe the format of the data fields within a record of the file; this may be done with JSON Table Schema or CSV Schema.

The original source of the specification, dataprotocols.org is now now Data Package at datapackage.org from Frictionless Data. Their specifications are also available on their GitHub.

Contents

 [hide

[edit] Examples

[edit] 1.0

{
  "csvddf_version": 1.0,
  "dialect": {
    "delimiter": ",",
    "doublequote": false,
    "lineterminator": "\r\n",
    "quotechar": "\"",
    "skipinitialspace": false
  }
}

[edit] 1.2

{
  "csvddfVersion": 1.2,
  "delimiter": ",",
  "doubleQuote": true,
  "lineTerminator": "\r\n",
  "quoteChar": "\"",
  "skipInitialSpace": true,
  "header": true
}

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox