Skip to content

Commit 9e413b2

Browse files
committed
Use RDF::URI instead of RDF::URI.new to avoid automatically turning URIs into hashes during parse.
1 parent 768ebfb commit 9e413b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json/ld/context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def uri(value)
12831283
#log_debug "uri(bnode)#{value}: #{$1}"
12841284
bnode(namer.get_sym($1))
12851285
else
1286-
value = RDF::URI.new(value)
1286+
value = RDF::URI(value)
12871287
value.validate! if @options[:validate]
12881288
value.canonicalize! if @options[:canonicalize]
12891289
value = RDF::URI.intern(value) if @options[:intern]

0 commit comments

Comments
 (0)