Pervasive computing paradigm's goal is to visualize "an ambient smart world" via integration of devices into the users in their environment intelligently. Specifically, context aware computing is emerging as one of trails to achieve this paradigm in which services are seamlessly available at right time, right place and with right situation. This paper presents SOIM framework, which facilitates users to publish, annotate and retrieve service queries that are published to cloud. SOIM framework is built on semantic web technologies in support of query action retrieval automatically on low-end mobile devices. A generic ontology is developed which defines a number of keywords, and properties based on semantic reasoning.