An ontological representation of documents and queries for information retrieval systems