Christopher added a comment.

True, a statement is either referenced or "unreferenced".  Getting the number 
of referenced statements (currently 41,735,203) is easy and fast with:

  curl -G https://query.wikidata.org/bigdata/namespace/wdq/sparql 
--data-urlencode ESTCARD --data-urlencode 
'p=<http://www.w3.org/ns/prov#wasDerivedFrom>'

So we use the total of wikibase:Statement objects to represent the total number 
of statements and subtract referenced statements to get "unreferenced 
statements".

What is still murky to me, and I think possibly wrong with the todo/stats data, 
is the "Referenced statements by statement type".  Something does not add up 
there because the total should not be greater than the sum of "Statements 
referenced to Wikipedia by statement type" and "Statements referenced to other 
sources by statement type" ?

For getting counts of objects per item, this means running 19M separate queries 
or is there another way?   Creating a script to do this would be very similar 
to the property distribution method that I have already done I guess.  
Basically ask "list all of the items" and then "lapply(items, count labels, 
statements, links, descriptions)"


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

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

To: Christopher
Cc: Lydia_Pintscher, StudiesWorld, Addshore, Christopher, Aklapper, 
Wikidata-bugs, aude, Mbch331



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

Reply via email to