query-c07e87ffa823ea2943aabc586597f078

rq turtle/ttl

Locations) so I spend some time on implementing that. This query gives a good overview of the locations we have: the report poked me about the missing locations (11598 according to Jane

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?location ?locationLabel (COUNT(?item) AS ?count) WHERE {
  ?item wdt:P195 wd:Q333515 .
  OPTIONAL { ?item wdt:P276 ?location } .
  ?item wdt:P31 wd:Q3305213 .
  SERVICE wikibase:label {  bd:serviceParam wikibase:language "en" }
  } GROUP BY ?location ?locationLabel 
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v2("?item"):::projected v3("?location"):::projected c2(["wd:Q333515"]):::iri c5(["wd:Q3305213"]):::iri c7(["bd:serviceParam"]):::iri c9(["en"]):::literal v2 --"wdt:P195"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P276".-> v3 end v2 --"wdt:P31"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4