A Framework for Knowledge-Based Complex Event Processing