Skip to content

Commit 80a3778

Browse files
committed
A few more cases to not order when expanding.
1 parent e497b5d commit 80a3778

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/json/ld/api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ def self.frame(input, frame, expanded: false, **options)
365365
end
366366

367367
# Expand input to simplify processing
368-
expanded_input = expanded ? input : API.expand(input, options) do |res, base_iri|
368+
expanded_input = expanded ? input : API.expand(input, options.merge(ordered: false)) do |res, base_iri|
369369
options[:base] ||= base_iri if options[:compactToRelative]
370370
res
371371
end
372372

373373
# Expand frame to simplify processing
374-
expanded_frame = API.expand(frame, framing: true, **options)
374+
expanded_frame = API.expand(frame, options.merge(framing: true, ordered: false))
375375

376376
# Initialize input using frame as context
377377
API.new(expanded_input, frame['@context'], no_default_base: true, **options) do
@@ -452,7 +452,7 @@ def self.toRdf(input, expanded: false, **options, &block)
452452
end
453453

454454
# Expand input to simplify processing
455-
expanded_input = expanded ? input : API.expand(input, ordered: false, **options)
455+
expanded_input = expanded ? input : API.expand(input, options.merge(ordered: false))
456456

457457
API.new(expanded_input, nil, options) do
458458
# 1) Perform the Expansion Algorithm on the JSON-LD input.

0 commit comments

Comments
 (0)