Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make use of Frictionless Table Schema to store metadata #66

@peterdesmet

Description

@peterdesmet

Suggestion: rather than using a custom format to store metadata about fields and their data types, it might be worth looking into the Frictionless Table Schema. It is a specification to store information about tabular data as a json (or potentially yaml) file. The elements that are similar could be borrowed and it can be extended with the properties that are specifically needed for git2rdata.

Here's an snippet from an example (taken from https://github.com/inbo/datapackage/blob/b049504a1396bfddf7af7e595f5b856da02375d0/inst/extdata/datapackage.json#L133-L154)

          {
            "name": "count",
            "type": "integer",
            "constraints": {
              "required": false,
              "minimum": 1
            }
          },
          {
            "name": "age",
            "type": "string",
            "constraints": {
              "required": false,
              "enum": [
                "adult",
                "subadult",
                "juvenile",
                "offspring",
                "undefined"
              ]
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions