<p>For the upload I used the freebase Python library. To parse the WP infoboxes and templates, clean up the data, find the right Freebase topics, craft the queries etc. I wrote a few Python scripts on my own.</p>