Changeset [75800ba7121d847c94f7aa318dc3d7f949794b48] by Piers Cawley

August 18th, 2008 @ 12:00 AM

Got rid of the TypedLiteral class, Literal::Language is now a very simple subclass of Literal::Encoding. Typed literals are now made with Literal.typed(content, encoding), when you know the encoding, or Literal.build_from(object), where you need to infer the encoding.

Untyped literals are built with Literal.untyped(content[, lang]) http://github.com/tommorris/rena...

Committed by Piers Cawley

  • M lib/rena/literal.rb
  • M lib/rena/rdfxmlparser.rb
  • M lib/rena/triple.rb
  • M spec/literal_spec.rb
  • M spec/triple_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RDF library written in Ruby.