Police officer appears in court for alleged rape of detained woman