Updated RDF.rb and related gems. End of life for Ruby 1.8.7 support

I have pushed version 1.0.5 and 1.1.0.p1 of RDF.rb [1] along with updates to many related gems. Other than for critical bug fixes, this will be the last release of the 1.0.x versions; the next planned release will be for 1.1.0, which will also drop support for Ruby versions less than 1.9.2.

Important changes in 1.0.5 (since 1.0.3):

487ba6408329c5a951dfa009325c349ceb9088d5 - cleans up the use of RDF::Value and RDF::Term. Most classes inherit from RDF::Value which implements many useful accessor methods. RDF::Term is used only for things that can be in a Statement.

58f757fa177ec176d2d86c877871d7e41e2dc805 - Adds RDF::IRI as an alias for RDF::URI

e0ccf20aff6e50af5787a6c1edefb642a48ebf8d - Fix problem introduced with finding reader mime-types and using for remote fetch of resource as Accept header.

3ff7ee9650f36ef5f86766b116c831419c8a680e - Adds Enumerable#to_{writer} and Mutable#from_{reader} to allow for easy serialization/deserialization for loaded formats.

85e19ecae20aa737394cedd302b581e900b10dcc - Added Term#to_base, with implementations for other terms to provide a reasonable N-Triples format for terms; this improves Statement#to_s.

6984baea677d4b9d6645b9286bafe7a1b1bb8bee - N-Triples passes W3C conformance test suite after improving statement pattern matching.

acbf5e8c75fc637dcf97ef414217e82c72b544ef - Statement#valid? now requires all elements to also be valid; as relative URIs are not considered valid this causes some failures.

86ba44d965fac24f985ef8d753cd24159cec14d0 - In RDF::Writer.dump/buffer/open: Set external_encoding based on :encoding option if it is not otherwise set. Also, if no :encoding option is given, but the IO/StringIO file has an external_encoding, use that as the default for output encoding. This relates to issue #111

db491e3ac083e6da04a0c5c64f87cb951dbb41af - Statement#constant? instead of Statment#valid? This is a reasonable substitute for emitting statements that might have relative IRIs.

Important changes in 1.1.0.p1:

bb63255628e60e41229558f896c55d54e4c1ecd9 - Minimum Ruby version no 1.9.2

cac2cec6a32b8d1e77023beb8335e4d04a40380e - Uses native implementation of URI, no longer dependent on Addressable::URI. This results in a substantial performance improvement.

a1b11905c599507aa6430292cb79620036d6cb99 - Remove unused Literal::String and Literal::XML. Literal::String is implicitly defined in Literal. (see rdf-xsd gem for complete list of literal datatypes) 

Gregg Kellogg
gregg@greggkellogg.net

[1] https://rubygems.org/gems/rdf

Received on Sunday, 14 April 2013 02:19:38 UTC