Learning Answer Set Programming Rules For Ethical Machines