How to extract a Freebase data dump for a specific topic

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

As soon as I have a data dump, how can I extract, say the following properties http://www.freebase.com/music/recording?schema=

Would it be a better approach to get all the songs and then extract relevant information from it? If this is a good approach, how can I extract it?

+6
source share
1 answer
zgrep $'\tns:music\.recording' freebase-rdf-{date}.gz | gzip > freebase-filtered.gz 

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

+7
source

Source: https://habr.com/ru/post/945190/


All Articles