A Semantic Approach For Building Sentient Spaces