I. Introduction
Nowadays, the use of pervasive environments for many different purposes is becoming more and more frequent. Pervasive environments offer to software applications the possibility to interact with the reality in order to perceive the information surrounding the users and to adapt the environment itself, or to deliver context aware services that improve user's satisfaction. Location services can be used to address both common and critical activities of everyday life[l], Customization of information using semantic techniques, by an ontological representation of the user and of the application domain, can simplify the searches, and rationalize the results with regard to users' profile. The success of pervasive environments and mobile computing is closely linked to the availability of mobile devices and applications for end users. In fact the technologies used to implement these services must be adequate to handle activities increasingly distributed both logically and physically, and to handle the pervasiveness and ubiquity of the environment in which users operate[2]. These services are able to respond in a rational way in many different situations choosing the actions with the best expected result, so making environment not just more connected and efficient, but smarter. This leads, as a result, the improvement of the quality of life. In fact, the fuel for the development of a new technology is represented by the improvement of working conditions, quality of life, leisure you get using those technologies. However, although the availability of applications to play in mobility constitutes a crucial factor in many sector, the use of those applications have greater influence in some fields of application than others. Marketing is one among the most relevant application fields. Based on research conducted among 2,000 smartphone owners in Europe, a report reveals what mobile consumers want and what they do not when they interact with businesses and brands on their mobiles. About half of European smartphone users would prefer to do business with mobile friendly brands, and four out of 10 active smartphone users have used mobile to interact with businesses. The inescapable conclusion is that the rising usage of mobiles as the primary route for consumer interaction with brands, and its importance as a catalyst for content sharing and recommendation, are still at odds with the level of focus and budget currently afforded to mobile in the market field. Additional advantages in this field brought by the technology are the traceability, which will help the consumers to verify the origins of the products. Besides, in case of a food related disease, the traceability of the purchased food will enable faster detection of the origin of the infection and thus contain its impact better and faster. A QRCode or an electronic tag can be read by the device and may carry out information related to drugs, making it easier for the customer to be acquainted with adverse effects and optimal dosage. Besides, in case of an accident from drug abuse or misuse it will be possible to quickly identify the taken drug by asking the smart device, which may also inform about the right antidote and dosage to enable the emergency treatment to react faster and better, and thereby saving lives. Here we present a semantic framework that provides the technology for the development of intelligent, context aware services and their delivery in pervasive environments. Besides semantic-based techniques have been used to dynamically and efficiently data processing, retrieval and delivery. In order to provide a pervasive environment with advanced smart capabilities services we integrated those technologies that enable objects of the real world to become part of the Internet of Things. Section II introduces related work. The problem statement is described in Section III. Than we provide details about the technological implementation and finally we come to conclusion.