CSV+ test

The small test/demo shows two different ways of generating both JSON and Turtle. The first is based on the document that may be the bases for the W3C Recommendation: “Generating RDF from Tabular Data on the Web” and “Generating JSON from Tabular Data on the Web”. The second is based on a small, Mustache-based template language, see the Read.me file on github for further details.

The underlying code is a jQuery extension, see a separate description file for the details (if interested). The implementation is not yet complete (e.g., datatypes are not yet implemented for the direct mapping), and certainly not well tested.

The CSV file is identical for both, though under different names to control the metadata files:

There is a commonmetadata.csvm file for both versions (following the tabular data specification), which provides a common structure. The Mustache based version also includes a separate metadata file that refers to the templates.

“Direct Mapping”

CSV data in JSON

Same data in Turtle

“Mustache based”

Templates

CSV data in JSON

Same data in Turtle