Yurik added a comment.

  @RobLa-WMF, thanks for putting all the links together. I have seen some of 
them, and will email the authors.
  
  Row objects vs arrays
  ---------------------
  
  I feel that other formats are optimized towards parsing and processing, 
rather than storage and ease of use. Repeating column names for each row seems 
overly verbose, and, in case of raw-text editing, makes it less readable and 
harder not to make mistakes. On the other hand, their system benefits sparse 
tables - missing values may simply be omitted, whereas in my proposal one would 
have to use "null". Also, for some use cases like graphs, parsing would require 
an extra step - converting arrays into objects on the client (could be done 
with auto-generated code for higher efficiency).
  
    "rows": [
      {"column1":"foo", "column2":42, "optColumn3": true},   // rows as objects
      {"column1":"bar", "column2":13},
    ]
  
    "columns": ["column1", "column2", "optColumn3"],
    "rows": [
      ["foo", 42, true],   // rows as arrays
      ["bar", 13, null]
    ]
  
  Target audience
  ---------------
  
  Other formats, especially W3C, seem to only target 
machine-generation/consumption, and thus become extremely verbose and complex.  
They only need very few developers to fully understand and implement them. 
While I hope that we will quickly introduce good data editing tools, I think 
our format needs to be widely understood on its own by the same community that 
uses wiki markup, so that it can be easily consumed by developers of Lua 
modules and Graphs.
  
  Data types, constrains, ...
  ---------------------------
  
  I do not have very strong feelings either way about how to declare data 
types.  I foresee the basic data types like `number`,`string`,`bool`, plus some 
more exotic ones like multi-lingual string (one string per language). Hard to 
define types like Wikidata ID, datetime, and URL could be stored as a string 
until we can reuse Wikidata's type system. Another needed feature is to reuse 
metadata from another page, thus allowing multiple pages to have the same 
structure.

TASK DETAIL
  https://phabricator.wikimedia.org/T134426

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Yurik
Cc: RobLa-WMF, Danny_B, DannyH, StudiesWorld, Steinsplitter, Aklapper, 
Lydia_Pintscher, ekkis, Matanya, MarkTraceur, JEumerus, Thryduulf, Milimetric, 
MZMcBride, Bawolff, -jem-, gerritbot, Pokefan95, TerraCodes, intracer, 
ThurnerRupert, brion, Jdforrester-WMF, Eloy, TheDJ, Yurik, Zppix, 
Riley_Huntley, D3r1ck01, Izno, Luke081515, JAllemandou, Wikidata-bugs, aude, 
El_Grafo, Ricordisamoa, Shizhao, fbstj, Fabrice_Florin, Mbch331, Jay8g, 
Krenair, jeremyb



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to