query-5556e4d138767b08ec2ff43a2b6c058f

rq turtle/ttl

Burial locations

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q118220495>

SELECT 
  ?persons
  ?burial_location ?burial_locationLabel
  (CONCAT("#buriallocation/", SUBSTR(STR(?burial_location), 32)) AS ?burial_locationUrl)
  ?burial_locationDescription
WHERE {
  {
    SELECT
      (COUNT(*) AS ?persons)
      ?burial_location
    WHERE {
      ?person wdt:P119 ?burial_location .
    }
    GROUP BY ?burial_location
    ORDER BY DESC(?persons)
    LIMIT 500
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?persons)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?burial_location"):::projected v4("?burial_locationUrl") v2("?person") v4("?persons"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P119"--> v3 bind1[/"count(*)"/] bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind2[/"concat('#buriallocation/',substring(str(?burial_location),'32^^xsd:integer'))"/] v3 --o bind2 bind2 --as--o v4