I met the girl called/named Mary yesterday.
I met the girl whose name was Mary yesterday.
写了两句,你自己选择咯.反正都对的