1

My application needs the details of All Indian movies. I can't take it from IMDB or OMDB because the number of Indian movies is too less there. I need to fetch it from Wikipedia. Freebase is deprecated now and I have heard DBPedia has many less entries. The only option left is Wikidata's query API. But it is getting too tough to form the query. Couldn't understand through Wikidata's 1 page api documentation. Tried the following query, but it returned just 2118 entries, which is too less compared to what we can see in Wikipedia (10000+) entries.

https://wdq.wmflabs.org/api?q=claim[31:(TREE[11424][][279])]%20AND%20tree[668][150][17,131]

Can anybody help me in fetching the details of all Indian movies from wikipedia? It would be a great help

1

1 Answer 1

3

You can get all Wikidata items which are:

with the following SPARQL query:

SELECT ?movie ?movieLabel  WHERE {
   ?movie wdt:P495 wd:Q668 ;
          wdt:P31 wd:Q11424 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

The query returns 26,007 movies in 2022 (up from 21,595 entries when the original answer was written in 2015).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.