Adapt Freebase sameAs link generation to new format

RDF format of Freebase RDF dumps has changed from the
format assumed in this script. This commit adapts the
parsing code to work again