Video annotation and retrieval using ontologies and rule learning