Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare with Wikibase tabular data model #990

Open
nichtich opened this issue Oct 21, 2024 · 3 comments
Open

Compare with Wikibase tabular data model #990

nichtich opened this issue Oct 21, 2024 · 3 comments
Labels

Comments

@nichtich
Copy link
Contributor

nichtich commented Oct 21, 2024

The Wikibase software supports managing tabular data. Data is mainly collected on Wikimedia Commons, for instance tables with population data.

Wikibase Tabular Data was based on Tabular Data Resource so its likely compatible with some restrictions.

@nichtich
Copy link
Contributor Author

Field Data Package Wikibase
name required implicitly by Wikibase page name
description optional (plain string) optional (localized strings)
data required required (subfield fields, see below)
licenses - (there is licenses) required (plain string CC0-1.0)
schema optional required (array of arrays)
sources optional (array of objects) optional (Wiki markup)

Other optional data Package fields (title, bytes...) are not supported.

Field Table Schema Fields Wikibase
name required required
type required required (differences below)
title optional (plain string) optional (localized string)

Wikibase supports data types:

  • number subset of Table Schema (no NaN)
  • boolean same as Table Schema
  • string same as Table Schema but limited to 400 characters at most and not including \n or \t.
  • localized not supported by Table Schema

Special value null can always be used for missing numbers where Table Schema uses special strings.

@roll roll added the docs label Oct 21, 2024
@sapetti9
Copy link
Contributor

Shall we add a comparison with Wikibase Tabular Data to the Guides, similarly to what we did for CSVW: https://datapackage.org/guides/csvw-data-package/ ?

@nichtich
Copy link
Contributor Author

If you are ok with it, I can extend the text and add a PR to another file at https://github.com/frictionlessdata/datapackage/tree/main/content/docs/guides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants