[Developers] Python query not working?
Chris Mahon
darthmahon at gmail.com
Tue Jul 22 14:18:02 UTC 2008
Right ok, so do I still put the {} brackets before and after or do I simple
do this?
query = [...query here...]
On Tue, Jul 22, 2008 at 3:15 PM, Christopher R. Maden <crism at metaweb.com>
wrote:
> 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/ >
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080722/b772a27d/attachment.htm
More information about the Developers
mailing list