In this paper, we proposed the learning resource ontology(LRO) models to formally describe learning content and learning context, respectively. In addition to utilizing the models to formally describe content, we also derived ontological relation between the content and context at semantic level. Furthermore, we have built a semantic similarity algorithm to measure the similarity between ontologies. Based on the similarity measure, the process of LRO retrieval is presented.