Research Article
A Configurable Semantic-Based Transformation Method towards Conceptual Models
Algorithm 2
The algorithm of detecting iterative semantic relations.
/∗Algorithm 2 detect iterative semantic relations∗/ | | Function detecting iterative Semantic Relation (String A, String B){ | | int temp1, temp2, SR_V = 0; | | string [] inter Strings = Concept Net (A); | | for (int i = 0; i < inter Strings.size (); i++){ | | for(j = 0; j < Semantic Relation_Values.size (); j++){ | | if (Semantic Relation_Value.get (j).get Relation (inter Strings.get (i), B)){ | | temp1 = Semantic Relation_Value.get (j).get Value (); | | temp2 = Semantic Relation_Value.get (i).get Value(); | | if (temp1∗temp2> SR_V) | | SR_V = temp1∗temp2; | | } | | } | | } return SR_V; | | } |
|