Lucas_Werkmeister_WMDE added a comment.

  This might be a stupid question, but… why are we getting those counts from 
the page props in the first place? Special:EntityData already has to load the 
full entity data, so I don’t think we’re saving much work by getting those 
numbers from the `page_props` table. And using `page_props` not only means that 
the RDF for the latest revision might have statement counters that are slightly 
out of date – it also means that the RDF for earlier revisions contains 
counters that are just totally unrelated to that revision. For instance:
  
    $ curl -s 
https://www.wikidata.org/wiki/Special:EntityData/Q42.ttl?revision=112 | grep 
-A2 wikibase:statements
            wikibase:statements "248"^^xsd:integer ;
            wikibase:identifiers "183"^^xsd:integer ;
            wikibase:sitelinks "113"^^xsd:integer .
  
  If you look at Q42?oldid=112 <https://www.wikidata.org/wiki/Q42?oldid=112>, 
you can see that it did not actually contain over two hundred statements – 
which is understandable, since that revision predates support for statements on 
Wikidata by several months. (Maybe this mismatch was already reported 
somewhere, but I didn’t find any relevant Phabricator task other than this one.)

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Liuxinyu970226, Sjoerddebruin, MisterSynergy, Tgr, 
MZMcBride, aaron, Multichill, hoo, Esc3300, Pasleim, daniel, Aklapper, 
Smalyshev, CBogen, Akuckartz, darthmon_wmde, ET4Eva, Nandana, Namenlos314, 
Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, EBjune, merbst, 
LawExplorer, Avner, Gehel, _jensen, rosalieper, Scott_WUaS, Jonas, FloNight, 
Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to