Addshore added a comment.

Okay, so after a bit more discussion on 
https://phabricator.wikimedia.org/T119775

I feel the best way to do this might be to run 1 query to get the list of 
wikipedia items
and then run queries with that batch stuff together such as the below:

PREFIX wd: http://www.wikidata.org/entity/
PREFIX wdt: http://www.wikidata.org/prop/direct/
PREFIX prov: http://www.w3.org/ns/prov#

  SELECT (count(distinct(?s)) AS ?scount) WHERE {
    { ?wdref <http://www.wikidata.org/prop/reference/P143> wd:Q11920 }
    UNION
    { ?wdref <http://www.wikidata.org/prop/reference/P143> wd:Q10000 } 
    UNION
    { ?wdref <http://www.wikidata.org/prop/reference/P143> wd:Q328 } .
    ?s prov:wasDerivedFrom ?wdref .
  }

This should not load the query service very much, and is only running once a day


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

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

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



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

Reply via email to