NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Tips (Score:1)
1) If you want more than 100 results, up the limit to a higher number; 100 is the default. Use "limit" : 500 or whatever.
2) You probably want to mark some of your clauses as optional; as it stands, if the system doesn't know the capital of a country, it will be entirely excluded.
3) The Weimar Republic *is* a country -- or was. That's perfectly valid in Freebase. The country type is used for past and present countries and things that act like countries (eg. have an ISO code). Admittedly this might not quite be what you expect, at first glance.
One way to query for what you probably want is to query for things that are countries, which have an ISO code, and which are not also co-typed as administrative division. That should get you something approximating the list you expect -- if I'm guessing right about what you do expect :)
Also, re: updating data in the system, you don't need to use the write API. You can simply do it via http://freebase.com/ [freebase.com] by clicking on "Edit" wherever necessary.
Kirrily "Skud" Robert perl@infotrope.net http://infotrope.net/
Reply to This
Re: (Score:2)
Thank you! I'll give it another go. Understanding the ins and outs of MQL is harder than I thought! :)
Re: (Score:1)
Kirrily "Skud" Robert perl@infotrope.net http://infotrope.net/
Re: (Score:1)
And on the API thing, would the most prominent Freebase Perl person be interested in taking over and fixing the Freebase module?
Re: (Score:2)
Which module is that? Kirrily already has the Metaweb [cpan.org] module and there's a WWW::Metaweb [cpan.org] module also. Regrettably, both fail to install due to incompatible API changes to JSON modules. I've a locally hacked copy of WWW::Metaweb (and I have filed a bug report [cpan.org]), so it's easy to fix, but newcomers might be confused.
I'm not certain which of these modules would be of greater benefit, though.