var link = thisUrlParams.link; prefixes = queryManager['prefixes']['all']; queryURL = prefixes + (queryManager['querySchedaOggetto']['queryInfo']).replace('{URI}', link); console.log(queryURL); doJsonQuery(queryURL).done(function(data) { handle_objectData(data); }); queryINF = prefixes + (queryManager['querySchedaOggetto']['queryContent']).replace('{URI}', link); doJsonQuery(queryINF).done(function(data) { handle_objectInfo(data); }); queryGT = prefixes + (queryManager['querySchedaOggetto']['queryContrassegni']).replace('{URI}', link); doJsonQuery(queryGT).done(function(data) { handle_contrassegni(data); }); queryOVI = prefixes + (queryManager['querySchedaOggetto']['queryOviLetter']).replace('{URI}', link); doJsonQuery(queryOVI).done(function(data) { handle_oviLetter(data); }); queryPERS = prefixes + (queryManager['querySchedaOggetto']['queryPersone']).replace('{URI}', link); doJsonQuery(queryPERS).done(function(data) { handle_citedPeople(data); }); queryLG = prefixes + (queryManager['querySchedaOggetto']['queryLuoghiGT']).replace('{URI}', link); doJsonQuery(queryLG).done(function(data) { handle_luoghiDocumento(data); }); queryTR = prefixes + (queryManager['querySchedaOggetto']['queryTree']).replace('{URI}', link); doJsonQuery(queryTR).done(function(data) { handle_treeview(data, link); }); function handle_objectData(json) { console.log(json); $.each( json['results']['bindings'], function (index, value) { var graph = value['graph']['value']; var label = value['label']['value']; var uri = value['uri']['value']; var siglaRegistro = ""; var identifier = ""; var dimensions = ""; var consistence = ""; var materials = ""; var description = ""; var button_ext = ""; var button_owner = ""; var current_owner = ""; var uri_owner = ""; var dates = ""; var uri_composed = ""; var composed = ""; var button_doc = ""; var treeList = ""; var dataset = get_graph_name(graph); if (value.hasOwnProperty('id')) { $("#ID").css("display", "flex"); identifier = value['id']['value']; } if (value.hasOwnProperty('dimension')) { $("#dimensione").css("display", "flex"); dimensions = value['dimensions']['value']; } if (value.hasOwnProperty('consistency')) { $("#consistenza").css("display", "flex"); consistence = value['consistency']['value']; } if (value.hasOwnProperty('sigla_registro')) { $("#IDreg").css("display", "flex"); siglaRegistro = value['sigla_registro']['value']; } if (value.hasOwnProperty('condition')) { $("#STCC").css("display", "flex"); condition = value['condition']['value']; } if (value.hasOwnProperty('material')) { $("#materia").css("display", "flex"); materials = value['material']['value']; } if (value.hasOwnProperty('uri_owner')) { $("#current_owner").css("display", "flex"); current_owner = value['owner']['value']; uri_owner = value['uri_owner']['value']; } if (value.hasOwnProperty('time_span')) { if (value['time_span']['value'] != ""){ $("#time_span_object").css("display", "flex"); dates = value['time_span']['value']; } } if (value.hasOwnProperty('note')) { $("#notes").css("display", "flex"); description = value['note']['value']; } if (value.hasOwnProperty('uri_document')) { uri_composed = value['uri_document']['value']; } if (value.hasOwnProperty('document')) { //$("#composed").css("display", "flex"); composed = value['document']['value']; } if (identifier != "") { button_ext = '' + identifier + ''; } if (uri_composed != "") { /*button_doc = ''; */ treeList = '
  • ' + '' + composed + '