近年來監控系統導入 context-awareness 技術,描述受監控的環境,使系統可瞭解環境中的資訊,並提供有效的危險偵測。隨著系統日漸複雜,也面臨 maintainability 與 flexibility 的問題。本文提出以 web ontology language (OWL) 與 semantic web rule language (SWRL) 為基礎的監控系統,使用 OWL 描述環境資訊,並配合 Protégé 圖形化工具方便 user 維護,改進系統的 maintainability;使用 SWRL 描述環境中的危險狀況,降低 rules 與 rule engine 之間的 coupling,提昇系統選用 rule engine的 flexibility。 Recently, surveillance systems have implemented context-awareness techniques to monitor context, and thus to provide efficient danger detection. As these systems get more and more complicated, they face maintainability and flexibility issues. Therefore, we propose a web ontology language (OWL) and semantic web rule language (SWRL) based surveillance system. By using OWL to describe context, user can use the Protégé graphical tool to maintain it. This improves system maintainability. Further, by using SWRL to describe rules of dangerous situation, the coupling between rules and rule engine is greatly reduced. This improves system flexibility in choosing alternative rule engines.