Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Notation-3/Turtle Parser and Serializer module for the RDF gem.
Ruby
branch: master

This branch is 1 commit ahead, 260 commits behind ruby-rdf:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rdf
script
spec
.gitignore
.yardopts
AUTHORS
History.txt
README.rdoc
Rakefile
VERSION
example.rb
rdf-n3.gemspec

README.rdoc

RDF::N3 reader/writer

Notation-3 (n3-rdf) and Turtle reader/writer for RDF.rb.

DESCRIPTION:

RDF::N3 is an Notation-3 (n3-rdf) parser for Ruby using the RDF.rb library suite.

FEATURES:

RDF::N3 parses Notation-3, Turtle and N-Triples into statements or triples. It also serializes to Turtle.

  • Fully compliant N3-rdf parser (N3-rdf level)

  • Also parses Turtle and N-Triples

  • Turtle serializer

Install with 'gem install rdf-n3'

Based on original parser by Patrick Sinclair (metade)

Usage:

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

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

Dependencies

* [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.2.0)
* [Treetop](http://rubygems.org/gems/treetop) (>= 1.4.0)

Resources:

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-n3

  • github.com/gkellogg/rdf-n3

  • gkellogg.lighthouseapp.com for bug reports

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

Something went wrong with that request. Please try again.