Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

RDF/XML Parser and Serializer module for the RDF gem.

branch: master
README.rdoc

RDF::RDFXML reader/writer

RDF/XML parser for RDF.rb.

DESCRIPTION:

RDF::RDFXML is an RDF/XML reader/writer for Ruby using the RDF.rb library suite.

FEATURES:

RDF::RDFXML parses RDF/XML into statements or triples.

  • Fully compliant RDF/XML parser.

Install with 'gem install rdf-rdfxml'

Usage:

Instantiate a parser and parse source, specifying type and base-URL

RDF::RDFXML::Reader.open("etc/foaf.xml") do |reader|
  reader.each_statement do |statement|
    puts statement.inspect
  end
end

Dependencies

* [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.2.0)
* [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.3.3)

TODO

  • Add support for LibXML and REXML bindings, and use the best available

  • Consider a SAX-based parser for improved performance

  • Add generic RDF/XML Writer

Resources:

AUTHOR:

  • Gregg Kellogg <gregg@kellogg-assoc.com>

CONTRIBUTORS:

  • Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>

LICENSE:

(The MIT License)

Copyright © 2009-2010 Gregg Kellogg

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FEEDBACK

  • gregg@kellogg-assoc.com

  • rubygems.org/rdf-rdfxml

  • github.com/gkellogg/rdf-rdfxml

  • gkellogg.lighthouseapp.com for bug reports

  • public-rdf-ruby mailing list on w3.org

Something went wrong with that request. Please try again.