Complex sentence: Arguably, Joseph I had been the owner of the mansion until his death in 1813 when it was inherited by his widow and her son Carl Keglevich.
Split into simpler sentences: Arguably, Joseph I. had been the owner of the palace until his death in 1813. After Joseph I. 's death, the palace was inherited by widow and her son Carl Keglevich.