I would like to get all the members of a specific category from Wikidata. For example, I would like to get all the films (instances of film: P31 Q11424
) from the category "Category:Films set in Stockholm" (Q7519614
).
However, I can't seem to find what the relationship would be. DBpedia uses "subject of" but the Wikidata equivalent (P805
) doesn't return any results.
I also thought I could bootstrap my way to the answer with this query, but to no avail:
SELECT ?s ?p ?pLabel WHERE {
?s ?p wd:Q7519614.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}