[Developers] MQL Lite (was newbie: simple question)
Barak Michener
barak at metaweb.com
Fri Feb 27 01:52:38 UTC 2009
Pito Salas wrote:
> Scott,
>
> Thanks, but couldn't get that to work the way I need.
>
> 1)If I literally use your query I get a list of people who happen to
> be in government. I don't know why I am getting that particular list.
>
> 2) And if I want to look for someone specific, say "John F. Kennedy"
> or even, to take an easy one, Barack Obama, I tried this:
>
> [
> {
> "d:type" : [
> {
> "domain" : "/government"
> }
> ],
> "name" : "Barack Obama",
> "type" : "/people/person"
> }
> ]
>
> 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...
>
> - Pito
>
See
http://www.freebase.com/type/schema/government/government_position_held
to help manipulate this query:
[
{
"government_positions_held" : [
{
"office_position_or_title" : null
}
],
"name" : null,
"type" : "/government/politician"
}
]
There are about 7300 such people currently.
As you can see, asking what a 'good' data model is always open to
interpretation, and has no right answer. The best thing to do is find an
answer that works for you.
And the tutorials are quite helpful, combined with browsing the schema
on the main site.
--Barak Michener
More information about the Developers
mailing list