The Nagasaki District Court sentenced a German man to six years in prison Wednesday for an attempted murder committed when he was traveling in the southwestern city last year.