Gettting Actor Ids and biographies from the data dumps or Freebase API
问题 Does anyone know the best way of getting Actor Ids from Freebase data dumps, and later on getting the IMDB ids and biographies from the Freebase API? 回答1: Actors will have the type /film/actor and look like this in the dump: ns:m.010q36 rdf:type ns:film.actor. You can find them all in a few minutes from the compressed dump with a simple grep: zgrep $'rdf:type\tns:film.actor.' freebase-rdf-<date of dump>.gz | cut -f 1 | cut -d ':' -f 2 > actor-mids.txt This will generate a list of MIDs in the