Information and knowledge sharing in a distributed system: application to environmental monitoring system