A framework for content-based image retrieval fully exploiting the semantics of annotation