question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table Schema: contextual metadata about the schema

See original GitHub issue

I would find very usefull to build schema documentation based on Table Schema. That way documentation and data would stay closed together, because the schema can also be used for validation with CSV Lint.

To do that, we need contextual information about the schema: its title, author, version, and so on… Here is an example to show what I would find useful:

{
    "schema": {
      "title": "Spécification de la liste annuelle des prénoms des nouveaux-nés",
      "author": "Charles Nepote <charles.nepote@fing.org>",
      "date": "mars 2017",
      "version": "0.1beta",
      "description": "La liste annuelle des prénoms des nouveaux-nés est un jeu de données simple et très apprécié du public. Il consiste en une liste de prénoms avec l'occurence de chacun pour une année donnée.",
      "fields": [
        {
          "name": "CODE_INSEE",
          "title": "Code INSEE",
          "description": "Code INSEE de la commune où les prénoms sont enregistrés. Issu du Code officiel géographique, est composé de 5 caractères alphanumériques (les deux premiers correspondent au département et peuvent donc contenir les lettres A et B, utilisées pour la Corse).",
          "type": "string",
          "examples": "06088, 1B002 (pour une commune corse)",
          "constraints": {
            "required": true,
            "pattern": "^([013-9]\\d|2[AB1-9])\\d{3}$"
          }
       ]
    }
}

I made a very quick and (very) dirty tool to show that. Unfortunatly, it’s only in french for the moment, I’ll translate it if you’re interested in: http://dataliteracyconference.net/specificator/demo3.html (link will change).

Adding some contextual informations won’t break anything, I think. And open data movement needs more professionnal yet simple tools. Thanks for your efforts!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
cbenzcommented, Oct 24, 2018

Just to let you know, we generated a Gitbook documentation of some schemas we are using, based on the enhancements proposed by @CharlesNepote, sightly adapted.

For example:

I intend to propose a “pattern” as suggested above, in the next weeks, to reopen the discussion about adding metadata to table schemas, on a concrete base.

2reactions
johanrichercommented, May 8, 2019

@rufuspollock @pwalsh @frictionlessdata Our team at @jailbreak-paris has increasingly used Table Schema for the past year and a half and we’re seeing more and more adoption around us (including at @Etalab). We think it has a bright future. So we’ve finally rolled up our sleeves and (finally!) got to work on this. Our draft propostion and (most importantly) questions are here: https://github.com/frictionlessdata/specs/pull/627

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appendix A: Meta-Data Schema - Spring
The Spring Batch Metadata tables closely match the domain objects that represent them in Java. For example, JobInstance , JobExecution , JobParameters ,...
Read more >
Describing Databases with MetaData
MetaData is a container object that keeps together many different features of a database (or multiple databases) being described.
Read more >
Metadata Schema - an overview | ScienceDirect Topics
Metadata design is the process of determining how the metadata schemas will be implemented, such as which elements are required, when and how...
Read more >
Selecting tables and defining table schemas - 8.0
To retrieve a schema based on one of the loaded table schemas, select the DB table schema name in the drop-down list and...
Read more >
Metadata Vocabulary for Tabular Data - W3C
A schema is a definition of a tabular format that may be common to multiple tables. For example, multiple tables from different sources...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found