Christopher added a comment.

Truthy statement counts per Item can be done like this:

  PREFIX wd: <http://www.wikidata.org/entity/>
  
  SELECT (count(distinct(?o)) AS ?ocount)   WHERE {
   wd:Q7239 ?p ?o
   FILTER(STRSTARTS(STR(?p), "http://www.wikidata.org/prop/direct";)) 
  }  

Labels per Item like this:

  PREFIX wd: <http://www.wikidata.org/entity/>
  
  SELECT (count(distinct(?o)) AS ?ocount)   WHERE {
   wd:Q7239 ?p ?o
   FILTER (REGEX(STR(?p), "http://www.w3.org/2000/01/rdf-schema#label";)) 
  } 

Descriptions per Item:

  PREFIX wd: <http://www.wikidata.org/entity/>
  
  SELECT (count(distinct(?o)) AS ?ocount)   WHERE {
   wd:Q7239 ?p ?o
   FILTER (REGEX(STR(?p), "http://schema.org/description";)) 
  } 

Sitelinks per item:

  PREFIX wd: <http://www.wikidata.org/entity/>
  
  SELECT (count(distinct(?s)) AS ?ocount)   WHERE {
   ?s ?p wd:Q7239
   FILTER (REGEX(STR(?p), "http://schema.org/about";)) 
  } 


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