Peel onions and apples, cut into small cubes. Put in a pan together with blackberries, raisins, vinegar and spices, bring to a boil and cook 10 minutes over low heat. A little cool. Sprinkle with sugar, gelling. Again bring to the boil and cook for 3 minutes. Hot pour into banks and tighten.