case 'RT':
                     $RTterm_id = resolveTerm_id($objectTerm, "1");
                     ALTArelacionXId($term_id, $RTterm_id, "2");
                     ALTArelacionXId($RTterm_id, $term_id, "2");
                     break;
                 case 'NT':
                     $NTterm_id = resolveTerm_id($objectTerm, "1");
                     ALTArelacionXId($term_id, $NTterm_id, "3");
                     break;
                 case 'UF':
                     $UFterm_id = resolveTerm_id($objectTerm);
                     ALTArelacionXId($UFterm_id, $term_id, "4");
                     break;
                 case 'USE':
                     $UFterm_id = resolveTerm_id($objectTerm, "1");
                     ALTArelacionXId($term_id, $UFterm_id, "4");
                     break;
                 default:
                     break;
             }
             $past_label = $label;
         }
         //fin del if mida algo el termino
         //}	//fin del if in_array por tipo de relacions
     }
     // fin del if es un array
 }
 // fin del arbribr archo
 fclose($fd);
 //recreate index
 $sql = SQLreCreateTermIndex();
 function addTermAssociations($skos)
 {
     foreach ($skos->xpath->query('skos:Concept[skos:related]') as $concept) {
         $subjectUri = $concept->getAttributeNodeNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'about');
         /*
           $term_id = fetchTermIdxNote($subjectUri->nodeValue);
         */
         $ARRAYterm = ARRAYCode($subjectUri->nodeValue);
         $term_id = $ARRAYterm[tema_id];
         foreach ($skos->xpath->query('./skos:related', $concept) as $related) {
             $objectUri = $related->getAttributeNodeNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'resource');
             /*
             	$RT_term_id = fetchTermIdxNote($objectUri->nodeValue);
             */
             $ARRAYterm = ARRAYCode($objectUri->nodeValue);
             $RT_term_id = $ARRAYterm[tema_id];
             if ($term_id && $RT_term_id) {
                 //echo $subjectUri->nodeValue.':'.$uri->nodeValue.'<br>';
                 ALTArelacionXId($term_id, $RT_term_id, '2');
             }
         }
     }
     return $this;
 }