I am trying to replicate the example code in https://developers.google.com/freebase/v1/rdf-overview#rdf-documentation to obtain the RDF for a particular topic and store the result in rdflib. After setup, the url is https://www.googleapis.com/freebase/v1/rdf/m/02h40lc?key=XXXXX. However, upon running the code, I get the following error:
"BadSyntax: at line 7 of <>:
Bad syntax (EOF found in middle of path syntax) at ^ in:
"@prefix key: <http://rdf.freebase.com/key/>.
@prefix ns: <http://rdf.freebase.com/ns/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
ns:m.02h40lc
ns:base.database.database_topic.database_s_for_this_topic ns:m.0861s;
ns:base.rosetta.languoid.document ns:m.05tq40j;
ns:base.rosetta.languoid.document ns:m.05tqsrm;
etc., with the last line being:
rdfs:label "Inglise keel"@et^..."
The actual last line of the file is:
rdfs:label "Inglise keel"@et.
Have I missed some steps in getting the example to work? Thanks!