Changeset [75800ba7121d847c94f7aa318dc3d7f949794b48] by Piers Cawley
Revision 75800ba7121d847c94f7aa318dc3d7f949794b48,
committed 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...
5 changed files
-
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