CAIRO — Three activists who played leading roles in the uprising against former President Hosni Mubarak were convicted on Sunday of participating in protests and sentenced to three years in prison by an Egyptian court.