1 year ago

#72500

test-img

privil

How to get IMDb IDs of all films in a list page on Wikipedia?

I want to get the IMDb ID of all films in a list page on Wikipedia, for example: https://en.wikipedia.org/wiki/List_of_neo-noir_films

I've tried making a query like this: (instance of: film, genre: neo-noir)

SELECT ?film ?filmLabel ?IMDb_ID WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?film wdt:P31 wd:Q11424;
    wdt:P136 wd:Q2421031.
  OPTIONAL { ?film wdt:P345 ?IMDb_ID. }
}

but the list it returned is not the same as that list page. Could someone please help me with this?

sparql

wikipedia

wikidata

wikidata-api

0 Answers

Your Answer

Accepted video resources