Handle initializing with an Ldp::Resource or a hash of attributes