Matching pairs between Ontology and various variables

Does someone have experience in matching various variables each with label and comment to a ontology with also many classes with labels and comments?

Im not sure what type of task this could be. Is it sentence similarity between comment a und comment b? or is it a type of NER where every class of the ontology is a category.

And also im thinking about some type of data augmentation because i already have a ontology which does not change (the variables do change). But not really sure how to do this.