How to extract Freebase Data Dump for a particular topic

天涯浪子 提交于 2019-12-18 06:06:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/16594646/how-to-extract-freebase-data-dump-for-a-particular-topic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!