W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > April 2010

Storage adapters for RDF.rb

From: Arto Bendiken <arto.bendiken@gmail.com>
Date: Wed, 21 Apr 2010 00:34:47 +0200
Message-ID: <y2l47fe11b71004201534hb2df13edy4905d38acb47ff84@mail.gmail.com>
To: public-rdf-ruby@w3.org
There now exist a growing number of storage adapters for RDF.rb. The
following are the ones I know of, these RubyGems having been developed
by myself, Ben Lavender, Nicholas Humfrey and Pius Uzamere:

  Apache Cassandra
    http://github.com/bendiken/rdf-cassandra
    http://rubygems.org/gems/rdf-cassandra

  DataObjects (SQLite/PostgreSQL)
    http://github.com/bhuga/rdf-do
    http://rubygems.org/gems/rdf-do

  MongoDB
    http://github.com/pius/rdf-mongo
    http://rubygems.org/gems/rdf-mongo

  RedStore
    http://github.com/njh/rdf-redstore

  Sesame
    http://github.com/bendiken/rdf-sesame
    http://rubygems.org/gems/rdf-sesame

  SPARQL
    http://github.com/bendiken/sparql-client
    http://rubygems.org/gems/sparql-client

  Talis Platform
    http://github.com/bhuga/rdf-talis
    http://rubygems.org/gems/rdf-talis

All these adapters subclass RDF::Repository directly or indirectly,
hence conforming to the API documentation at:

  http://rdf.rubyforge.org/RDF/Repository.html
  http://rdf.rubyforge.org/RDF/Mutable.html
  http://rdf.rubyforge.org/RDF/Enumerable.html
  http://rdf.rubyforge.org/RDF/Queryable.html

A special thanks to Ben Lavender for his tutorial on how to write a
storage backend for RDF.rb, as well as for his rdf-repository-skeleton
project on GitHub that anyone can fork to quickly implement a new
storage adapter (as done for the aforementioned Cassandra, RedStore
and Mongo backends):

  http://blog.datagraph.org/2010/04/rdf-repository-howto
  http://github.com/bhuga/rdf-repository-skeleton

Based on experience gained from the existing implementations, it would
seem to generally take less than 200 lines of code to implement an
initial working version of a new RDF::Repository subclass. Not too
bad.

Any other RDF.rb storage adapters in the works by anyone?

-- 
Arto Bendiken | @bendiken
Received on Tuesday, 20 April 2010 22:35:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 April 2010 22:35:21 GMT