Skip to content

Instantly share code, notes, and snippets.

@hubgit
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hubgit/8853610 to your computer and use it in GitHub Desktop.
Save hubgit/8853610 to your computer and use it in GitHub Desktop.
Tabular Data Package suggestions

TODO

  • specify fixed rows and columns (allow multiple, rows are headings, columns are primary keys)
  • allow multiple values in a cell, or point to a separate CSV file for repeated values in a column?
  • annotations as JSON-LD
A1 Annotation about the first cell
EE59 Annotation for a much later cell
{
"dialect": {
"delimiter": ",",
"doubleQuote": false,
"lineTerminator": "\n",
"quoteChar": "\"",
"skipInitialSpace": false
},
"fields": {
"id": "string",
"title": "string",
"volume": "integer",
"datePublished": {
"type": "date",
"format": "YYYY-mm-dd",
"title": "publication date",
"description": "the date the item was published"
}
},
"primaryKey": "id",
}
{
"dialect": {
"delimiter": ",",
"enclosure": false,
"enclosure": "\"",
"terminator": "\n",
"skipInitialSpace": false
},
"@context": {
"id": {
"@type": "@id"
},
"title": {
"@id": "http://schema.org/name",
"@type": "string"
},
"volume": {
"@id": "http://purl.org/ontology/bibo/volume",
"@type": "integer"
},
"datePublished": {
"@id": "http://schema.org/datePublished",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment