Intelligent context retrieval and management for services in the Internet of Things. (30th July 2013)