def row_to_concept(row):
    concept = {'uri': row['c']['value'],
               'pref': row['pref']['value'],
               'ysapref': row['ysapref']['value'],
               'allarspref': row['allarspref']['value']}
    if 'alts' in row:
        concept['alts'] = row['alts']['value']
    return concept