Mix the potatoes, greens, semolina, sauces, pepper and salt together, slice and fry the onion in the butter, and add to the mixture with half the beaten egg, and stir well again. A few fine bread crumbs may be added to give consistency if required. Roll the pastry out rather thin, cut into four-inch squares. Place about half a tablespoon of the mixture in the centre of each square, moisten the edges, and fold neatly over. Brush over the tops with the remainder of the egg, and fry in boiling oil until they turn a light brown.