I just pushed version 0.0.2 of rdf-rdfxml, a Nokogiri-based parser for RDF/XML on top of the RDF.rb gem suite. It is based on the same parser implemented in the RdfContext Gem, but implemented on the RDF.rb infrastructure. Although the RdfContext version passes W3C test suites, this version does not yet. Mostly due to issues with underlying support classes that need to be worked out (URI processing, graph isomorphism and XMLLiteral support).
Thanks to Nick Humfrey for helping get the processing going and for ongoing contributions.
The project is hosted on GitHub (http://github.com/gkellogg/rdf-rdfxml) and RubyGems (http://rubygems.org/gems/rdf-rdfxml).
Basic usage is the same as for other RDF.rb readers:
RDF::RDFXML::Reader.new(data, :base_uri => 'http://example.org/example.rdf') do |reader|
reader.each_statement do |statement|
statement.inspect!
end
end
or
RDF::Graph.load("http://example.org/example.rdf")
Gregg