This is a skeleton repository to create your own RDF.rb storage adapter. It's designed to get you up and running with a new backend as quickly as possible, so that you can have working tests right away, allowing you to develop iteratively.
See http://blog.datagraph.org/2010/04/rdf-repository-howto for an overview.
- Ensure you have the requirements below.
- Run the tests. You'll get a lot of
NotImplementedErrors
- Find and fix the TODO markers in
lib/rdf/myrepository.rb
. - Find and fix the TODO markers in
spec/my_repository.spec
. You may not need to do this if your repository needs no arguments tonew()
. - Run the tests! Man, you're awesome!
- Iterate and improve! If your backend is better served by replacing some of the many methods that an
RDF::Repository
implments, replace them.
To run tests, run:
spec -cfn spec/my_repository.spec
You'll need the rdf
, rdf-spec
, and rspec
libraries. The easiest way to install these is via RubyGems.
$ sudo gem install rdf rdf-spec rspec
- http://rdf.rubyforge.org - RDF.rb's home page
- http://blog.datagraph.org/2010/04/rdf-repository-howto - A blog post how-to on RDF.rb repositories
- http://rdf.rubyforge.org/RDF/Repository.html - RDF.rb's Repository documentation; check here for methods you can replace.
Please post questions or feedback to the W3C-ruby-rdf mailing list.
- Ben Lavender | blavender@gmail.com | http://github.com/bhuga | http://bhuga.net | http://blog.datagraph.org
This is free and unemcumbered software released into the public domain. For more information, see the accompanying UNLICENSE file.
If you're unfamiliar with public domain, that means it's perfectly fine to start with this skeleton and code away, later relicensing as you see fit.