class ActiveFedora::RDFDatastream
def deserialize(data=nil)
def deserialize(data=nil) return ::RDF::Graph.new if new_record? && data.nil? data ||= remote_content # Because datastream_content can return nil, we should check that here. return ::RDF::Graph.new if data.nil? data.force_encoding('utf-8') ::RDF::Graph.new << ::RDF::Reader.for(serialization_format).new(data) end