How do opera, cantata, and oratorio differ? How are they related?

How do opera, cantata, and oratorio differ? How are they related?