The invention relates to a method for apperceiving
context based on a mobile agency, which utilizes mobile agency technology to apperceive the context; context information is obtained, modeled, stored and utilized through the mobile agency; the method has applicability, intelligence and
reusability; the method comprises the following specific steps: a, when a
system is initialized, a mobile agency platform dispatches an executive body agency to an intelligent executive body layer and dispatches an evolution agency to a context modeling layer respectively; b, when a user inquires the context information or customizes a
system, the mobile agency platform dispatches an inquiry agency or a customization agency to a context obtaining layer; c, the inquiry agency or the customization agency accesses corresponding
data source according to the type of the context information; and a
relational database is accessed through a JDBC interface; d, the evolution agency is combined with a reasoning engine, uses ontology reasoning to remove inconsistency of an original context and is mapped to an ontology
library; and e, the executive body agency processes the received data and selects a proper mode to provide service for the user through self-
adaptation, self-organization and other strategies.