RDFbus is middleware for constructing RDF changesets/transactions and transmitting RDF publish/subscribe payloads over transports such as AMQP, XMPP or Stomp.
require 'rdfbus'
resource = RDF::URI.new("http://rdfbus.rubyforge.org/")
tx = RDFbus::Transaction.new do
delete [resource, RDF::DC.title, "RDFbus 0.0.0"]
insert [resource, RDF::DC.title, "RDFbus 0.0.1"]
end
# Requires http://rdf.rubyforge.org/json/
tx.to_json #=> {
# graph: null,
# delete: {
# 'http://rdfbus.rubyforge.org/': {
# 'http://purl.org/dc/terms/title': [
# {'type': 'literal', 'value': 'RDFbus 0.0.0'}
# ]
# }
# },
# insert: {
# 'http://rdfbus.rubyforge.org/': {
# 'http://purl.org/dc/terms/title': [
# {'type': 'literal', 'value': 'RDFbus 0.0.1'}
# ]
# }
# }
# }
# Requires http://rdf.rubyforge.org/sesame/
require 'rdf/sesame'
endpoint = "http://localhost:8080/openrdf-sesame"
server = RDF::Sesame::Server.new(endpoint)
repository = server.repository("test")
tx = RDFbus::Transaction.new { ... }
tx.execute(repository)
RDFbus::Transaction.execute(repository) do |tx|
...
end
- {RDFbus::Transaction}
- {RDFbus::Transport}
The recommended installation method is via RubyGems. To install the latest official release from RubyGems, do:
% [sudo] gem install rdfbus
To get a local working copy of the development repository, do:
% git clone git://github.com/datagraph/rdfbus.git
Alternatively, you can download the latest development version as a tarball as follows:
% wget http://github.com/datagraph/rdfbus/tarball/master
- http://rdfbus.rubyforge.org/
- http://github.com/datagraph/rdfbus
- http://rubygems.org/gems/rdfbus
- http://rubyforge.org/projects/rdfbus/
- http://raa.ruby-lang.org/project/rdfbus/
- http://www.ohloh.net/p/rdfbus
RDFbus is a Datagraph technology.
RDFbus is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.