[Developers] MQL Lite (was newbie: simple question)

John Giannandrea jg at metaweb.com
Fri Feb 27 02:05:56 UTC 2009


On Feb 26, 2009, at 5:38 PM, Pito Salas wrote:
> and I did get a match, but no way to tell that he was an ex-senator
> and a current President which is key to where I am going. That may be
> beyond the scope though...

You can simply add the 'id' clause to that query and it will tell you  
which types in /government he was a match for:

[ { "d:type" : [ { "domain" : "/government", "id" : null } ], "name" :  
"Barack Obama", "type" : "/people/person" } ]

You could also just ask for type:[] and see all his types and then  
apply some other heuristic for what you are looking to find.

In general if you want to know *everything* we know about a topic you  
are going to have to know which properties you are expecting at the  
receiving end...

-jg



More information about the Developers mailing list