query-2e60ac0913f37af3904bf177dd813e8a

rq turtle/ttl

Formatter URL for seasons on external websites Jerimee PaperHuman DaxServer BeLucky Fuzheado dseomn Keplersj Sriveenkat RealityBites Jakeob9000 Demadrend Haseeb Carlinmack Supaplex Ontogon Ranjithsiji Gnoeee Spinster Sidohayder Mathieu Kappler Rockpeterson M2k~dewiki, mostly focus on media historiography and works from the Global South Wallacegromit1 Sotiale 2le2im-bdc Trivialist ɲɤʂ CptViraj Antoine2711 T7Tris Wolverène Shisma Bodhisattwa U+1F350 Andreasmperu GardenerAmaryllis putnik Jobu0101 Mbch331 Rogi Danrok Queryzo Mushroom Ermanon LydiaPintscher ValterVB== Active users == participants of WikiProject Movies Notified Hello! I thought to propose a new property but I'm writing here before for testing the eventual consensus from this WikiProject. The idea is the following. we would write something like this: (Q147235)How I Met Your Mother Say we want to retrieve the IMDb URLs associated to all the seasons of a given TV series. For instance, for

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?season ?seasonLabel (URI(CONCAT("https://www.imdb.com/title/", ?imdb, "/episodes?season=", ?number)) as ?imdbSeason)
WHERE {
  BIND(wd:Q147235 AS ?series)
  ?season wdt:P31 wd:Q3464665 ;
          p:P179 [
            ps:P179 ?series ;
            pq:P1545 ?number
          ] .
  ?series wdt:P345 ?imdb .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?number

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?imdb"):::projected v5("?imdbSeason") v1("?number"):::projected v3("?season"):::projected v2("?series") a1((" ")) c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c2(["wd:Q3464665"]):::iri bind0[/"'wd:Q147235'"/] bind0 --as--o v2 v3 --"p:direct/P31"--> c2 a1 --"p:statement/P179"--> v2 a1 --"p:qualifier/P1545"--> v1 v3 --"p:P179"--> a1 v2 --"p:direct/P345"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"concat('https://www.imdb.com/title/',?imdb,'/episodes?season=',?number)"/] v4 --o bind1 v1 --o bind1 bind1 --as--o v5