- From: Arto Bendiken <arto.bendiken@gmail.com>
- Date: Fri, 2 Apr 2010 11:56:32 +0200
- To: public-rdf-ruby@w3.org
I have now released RDF::Raptor 0.1.0, a plugin for RDF.rb that adds support for parsing/serializing RDF/XML and Turtle data using the Raptor RDF Parser library: http://rdf.rubyforge.org/raptor/ Note that this is emphatically *not* a C binding to the Raptor or Redland libraries, but rather a pure-Ruby wrapper for the 'rapper' command-line utility included with Raptor (http://librdf.org/raptor/). This means a hassle-free installation of the gem itself, with no worrying about library or include file paths or settings, and means that the plugin should also work fine as-is with e.g. JRuby. However, as stated, you do need to have Raptor's command-line tools installed to begin with. I expect many or most on this mailing list already do. If you don't, Raptor is thankfully available conveniently packaged in every major BSD or Linux-based operating system; just look for a "raptor" or "raptor-utils" package. With Mac OS X and MacPorts, the installation is simple if a tad time-consuming: $ sudo port install raptor $ sudo gem install rdf-raptor The installation procedure on Debian or Ubuntu Linux is quick and straightforward: $ sudo aptitude install raptor-utils $ sudo gem install rdf-raptor Once you're all set up, try executing one of the examples shown in the README. I'm supplying one below: require 'rdf/raptor' RDF::Reader.open("http://datagraph.org/jhacker/foaf.rdf") do |reader| reader.each_statement do |statement| puts statement.inspect end end Please report any unexpected problems by replying to this message or by creating an issue at http://github.com/bendiken/rdf-raptor/issues Kudos to Nicholas Humfrey for prompting the creation of this plugin. It will serve quite nicely until such a future time when we have pure-Ruby RDF.rb plugins for RDF/XML and Turtle available. -- Arto Bendiken | http://twitter.com/bendiken
Received on Friday, 2 April 2010 09:57:06 UTC