The hot core-ultracompact H II connection in G10.47+0.03