lib/sxp/reader/sparql.rb in sxp-0.0.8 vs lib/sxp/reader/sparql.rb in sxp-0.0.9
- old
+ new
@@ -57,10 +57,10 @@
##
# @return [Object]
def read_atom
case buffer = read_literal
when '.' then buffer.to_sym
- when DECIMAL then RDF::Literal(Float(buffer))
+ when DECIMAL then RDF::Literal(Float(buffer + '0'))
when INTEGER then RDF::Literal(Integer(buffer))
when BNODE_ID then RDF::Node($1)
when BNODE_NEW then RDF::Node.new
when VAR_ID then RDF::Query::Variable.new($1)
when VAR_GEN then RDF::Query::Variable.new("?#{$1}") # FIXME?