Drain the chickpeas and put in a large saucepan. Cover with fresh cold water and bring to a boil, using a slotted spoon to skim off any foam that rises to the surface. Reduce the heat and simmer, uncovered, for 1-1½ hours, or until tender, adding more water if necessary.
Drain the chickpeas, reserving the cooking water. Season the chickpeas with salt and pepper. Put two-thirds in a food processor or blender with some of the reserved cooking water and process until smooth, adding more of the cooking water if necessary to give a thinner consistency. Return to the saucepan.
Heat the oil in a medium saucepan, then add the onion and garlic and cook over medium heat, stirring frequently, for 3-4 minutes, or until the onion has softened. Add the Swiss chard and rosemary sprigs and cook frequently, for 3-4 minutes. Add the canned tomatoes and cook for an additional 5 minutes, or until the tomatoes have broken down to an almost smooth paste.
Add the Swiss chard and herb mixture to the chickpea puree and simmer for 2-3 minutes. Taste and add the seasoning if necessary.
Serve in warmed bowls with warm rice or toasted bread on the side.
