Abstract: In the ubiquitous computing environment, context reasoning is an important issue of context-awareness. It is used to deduce desired or higher-level context and then to provide suitable services automatically. The previous context-reasoning approaches are mainly non-temporal. The reasoning is according to the real-time contexts without time information. However, temporal contexts are very important information for context-awareness. Therefore, a model, called TempCRM (Temporal Context Reasoning Model), based on Resource Description Framework (RDF) and Web Ontology Language (OWL) is proposed in this paper. TempCRM is used for inferring the dangerous level of a smart home. In a home environment, a potential dangerous situation is caused by a series of temporal events. A temporal event is represented as a RDF-based temporal context. A smart home ontology is defined for the terms and relationships used in the temporal context. Then, a set of reasoning rules can be defined for inferring and computing the dangerous level. In the simulation study, a script with dangerous situations is designed to evaluate the dangerous level generated by TempCRM. The result illustrates that TempCRM is useful to alarm the inhabitant and thus prevent the occurrence of an incident from the temporal contexts.