[Developers] Python query not working?
Christopher R. Maden
crism at metaweb.com
Tue Jul 22 14:15:00 UTC 2008
Chris Mahon wrote:
> This is the code. I removed the first [ bracket at the beginning/end.
Don’t do that.
The query you are executing returns more than one value. It needs [] to
construct a list of results. If your query is wrapped in {}, MQL will
try to return a single object. If the query matches multiple objects,
and MQL is trying to return a single object, it will give you an error.
HTH,
Chris
--
Christopher R. Maden
Data Architect
Freebase.com: <URL: http://www.freebase.com/ >
Metaweb Technologes, Inc. <URL: http://www.metaweb.com/ >
More information about the Developers
mailing list