[Developers] Multiple Wildcards in MQL Query
John Giannandrea
jg at metaweb.com
Sun Jan 4 03:56:57 UTC 2009
Rob Warren wrote:
> I am trying to write a single query that returns all names that
> begin with a number for a given type (e.g. for "type" : "/base/
> bioventurist/science_or_technology_company", I want freebase to
> return 3M, 454 Life Sciences, 23andme etc.).
in general MQL doesnt yet support 'OR' or full regular expressions.
ideally you should be able to do this with something like the
following, but it doesnt currently work.
I have filed a feature request for MQL to support this. MQL-468
[
{
"a:name" : {
"a:value~=" : "^2*",
"b:value~=" : "^3*",
...
"lang" : "/lang/en"
},
"limit" : 5,
"name" : null,
"type" : "/base/bioventurist/science_or_technology_company"
}
]
-jg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090103/1aea14ef/attachment.htm
More information about the Developers
mailing list