Semantic similarity in heterogeneous ontologies