Skip to content

CSVW-EO Examples

This section provides example metadata structures.

Minimal Table

{
  "@type": "csvw:Table",
  "name": "penguins"
}

Column Example

{
  "@type": "csvw:Column",
  "name": "species",
  "datatype": "string",
  "publicKeys": [
    "Adelie",
    "Gentoo",
    "Chinstrap"
  ]
}

Partition Example

{
  "@type": "csvw-eo:Partition",
  "csvw-eo:predicate": {
    "month": "January"
  },
  "maxContributions": 31
}

Column Group Example

{
  "@type": "csvw-eo:ColumnGroup",
  "csvw-eo:columns": [
    "year",
    "month"
  ]
}

Dependency Example

{
  "dependsOn": "age",
  "dependencyType": "mapping",
  "valueMap": {
    "0-17": false,
    "18+": true
  }
}

Continuous Partition Example

{
  "partitions": [
    {
      "minimum": 0,
      "maximum": 18
    },
    {
      "minimum": 18,
      "maximum": 65
    }
  ]
}

Complete Example

See:

  • Penguin metadata examples here
  • Example notebook here