Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

datagraph/rdfbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDFbus: Linked Data Transactions over AMQP

RDFbus is middleware for constructing RDF changesets/transactions and transmitting RDF publish/subscribe payloads over transports such as AMQP, XMPP or Stomp.

Examples

require 'rdfbus'

Creating a transaction for updating an RDF statement

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

Obtaining the JSON representation of a transaction

# 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'}
             #         ]
             #       }
             #     }
             #   }

Executing a transaction against an RDF repository (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)

Executing a transaction against an RDF repository (2)

RDFbus::Transaction.execute(repository) do |tx|
  ...
end

Documentation

RDF Transactions

  • {RDFbus::Transaction}

RDF Transports

  • {RDFbus::Transport}

Related Work

Dependencies

Installation

The recommended installation method is via RubyGems. To install the latest official release from RubyGems, do:

% [sudo] gem install rdfbus

Download

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

Mailing List

Resources

Authors

RDFbus is a Datagraph technology.

License

RDFbus is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

About

[Unmaintained] RDFbus is middleware for transmitting RDF publish/subscribe payloads over AMQP.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages