Ricky Martin will appear virtually in court Thursday to adamantly deny claims by his 21-year-old nephew they had a sexual relationship ... TMZ has learned. Sources with direct knowledge tell us ... Ricky will appear Thursday before a judge in…