query-abacb8e03dcff9991acfb6d5b140d959

rq turtle/ttl

Venues publishing about the topic

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/Q54871>

SELECT
  ?count 
  (CONCAT("#venue/", SUBSTR(STR(?venue), 32),
          "/topic/", SUBSTR(STR(target:), 32)) AS ?countUrl)

  ?venue ?venueLabel 
  (CONCAT("#venue/", SUBSTR(STR(?venue), 32)) AS ?venueUrl)
  ?venueDescription
WHERE {
   {
  SELECT
    (COUNT(DISTINCT ?work) AS ?count)
    ?venue
  WHERE {
    ?work wdt:P921 / (wdt:P31| wdt:P279 | wdt:P361 | wdt:P1269)? # Expensive query: *
              target: ;
          wdt:P1433 ?venue .
  }
  GROUP BY ?venue
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v4("?countUrl") v3("?venue"):::projected v5("?venueUrl") v2("?work") a1((" ")) c9(["bd:serviceParam"]):::iri c2([http://www.wikidata.org/entity/Q54871]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P921"--> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P1269"--> c2 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P361"--> c2 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P279"--> c2 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P31"--> c2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end v2 --"wdt:P1433"--> v3 bind1[/"count(?work)"/] v2 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind2[/"concat('#venue/',substring(str(?venue),'32^^xsd:integer'),'/topic/',substring(str(http://www.wikidata.org/entity/Q54871),'32^^xsd:integer'))"/] v3 --o bind2 bind2 --as--o v4 bind3[/"concat('#venue/',substring(str(?venue),'32^^xsd:integer'))"/] v3 --o bind3 bind3 --as--o v5