code: def get_id(self):
          
          if self.type == 'NAF':
              return self.node.get('id')
          elif self.type == 'KAF':
              return self.node.get('mid')
docs: Returns the term identifier
          @rtype: string
          @return: the term identifier