Yurik added a comment.

  @brion, could you think of use cases for partial data reads? I think it will 
be mostly "draw data as a wiki list or a table with some magical 
highlighting/string concatenation/...", or "draw a graph with all the data".  
That's why at this point I simply provide Lua's 
`mw.data.getData("page_name.tabular")`, which returns the whole thing as JSON 
decoded into a Lua table structure. I see no reason not to provide 
`mw.data.query("SELECT field1 FROM page_name WHERE field2 > 10")`, but that's a 
whole other ball game :)
  
  Also, adding JSON storage should provide an easy solution for lookups, e.g. 
`mw.data.lookup("page_name.json", "top-level-field-value")`, which could be 
very efficient for large but shallow jsons.

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

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

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



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to