In the food processor combine flour, cold butter, sugar and baking powder, pulse until the mixture resembles fine bread crumbs, add the egg and pulse until just combined. (This could also be easily done in a regular bowl with a pastry blender.)
Take the pastry out of the food processor, it will be soft. Pinch off 1/3 of the pastry, wrap it in a plastic wrap and put in the freezer. Wrap the rest in the plastic wrap as well and put this portion in the fridge for 30 minutes.
Cut your apricots in half and pit them. Set aside.
Combine farmer's cheese or cream cheese, eggs, sugar, semolina and vanilla bean seeds in a large bowl using a hand mixer until smooth or a food processor if you want your farmer's cheese to be less grainy. ( I processed mine in the food processor for a silky consistency.)
When the pastry is finished chilling take it out of the fridge and roll it out to fit an 9" springform pan lining the bottom and the sides all the way to the top. Don't worry if your pastry tears, just take the overhanging pieces and patch up the holes! When your springform pan is lined all the way put it back in the fridge for 20 minutes.
Then take it out of the fridge and fill it with the cheese filling and top with apricots.
Grate the the frozen part of the pastry with a vegetable grater and toss your crumbs with ground almonds (optional).
Trim off your overhanging sides and press them gently in to blend with the crumb topping.
Put it in the preheated oven at 350F/180C and bake for 50 minutes or until golden.
Cool it for an hour until cool to the touch and then chill it in the refrigerator for at least 2 more hours to ensure the cheese filling in cooled completely.