In this paper, context awareness is exploited by defining semantic relations among sensor nodes. Data is routed in a multi-hop network after the establishment of semantic based communication links between sensors. Minimizing the energy consumption is a critical issue in resource constrained sensor networks. Context awareness introduces a new level of intelligence that can be exploited in order to improve the efficiency of communication networks. The semantic routing proposed here is achieved in a completely distributed fashion. Distributed routing has been found to be effective for achieving scalable information dissemination in publish/subscribe communication systems. In this paper a novel method is proposed for designing sensor network ontology and for routing information through the network by using a distributed minimum semantic spanning tree approach. The results demonstrate that it is possible to take advantage of semantics to reduce network load in terms of data dissemination.