query-0d079718735a425709d0c8b378a41068
Hosts
Use at
- https://query.wikidata.org/sparql
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
?count
(CONCAT("#host/", SUBSTR(STR(?host), 32), "/podcast") AS ?countUrl)
?host ?hostLabel
(CONCAT("#host/", SUBSTR(STR(?host), 32)) AS ?hostUrl)
?example_podcast ?example_podcastLabel
(CONCAT("#podcast/", SUBSTR(STR(?example_podcast), 32)) AS ?example_podcastUrl)
WHERE {
{
SELECT
(COUNT(?podcast) AS ?count)
?host
(SAMPLE(?podcast) AS ?example_podcast)
WHERE {
?podcast wdt:P31 / wdt:P279* wd:Q24634210 ;
wdt:P371 ?host .
}
GROUP BY ?host
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v5("?countUrl")
v4("?example_podcast"):::projected
v7("?example_podcastUrl")
v3("?host"):::projected
v6("?hostUrl")
v2("?podcast")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q24634210"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P371"--> v3
bind2[/"count(?podcast)"/]
v2 --o bind2
bind2 --as--o v4
bind3[/"sample(?podcast)"/]
v2 --o bind3
bind3 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"concat('#host/',substring(str(?host),'32^^xsd:integer'),'/podcast')"/]
v3 --o bind4
bind4 --as--o v5
bind5[/"concat('#host/',substring(str(?host),'32^^xsd:integer'))"/]
v3 --o bind5
bind5 --as--o v6
bind6[/"concat('#podcast/',substring(str(?example_podcast),'32^^xsd:integer'))"/]
v4 --o bind6
bind6 --as--o v7