Skip to content

njh/ruby-rdf-redstore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedStore storage adapter for RDF.rb

This gem allows you to use a RedStore instance as a backend for RDF.rb.

Synopsis:

require 'rdf'
require 'rdf/redstore'

repo = RDF::RedStore::Repository.new('http://localhost:8080/')
puts RDF::Writer.for(:ntriples).dump repo

repo.load 'http://datagraph.org/jhacker/foaf.nt'
repo.count
# => 10
# Note: not all of the RedStore storage backends support the count method

subject = repo.first.subject
subject_statements = repo.query(:subject => subject)
subject_statements.size
# => 7

repo.delete(*subject_statements)
repo.count
# => 3

Installation

The recommended method of installation is via RubyGems.

$ sudo gem install rdf-redstore

Resources

Support

Please post questions or feedback to the W3C-ruby-rdf mailing list.

Author

'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.

About

This ruby gem allows you to use a RedStore instance as a backend for RDF.rb.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%