A County Kildare teenager has appeared before Naas District Court on an allegation of the rape of the child.
The alleged victim in the case is a child who was aged five and a half at the time.
The 17 year old, who cannot be named for legal reasons and the alleged incident took place almost two years ago.
Sgt Brian Jacob said the alleged assailant was visiting the house at the time with a parent and was left alone with the girl who was playing there.
The alleged assailant was aged 15 at the time.
The case was adjourned until July 9 for the preparation of a book of evidence and Judge Desmond Zaidan indicated that it would ultimately be heard in the Central Criminal Court and he granted free legal aid, including barristers, a junior counsel and a senior counsel.
The defendant was remanded on continuing bail.
Judge Zaidan said he must have no contact with the alleged victim or family or friends.
He also imposed reporting restrictions in the case.
He also said he must keep away from any other State witnesses, having no contact directly or indirectly.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.