Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract Freebase Data Dump for a particular topic

I want to extract music data from the freebase data dumps. (http://www.freebase.com/music)

Once I have the data dump how to I extract say the following properties http://www.freebase.com/music/recording?schema=

Will a better approach be get all songs and then fetch relevant information from it? If this is a good approach how should I go about extracting it?

like image 389
varunthacker Avatar asked May 16 '13 18:05

varunthacker


1 Answers

zgrep $'\tns:music\.recording' freebase-rdf-{date}.gz | gzip > freebase-filtered.gz

should get you started. Depending on what other information you want, you may need to expand on it.

like image 65
Tom Morris Avatar answered Nov 12 '22 15:11

Tom Morris