I am using the youtube API to retrieve the freebase topic details of particular videos. Since freebase is closing down how do I use wikidata to query for a specific topic id?
For example the following topic id /m/0181lj
should give the following information
I have tried playing with the wikidata REST API but I haven't found a request which matches what I need.
Update
Freebase have released the Knowledge graph which allows you to query via topicId
as so
https://kgsearch.googleapis.com/v1/entities:search?ids=/m/0181lj&key=API_KEY&limit=5&indent=True
However, some ids don't seem to be returning data e.g. the following music genres /m/05fqyx
, /m/02w1p3
As an alternative freebase can be downloaded, but I haven't tried that just yet!