[Developers] query API - overuse and sanctions?
Michael Callaghan
john.michael.callaghan at gmail.com
Fri May 8 19:25:40 UTC 2009
Faye
Again, thanks, but I'm aware of the power of property name prefixes in MQL
to combine constraints and queries etc. You're absolutely right that the
insertion of a prefix on one of the name property references does make the
query behave as expected, but still isn't it mildly curious how it behaves
without the prefix?
Thanks,
Michael
2009/5/8 Faye Harris <faye at metaweb.com>
> Hi Michael,
>
> This works:
>
>
> http://www.freebase.com/api/service/mqlread?query={%22query%22:{%22limit%22:1,%22type%22%20:%22/people/person%22,%22name%22:%22Samuel%20Adams%22,%22a:name%22:null,%22id%22%20:%20null}}<http://www.freebase.com/api/service/mqlread?query=%7B%22query%22:%7B%22limit%22:1,%22type%22%20:%22/people/person%22,%22name%22:%22Samuel%20Adams%22,%22a:name%22:null,%22id%22%20:%20null%7D%7D>
>
> Your query has two "name:value" pairs. Add an arbitrary property prefix
> to the second one, so the new query is:
>
> {"query":{"limit":1,"type" :"/people/person","name":"Samuel
> Adams","a:name":null,"id" : null}}
>
> -- Faye
>
>
> Michael Callaghan wrote:
> > Kirrily
> >
> >
> http://www.freebase.com/api/service/mqlread?query={%22query%22:{%22limit%22:1,%22type%22%20:%22/people/person%22,%22name%22:%22Samuel%20Adams%22,%22name%22:null,%22id%22%20:%20null}}<http://www.freebase.com/api/service/mqlread?query=%7B%22query%22:%7B%22limit%22:1,%22type%22%20:%22/people/person%22,%22name%22:%22Samuel%20Adams%22,%22name%22:null,%22id%22%20:%20null%7D%7D>
> > <
> http://www.freebase.com/api/service/mqlread?query=%7B%22query%22:%7B%22limit%22:1,%22type%22%20:%22/people/person%22,%22name%22:%22Samuel%20Adams%22,%22name%22:null,%22id%22%20:%20null%7D%7D
> >
> >
> > Thanks for the numbers.
> >
> > As for the query, I just tried the above on a different computer and
> > good ol' Jack Abramoff came back ... (Note, it's the mqlread service
> > and not the queryeditor as in your link)
> >
> > Michael
> >
> >
> >
> > 2009/5/8 Kirrily Robert <kirrily at metaweb.com <mailto:kirrily at metaweb.com
> >>
> >
> > On 08/05/2009, at 9:54 AM, Michael Callaghan wrote:
> >
> > > {"query":{"limit":1,"type" :"/people/person","name":"Samuel
> > > Adams","name":null,"id" : null}
> >
> >
> > Looks OK to me:
> > http://www.freebase.com/app/queryeditor?q={%22limit<http://www.freebase.com/app/queryeditor?q=%7B%22limit>
> > <http://www.freebase.com/app/queryeditor?q=%7B%22limit>
> > %22%3A%201%2C%20%22type%22%3A%20%22%2Fpeople%2Fperson%22%2C%20%22name
> > %22%3A%20%22Samuel%20Adams%22%2C%20%22ns0%3Aname%22%3A%20null%2C
> > %20%22id%22%3A%20null%20}
> >
> > Wrt API overuse, just FYI, our limit is 100,000 queries per day. "A
> > few thousand" shouldn't affect you.
> >
> > K.
> >
> > --
> > Kirrily Robert
> > Freebase Community Director
> > kirrily at metaweb.com <mailto:kirrily at metaweb.com>
> >
> >
> >
> > _______________________________________________
> > Developers mailing list
> > Developers at freebase.com <mailto:Developers at freebase.com>
> > http://lists.freebase.com/mailman/listinfo/developers
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Developers mailing list
> > Developers at freebase.com
> > http://lists.freebase.com/mailman/listinfo/developers
> >
>
> _______________________________________________
> 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/20090508/79c7a054/attachment-0001.htm
More information about the Developers
mailing list