function get_composer_data(composer)
{
    $("#selected_composer > *").html('');
    $("#name").html(composer.name);
    $("#stats").html('loading linked data <img src="ajax-loader.gif" alt="loading linked data"/>');
    $.getJSON("lod/dbtune_profile",{"uri": composer.uri}, function(profile)
    {
        console.log(composer, profile);
        if (!profile.success)
        {
            $("#bio").html("error getting linked data: "+profile.error_message);
        }
        else
        {
            if (profile.nationality != null)
            {
                $("#stats").html("<li>nationality: "+profile.nationality+"</li>");
            }
            if (profile.period != null)
            {
                $("#stats").append("<li>period: "+profile.period+"</li>");
            }
            if (profile.dbpedia_uri != null)
            {
                $("#bio").html('getting more linked data... <img src="ajax-loader.gif" alt="loading linked data"/>');
                $.getJSON("lod/dbpedia_profile", {"uri":profile.dbpedia_uri}, function(dbprofile)
                {
                    if (dbprofile.image != null)
                    {
                        $("#image").html('<img src="'+dbprofile.image+'" alt="composer image" width=240 height=200px/>');
                    }
                    if (dbprofile.abstract != null)
                    {
                        $("#bio").html(dbprofile.abstract);
                    }
                });
            }
            if (profile.influenced != null)
            {
                SelectedInfluenced = profile.influenced;
            }
            if (profile.influenced_by != null)
            {
                SelectedInfluencedBy = profile.influenced_by;
            }
        }
    });
}
