query-17236d6d6a50709d8a8bef18fff9ab59
Synia: Podcasts
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
?episodes
?podcast ?podcastLabel
(CONCAT("#podcast/", SUBSTR(STR(?podcast), 32)) AS ?podcastUrl)
?podcastDescription
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
WHERE {
?podcast wdt:P31 / wdt:P279* wd:Q24634210 .
OPTIONAL { ?podcast wdt:P364| wdt:P407 ?language }
OPTIONAL { ?podcast wdt:P1113 ?episodes }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?episodes)
LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?episodes"):::projected
v3("?language"):::projected
v5("?languageUrl")
v2("?podcast"):::projected
v4("?podcastUrl")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q24634210"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 -."wdt:P407".-> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P364"--> v3
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1113".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"concat('#podcast/',substring(str(?podcast),'32^^xsd:integer'))"/]
v2 --o bind0
bind0 --as--o v4
bind1[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v3 --o bind1
bind1 --as--o v5