specs icon indicating copy to clipboard operation
specs copied to clipboard

Compare with Wikibase tabular data model

Open nichtich opened this issue 1 year ago • 1 comments

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 avatar Oct 21 '24 05:10 nichtich

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.

nichtich avatar Oct 21 '24 06:10 nichtich

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/ ?

sapetti9 avatar Nov 20 '24 16:11 sapetti9

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

nichtich avatar Nov 22 '24 07:11 nichtich

That would be great @nichtich! What do you think @peterdesmet and @roll?

sapetti9 avatar Nov 28 '24 12:11 sapetti9

Sounds good!

peterdesmet avatar Nov 28 '24 14:11 peterdesmet