lib/json/ld/api.rb in json-ld-0.1.3 vs lib/json/ld/api.rb in json-ld-0.1.4

- old
+ new

@@ -127,11 +127,11 @@ def self.compact(input, context, callback = nil, options = {}) expanded = result = nil # 1) Perform the Expansion Algorithm on the JSON-LD input. # This removes any existing context to allow the given context to be cleanly applied. - expanded = API.expand(input, nil, nil, options) + expanded = API.expand(input, nil, nil, options.merge(:debug => nil)) API.new(expanded, context, options) do debug(".compact") {"expanded input: #{expanded.to_json(JSON_STATE)}"} result = compact(value, nil) @@ -213,12 +213,12 @@ # Expand input to simplify processing expanded_input = API.expand(input) # Initialize input using frame as context API.new(expanded_input, nil, options) do - debug(".frame") {"context from frame: #{context.inspect}"} - debug(".frame") {"expanded frame: #{expanded_frame.to_json(JSON_STATE)}"} - debug(".frame") {"expanded input: #{value.to_json(JSON_STATE)}"} + #debug(".frame") {"context from frame: #{context.inspect}"} + #debug(".frame") {"expanded frame: #{expanded_frame.to_json(JSON_STATE)}"} + #debug(".frame") {"expanded input: #{value.to_json(JSON_STATE)}"} # Get framing subjects from expanded input, replacing Blank Node identifiers as necessary @subjects = Hash.ordered depth {get_framing_subjects(@subjects, value, BlankNodeNamer.new("t"))} debug(".frame") {"subjects: #{@subjects.to_json(JSON_STATE)}"}