W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > June 2010

RDF.rb 0.2.0 released

From: Arto Bendiken <arto.bendiken@gmail.com>
Date: Thu, 17 Jun 2010 22:16:14 +0200
Message-ID: <AANLkTim4Zst72jCCZhJfDwKivuNRiBFGkwFYvvQ4ENvl@mail.gmail.com>
To: public-rdf-ruby@w3.org
We have today released version 0.2.0 of RDF.rb:


This is a semi-major release that includes many improvements and bug fixes,
and it is recommended for all users. Upgrading via RubyGems is as simple as:

  $ [sudo] gem install rdf

However, note that this release also includes some important API changes
that may or may not necessitate updates to existing RDF.rb plugins, so if
you rely on particular RDF.rb plugins you may wish to wait a day or two
for new releases of the gems in question before upgrading.

(We try and keep the API fully backwards compatible for all point releases,
with any incompatible API changes introduced only in semi-major releases
such as this one. That wasn't always the case with the 0.1.x branch which
experienced rapid API evolution, but will be more so from 0.2.x onwards.)

Notable changes in 0.2.0:

* Improvements and bug fixes to the bundled N-Triples parser and serializer,
  in particular fixes to correctly handle the escaping of Unicode characters
  (kudos to Ross Singer).

* Improvements and bug fixes in the semantics and handling of named graphs
  (kudos to John Fieber).

* The possibility for using symbols as short-hand for blank node identifiers
  when constructing statements or querying with triple patterns.

* The ability to insert graphs and enumerables into serializers or
  repositories with a single #<< operation instead of having to add all
  contained statements one-by-one.

* Significant all-around performance improvements (kudos in particular to
  Ross Singer and John Fieber for pinpointing some of the areas that we've
  improved in this release).

* The introduction of Ruby 1.8.7+ idioms while still retaining compatibility
  all the way back to Ruby 1.8.1+ with the help of the Backports gem:


* Additional built-in vocabulary classes helpful for FOAF+SSL and geospatial
  use cases (kudos to Hellekin O. Wolf).

New vocabulary classes added in 0.2.0:

* RDF::CERT (W3 Authentication Certificate)
* RDF::RSA  (W3 RSA Keys)
* RDF::GEO  (WGS84 Geo Positioning)

New classes added in 0.2.0:

* RDF::Util::Cache::ObjectSpaceCache
* RDF::Util::Cache::WeakRefCache

New modules added in 0.2.0:

* RDF::Countable
* RDF::Util::Aliasing::LateBound

New class and instance methods added in 0.2.0:

* RDF::Repository#options
* RDF::URI.intern, #urn?, #url?
* RDF::Node.intern, #to_sym
* RDF::Countable#empty?, #count
* RDF::Enumerable#dump, #each_graph, #enum_graph, #to_set
* RDF::Queryable#query_pattern
* RDF::Writable#<<, #insert
* RDF::NTriples::Writer.escape

Some important API changes affecting storage adapter plugins compatible
with RDF::Repository and/or the RDF::Queryable & RDF::Enumerable interfaces:

* Factored out the RDF::Enumerable#count and #empty? methods into an
  RDF::Countable mixin that can be mixed into enumerators:


* Refactored the RDF::Queryable#query API for better extensibility and
  performance, with it also now returning an enumerator instead of an array:


* Changed all RDF::Enumerable methods to return countable enumerators
  instead of arrays, facilitating the use of large RDF datasets:


* Factored out the append-only bits of RDF::Mutable into RDF::Writable:


Some important API changes affecting parser/serializer plugins compatible
with RDF::Format, RDF::Reader and RDF::Writer:

* Implemented a new RDF::URI.intern class method. Starting from RDF.rb
  0.2.0, all RDF::Reader implementations should prefer using RDF::URI.intern
  over RDF::URI.new when unserializing and constructing predicate URIs:


* Mixed in RDF::Writable into the RDF::Writer base class and RDF::Readable
  into the RDF::Reader base class, simplifying serializer implementation:


* Extended RDF::Format content type handling to support optional aliases:


Other important API changes to note:

* Changed the RDF::Value and RDF::Resource base classes into module mixins:


* Changed all instance method aliases in RDF.rb's mixins (e.g. RDF::Enumerable,
  RDF::Queryable, etc) to be late-bound rather than early-bound, meaning
  that plugins no longer need to redefine or override them:


* Refactored RDF::Graph to be based on RDF::Queryable and RDF::Mutable:


The full Git commit history since 0.1.10 can be viewed at:


The Git source code repository is hosted on GitHub:


You can obtain a local working copy of the source code as follows:

  $ git clone git://github.com/bendiken/rdf.git

Arto Bendiken | @bendiken
Received on Thursday, 17 June 2010 20:16:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:14 UTC