Concerning the problems including repetitive query, storage and processing in the process of complex event query processing in Internet of Things (IOT), an Event Sharing Mechanism (ESM) was proposed. Firstly, in order to realize the query and detection of complex events, a semantic event definition about IOT and semantic descriptions of event operators were presented. Secondly, research on the IOT ESM was done from the following three aspects: the definition of public subqueries, the design of public internal query structure and the sharing of event resources. Through rewriting the query expression, building the Directed Acyclic Graph (DAG) related to the query expression and using the improved Continuous, one of the parameter contexts, on each node to handle event streams, the sharing of public events' query, storage and processing was implemented. Finally, a Semantics Formal Query-plan Processing Model (SFQPM) based on ESM was also designed, which could process query expressions and predicates automatically, and fulfill the automation of complex event detection and processing. The simulation results show that, compared with the method based on BTree (Binary Tree), the proposed SFQPM has high efficiency and reliability in processing, and can process massive and real-time IOT event streams timely and efficiently. In addition, a case study was given to verify the effectiveness and feasibility of the proposed SFQPM.