Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by Skud (28) on 2009.08.11 18:09 (#69983) Homepage Journal

    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 [] by clicking on "Edit" wherever necessary.

    Kirrily "Skud" Robert
    • Thank you! I'll give it another go. Understanding the ins and outs of MQL is harder than I thought! :)

      • Jump on IM or IRC ( #freebase) if you'd like some realtime help. Remembering that I'm on the US West Coast, of course -- late in your day and early in mine would probably be our most likely crossover point. I'm skud11111 on AIM/YIM and on GTalk.
        Kirrily "Skud" Robert
    • And on the API thing, would the most prominent Freebase Perl person be interested in taking over and fixing the Freebase module?

      • Which module is that? Kirrily already has the Metaweb [] module and there's a WWW::Metaweb [] 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 []), 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.