[Developers] help - MQL to query by type and get all types
Christopher R. Maden
crism at metaweb.com
Wed Mar 18 19:33:30 UTC 2009
John Merrells wrote:
> But that doesn't work, as 'type' can only appear once. I can't work out
> the syntax to express this query :-( Any help much appreciated :-)
JSON imposes the restriction that each key can only appear once. In
MQL, the work-around for that is that arbitrary colon-separated prefixes
are allowed; try this instead:
[{
"id" : null,
"name" : null,
"type" : "/music/artist"
"all:type" : []
}]
~Chris
--
Christopher R. Maden
Data Architect
Freebase.com: <URL: http://www.freebase.com/ >
Metaweb Technologies, Inc. <URL: http://www.metaweb.com/ >
More information about the Developers
mailing list