The Japanese wartime system of sex slavery was a "terrible" violation of human rights, US President Barack Obama said Friday in Seoul.