The 39-year-old victim was left "seriously traumatised" after an attacker entered her house at around 5am on Saturday.
It is alleged she was threatened and then raped during the alleged incident in her house in Livingston, West Lothian.
Today, John Robert Alexander McKeown, from Livingston, appeared at the town's Sheriff Court.
He was charged with abduction, assault and rape, assault and attempted murder and breach of the peace, the Crown Office said.
The 22-year-old was remanded in custody and there was no plea or declaration.