Skip to content

Commit

Permalink
Ensure that Literal datatype is a URI, not a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jun 29, 2010
1 parent 7c92e51 commit 5a853dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/rdfxml/reader.rb
Expand Up @@ -354,7 +354,7 @@ def nodeElement(el, ec)

literal_opts = {}
if datatype
literal_opts[:datatype] = datatype
literal_opts[:datatype] = RDF::URI.intern(datatype)
else
literal_opts[:language] = child_ec.language
end
Expand Down

0 comments on commit 5a853dc

Please sign in to comment.