1. A computer implemented method of matching ontologies, the method comprising: for each pair of entities of a first ontology and a second ontology, wherein each pair of entities includes a first entity from a first plurality of entities of the first ontology and a second entity from a second plurality of entities of the second ontology, and wherein the first entity and the second entity of each pair of entities is of a same data type: determining a vector of similarities for the pair of entities; determining a confidence score for the vector of similarities; determining a relation score for each relation type based on the vector of similarities to measure relatedness between the first entity of the pair of entities and the second entity of the pair of entities; and generating a mapping ontology based on the relation type, the relation score, and the confidence score of each pair of entities, wherein a relation type is a relevance relation type defined as: μ rel ⁡ ( s → ) = 1 4 ⁢ s na + 1 2 ⁢ s co + 1 4 ⁢ s st , where s na is a name-based similarity, s co is a containment similarity, and s st is a structural similarity.