query-2e60ac0913f37af3904bf177dd813e8a
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
- 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 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