This research project presents an ontological approach to emotion analysis, for software development teams, especially for open-source projects which are usually geographically dispersed. Emotional state of team members affects the performance and outcomes of the team processes. Therefore, emotion analysis becomes an important area for investigation. In this study an analyzer was developed using emotion ontology, which performed analysis on emails taken from mailing lists of Apache Software Foundation projects. The results indicate that software developers do express emotions in their discussions. Thus, the emotion analysis can be used to study the emotional state of teams, and hence, can act as an aid in team facilitation.