[Developers] Metaweb Ruby module
Shawn Simister
narphorium at gmail.com
Sat Sep 8 19:58:19 UTC 2007
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.
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:
bill_gates = Metaweb::ReadService.find(:first, :type =>
'/people/person', :name => 'Bill Gates')
puts bill_gates.gender.name
Shawn
Tim Kientzle wrote:
> 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:
> http://dev.mqlx.com/~tim/metaweb-ruby.tgz
>
> 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:
>
>> Shawn Simister said, on July 24:
>>
>>> I've uploaded what code I've hacked together thus far here
>>> <http://www.mediafire.com/?fm7sz0n8hbg> 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.
>>>
>> 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
>>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20070908/a96a0dea/attachment-0001.htm
More information about the Developers
mailing list