https://github.com/bhuga/rdf-repository-skeleton
Fork me to implement your own RDF storage adapter! Click it now! Do it!
https://github.com/bhuga/rdf-repository-skeleton
Last synced: about 1 month ago
JSON representation
Fork me to implement your own RDF storage adapter! Click it now! Do it!
- Host: GitHub
- URL: https://github.com/bhuga/rdf-repository-skeleton
- Owner: bhuga
- License: unlicense
- Created: 2010-04-03T20:42:24.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T14:50:10.000Z (over 9 years ago)
- Last Synced: 2025-03-24T15:47:32.993Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 87.9 KB
- Stars: 19
- Watchers: 2
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RDF.rb storage adapter skeleton
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 for an overview.
# Getting started:
1. Ensure you have the requirements below.
1. Run the tests. You'll get a lot of `NotImplementedErrors`
1. Find and fix the TODO markers in `lib/rdf/myrepository.rb`.
1. Find and fix the TODO markers in `spec/my_repository.spec`. You may not need to do this if your repository needs no arguments to `new()`.
1. Run the tests! Man, you're awesome!
1. 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
## Requirements
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
## Resources
* - RDF.rb's home page
* - A blog post how-to on RDF.rb repositories
* - RDF.rb's Repository documentation; check here for methods you can replace.### Support
Please post questions or feedback to the [W3C-ruby-rdf mailing list][].
### Author
* Ben Lavender | | | |### 'License'
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.[W3C-ruby-rdf mailing list]: http://lists.w3.org/Archives/Public/public-rdf-ruby/