bendiken / rdfbus
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (2)
- Graphs
-
Branch:
master
rdfbus /
| name | age | message | |
|---|---|---|---|
| |
.gemspec | Mon Feb 08 14:04:53 -0800 2010 | |
| |
.gitignore | Wed Dec 23 16:43:11 -0800 2009 | |
| |
.yardopts | Mon Feb 08 19:00:35 -0800 2010 | |
| |
AUTHORS | Sun Feb 07 18:29:17 -0800 2010 | |
| |
README | Wed Dec 23 16:39:18 -0800 2009 | |
| |
README.md | Mon Feb 08 19:08:04 -0800 2010 | |
| |
Rakefile | Wed Dec 23 16:31:19 -0800 2009 | |
| |
UNLICENSE | Wed Dec 23 16:39:18 -0800 2009 | |
| |
VERSION | Mon Feb 08 21:25:31 -0800 2010 | |
| |
bin/ | Wed Dec 23 19:49:09 -0800 2009 | |
| |
doc/ | Wed Dec 23 16:43:11 -0800 2009 | |
| |
lib/ | Mon Feb 08 21:25:31 -0800 2010 | |
| |
spec/ | Sun Feb 07 18:30:51 -0800 2010 |
README.md
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}
Dependencies
Installation
The recommended installation method is via RubyGems. To install the latest official release from Gemcutter, do:
% [sudo] gem install rdfbus
Download
To get a local working copy of the development repository, do:
% git clone git://github.com/bendiken/rdfbus.git
Alternatively, you can download the latest development version as a tarball as follows:
% wget http://github.com/bendiken/rdfbus/tarball/master
Mailing List
Resources
- http://rdfbus.rubyforge.org/
- http://github.com/bendiken/rdfbus
- http://gemcutter.org/gems/rdfbus
- http://rubyforge.org/projects/rdfbus/
- http://raa.ruby-lang.org/project/rdfbus/
- http://www.ohloh.net/p/rdfbus
Author
License
RDFbus is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.
