[Developers] Difference between 2 querys
Sebastian Kurt
kurt at inf.fu-berlin.de
Mon Dec 10 17:15:08 UTC 2007
What I want is, category/domain of topics with "Art" in the name.
Sebastian Kurt :-)
Kurt Bollacker schrieb:
> On Sun, Dec 09, 2007 at 11:33:55PM +0100, Sebastian Kurt wrote:
>> Good Evening or what time it is where you are right now,
>>
>> I got two querys, both querying for "Art"
>> #1 gets a timeout, #2 gets many answers
>
> I'm not sure what you are trying to do. Query #2 gets topics with the
> string "Art" in the name. Because you did not specify how many (using
> "limit":XXX), 100 are returned. You can use cursors to get the rest.
>
> Query #1 seems to do almost the same thing but organized by domain
> category/domain. Because cursors are only allowed at the topic of a
> query, this form is less likely to get you what you want. If you just
> want topics with "Art" in the name, I suggest sticking with query #2.
>
>
> Kurt :-)
>
>
>> #1 http://pastebin.com/m6ae0dbd9
>> #2 http://pastebin.com/m7debf255
>>
>> my solution #1 querys for /type/domain and #2 for names. But I don't
>> know who to combine it. it times out because there is no category named
>> "Art" without "s" and the many results are topics, i guess?
>>
>> cheers
>> Sebastian
>>
>> Querys:
>> #1
>> {
>> "someids" : {
>> "query" : [
>> {
>> "domains" : [
>> {
>> "limit" : 1,
>> "name" : null,
>> "type" : "/type/domain",
>> "types" : [
>> {
>> "instance" : [
>> {
>> "limit" : 1,
>> "name" : null,
>> "name~=" : "Art"
>> }
>> ],
>> "limit" : 1
>> }
>> ]
>> }
>> ],
>> "id" : null,
>> "name" : null,
>> "type" : "/freebase/domain_category"
>> }
>> ]
>> }
>> }
>> #2
>> {
>> "qname" : {
>> "query" : [
>> {
>> "name" : null,
>> "name~=" : "Art",
>> "type" : [
>> {
>> "id" : null,
>> "name" : null
>> }
>> ]
>> }
>> ]
>> }
>> }
>> --
>> mailto:kurt at inf.fu-berlin.de
>> 0179 7923088
>> http://vIdentity.de
>> http://skurt.de
>> _______________________________________________
>> 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
--
mailto:kurt at inf.fu-berlin.de
0179 7923088
http://vIdentity.de
http://skurt.de
More information about the Developers
mailing list