<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry for not updating the thread in a while. That code which I posted
a while back was very hacked together and not ready for any serious
use. I am continuing to work on a Ruby API for Freebase that will allow
you to access Freebase data in a Rails web app. The new code should be
available sometime this week so that you can start playing around with
it.<br>
<br>
The Ruby API will let you make queries sort of like ActiveRecord and
the results will be Ruby objects that model the Freebase data you
queried. An example of the syntax might be:<br>
<br>
<tt>bill_gates = Metaweb::</tt><tt>ReadService</tt><tt>.find(:first,
:type =&gt; '/people/person', :name =&gt; 'Bill Gates')<br>
puts bill_gates.gender.name<br>
<br>
</tt>Shawn<tt><br>
</tt><br>
Tim Kientzle wrote:
<blockquote cite="mid:46E1EDC1.7020603@metaweb.com" type="cite">
  <pre wrap="">Someone here did take a quick stab at a Ruby client
for Freebase a few months ago.   I found the code
and have put a copy at:
    <a class="moz-txt-link-freetext" href="http://dev.mqlx.com/~tim/metaweb-ruby.tgz">http://dev.mqlx.com/~tim/metaweb-ruby.tgz</a>

This is unofficial and unsupported.  To be honest,
I don't personally know if it works at all.  But maybe
some of the Ruby folks out there will find it a useful
starting point for something better.  We're releasing
it under a BSD license, so you should be able to do
just about anything you like with it.

Tim Kientzle

Rich Morin wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Shawn Simister said, on July 24:
    </pre>
    <blockquote type="cite">
      <pre wrap="">I've uploaded what code I've hacked together thus far here
<a class="moz-txt-link-rfc2396E" href="http://www.mediafire.com/?fm7sz0n8hbg">&lt;http://www.mediafire.com/?fm7sz0n8hbg&gt;</a> but I'd love to get
some feedback on how to go about building this code into a
more robust API.  The current code supports basic ActiveRecord
style queries and pluralization when dealing with the resulting
objects.  There is no error handling, write support or lazy
loading of related entities....yet.
      </pre>
    </blockquote>
    <pre wrap="">I don't see any follow-up to this posting.  Worse, the link seems
to be broken (320 error).  Help?

More generally, I'd love to hear about any progress in building
Rails models for the API, etc.

-r
    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Developers@freebase.com">Developers@freebase.com</a>
<a class="moz-txt-link-freetext" href="http://lists.freebase.com/mailman/listinfo/developers">http://lists.freebase.com/mailman/listinfo/developers</a>

  </pre>
</blockquote>
<br>
</body>
</html>