An efficient indexing and query mechanism for ubiquitous IoT services. (2015)