torsdag 22 december 2016

Number of articles about Swedish painters paintings

# The number of Wikipedia articles (in any language) of paintings by painter from Sweden
#defaultView:BubbleChart
SELECT ?painter ?painterLabel (COUNT(DISTINCT ?article) AS ?count) WHERE {
  ?item wdt:P31 wd:Q3305213 .
    ?article schema:about ?item .
  ?article schema:isPartOf ?wiki .
  FILTER regex (str(?wiki), ".+.wikipedia.org").
  ?item wdt:P170 ?painter .
  ?painter wdt:P27 wd:Q34 . 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
        
} GROUP BY ?painter ?painterLabel HAVING (?count > 0 )

http://tinyurl.com/h94swev


Inga kommentarer:

Skicka en kommentar