An integrated framework for semantic annotation and adaptation