@@ -129,7 +129,7 @@ def self.compact(input, context, callback = nil, options = {})
129
129
130
130
# 1) Perform the Expansion Algorithm on the JSON-LD input.
131
131
# This removes any existing context to allow the given context to be cleanly applied.
132
- expanded = API . expand ( input , nil , nil , options )
132
+ expanded = API . expand ( input , nil , nil , options . merge ( :debug => nil ) )
133
133
134
134
API . new ( expanded , context , options ) do
135
135
debug ( ".compact" ) { "expanded input: #{ expanded . to_json ( JSON_STATE ) } " }
@@ -215,9 +215,9 @@ def self.frame(input, frame, callback = nil, options = {})
215
215
216
216
# Initialize input using frame as context
217
217
API . new ( expanded_input , nil , options ) do
218
- debug ( ".frame" ) { "context from frame: #{ context . inspect } " }
219
- debug ( ".frame" ) { "expanded frame: #{ expanded_frame . to_json ( JSON_STATE ) } " }
220
- debug ( ".frame" ) { "expanded input: #{ value . to_json ( JSON_STATE ) } " }
218
+ # debug(".frame") {"context from frame: #{context.inspect}"}
219
+ # debug(".frame") {"expanded frame: #{expanded_frame.to_json(JSON_STATE)}"}
220
+ # debug(".frame") {"expanded input: #{value.to_json(JSON_STATE)}"}
221
221
222
222
# Get framing subjects from expanded input, replacing Blank Node identifiers as necessary
223
223
@subjects = Hash . ordered
0 commit comments