Knowledge Networks for Pervasive Services