A Sydney police officer has been charged in relation to his dealings with a convicted rapist who then allegedly went on to sexually assault a seven-year-old girl in a dance studio toilet.

The 31-year-old leading senior constable was charged on Wednesday with four counts of neglecting his duties, following Anthony Sampieri’s alleged 15-minute attack on a girl at Kogarah in November last year.

Anthony Sampieri has been charged with sexually assaulting a seven-year-old girl in a dance studio toilet at Kogarah. Credit:Nine News

Mr Sampieri, 55, had allegedly breached his parole in the lead up to the attack.

The policeman is based at Kogarah police station, in the St George Police Area Command.