query-83257403caf60183d76bbcfba073a7a6

rq turtle/ttl

Synia: Podcasts for topic

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#>
PREFIX target: <http://www.wikidata.org/entity/Q52>

SELECT
  ?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 ;
           wdt:P921 target:
  OPTIONAL { ?podcast wdt:P407| wdt:P364 ?language }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?language"):::projected v4("?languageUrl") v1("?podcast"):::projected v3("?podcastUrl") a1((" ")) c9(["bd:serviceParam"]):::iri c5(["wd:Q52"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q24634210"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P921"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 -."wdt:P364".-> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P407"--> v2 end union0r <== or ==> union0l end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind0[/"concat('#podcast/',substring(str(?podcast),'32^^xsd:integer'))"/] v1 --o bind0 bind0 --as--o v3 bind1[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/] v2 --o bind1 bind1 --as--o v4