[Developers] Merge two queries
John Giannandrea
jg at metaweb.com
Tue Dec 4 22:54:21 UTC 2007
> Sebastian Kurt wrote:
>> What should it do?
>> "[1] answering ID an DOMAIN of <keyword>, ID is used in [2] (as
>> myIdForKeyword) to ask for CATEGORY of it"
>>
it wasnt clear to me if you are trying to find a domain or a type.
Here is an example of constraining both the domain name and the type
name and getting the enclosing category. You can remove the
constraints you dont want
-jg
{
"query" : [
{
"domains" : {
"name" : null,
"name~=" : "film",
"type" : "/type/domain",
"types" : [
{
"name" : null,
"name~=" : "director"
}
]
},
"name" : null,
"type" : "/freebase/domain_category"
}
]
}
More information about the Developers
mailing list