|
@@ -156,70 +156,70 @@ function rewrite_graph(graph) {
|
|
|
|
|
|
var graph_name = ""
|
|
|
|
|
|
- if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/datini") {
|
|
|
+ if (graph == "http://147.213.76.182:8890/aspo/datini") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Datini";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/ospedale") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/ospedale") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Ospedale Misericordia e Dolce";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/marcovaldi") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/marcovaldi") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Marcolvaldi";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/gettatelli") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/gettatelli") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Ospedale Misericordia e Dolce";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/actors") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/actors") {
|
|
|
graph_name = "Archivio di Stato di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/martini") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/martini") {
|
|
|
graph_name = "Museo di Palazzo Pretorio di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/ospedale") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/ospedale") {
|
|
|
graph_name = "Museo di Palazzo Pretorio di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/datini") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/datini") {
|
|
|
graph_name = "Museo di Palazzo Pretorio di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/authors") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/authors") {
|
|
|
graph_name = "Museo di Palazzo Pretorio di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/ovi/datini") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/ovi/datini") {
|
|
|
graph_name = "Opera del Vocabolario Italiano";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/ovi/datini/trascr") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/ovi/datini/trascr") {
|
|
|
graph_name = "Opera del Vocabolario Italiano";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/places") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/places") {
|
|
|
graph_name = "Luoghi";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/places") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/places") {
|
|
|
graph_name = "Museo di Palazzo Pretorio di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/label/toponimi") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/label/toponimi") {
|
|
|
graph_name = "Toponimi Archivio di Stato di Prato";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/onomastica") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/onomastica") {
|
|
|
graph_name = "Archivio di Stato di Prato - Onomatica Datini";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/gettatelli/newdataset") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/gettatelli/newdataset") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Ospedale Misericordia e Dolce";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/onomastica/gruppi") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/onomastica/gruppi") {
|
|
|
graph_name = "Archivio di Stato di Prato - Onomastica Datini";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/autori") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/autori") {
|
|
|
graph_name = "Museo di Palazzo Pretorio";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/aspo/onomastica/datini") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/aspo/onomastica/datini") {
|
|
|
graph_name = "Archivio di Stato di Prato - Onomastica Datini";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/onomastica/ospedale") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/onomastica/ospedale") {
|
|
|
graph_name = "Archivio di Stato di Prato - Fondo Ospedale Misericordia e Dolce";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/mpp/ulan/viaf") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/mpp/ulan/viaf") {
|
|
|
graph_name = "Persone";
|
|
|
}
|
|
|
- else if (graph == "http://dev.restore.ovi.cnr.it:8890/places/microtoponimi") {
|
|
|
+ else if (graph == "http://147.213.76.182:8890/places/microtoponimi") {
|
|
|
graph_name = "Luoghi";
|
|
|
}
|
|
|
else {graph_name = graph;
|
|
@@ -283,7 +283,7 @@ function MMO_handle_json(json) {
|
|
|
'<div class="col d-flex align-items-start justify-content-end">' + object_button +
|
|
|
'<button type="button" value="' + object_type + '" id="' + value['subject']['value'] + '" class="cit btn btn-default" alt="scheda" title="Info"><i class="fa fa-quote-right"></i><p class="btn-text">Citazione</p></button>' +
|
|
|
/*DA QUI HYPERLINK ->*/'<button type="button" value="' + object_type + '" id="' + value['subject']['value'] + '" class="hyp btn btn-default" alt="scheda" title="Info"><i class="fa fa-link"></i><p class="btn-text">Hyperlink</p></button>' +
|
|
|
- /*DA QUI LOD ->*/'<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
+ /*DA QUI LOD ->*/'<a href="http://147.213.76.182/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
|
|
|
i++;
|
|
|
|
|
@@ -408,7 +408,7 @@ function InfObj_handle_json(json) {
|
|
|
'<div class="col d-flex align-items-start justify-content-end">' + infObject_button +
|
|
|
'<button type="button" value="' + resource_type + '" id="' + value['subject']['value'] + '" class="cit btn btn-default" alt="scheda" title="Info"><i class="fa fa-quote-right"></i><p class="btn-text">Citazione</p></button>' +
|
|
|
/*DA QUI HYPERLINK ->*/'<button type="button" value="' + resource_type + '" id="' + value['subject']['value'] + '" class="hyp btn btn-default" alt="scheda" title="Info"><i class="fa fa-link"></i><p class="btn-text">Hyperlink</p></button>' +
|
|
|
- /*DA QUI LOD ->*/'<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
+ /*DA QUI LOD ->*/'<a href="http://147.213.76.182/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
|
|
|
i++;
|
|
|
|
|
@@ -459,7 +459,7 @@ function Person_handle_json(json) {
|
|
|
value['name']['value'] + '"><i class="fa fa-user"></i><p class="btn-text">Scheda Persona</p></button>' +
|
|
|
'<button type="button" value="Persona" id="' + value['subject']['value'] + '" class="cit btn btn-default" alt="scheda" title="Info"><i class="fa fa-quote-right"></i><p class="btn-text">Citazione</p></button>' +
|
|
|
/*DA QUI HYPERLINK ->*/'<button type="button" value="Persona" id="' + value['subject']['value'] + '" class="hyp btn btn-default" alt="scheda" title="Info"><i class="fa fa-link"></i><p class="btn-text">Hyperlink</p></button>' +
|
|
|
- /*DA QUI LOD ->*/'<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
+ /*DA QUI LOD ->*/'<a href="http://147.213.76.182/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
|
|
|
i++;
|
|
|
|
|
@@ -509,7 +509,7 @@ function Place_handle_json(json) {
|
|
|
value['label']['value'] + '"><i class="fa fa-map"></i><p class="btn-text">Scheda Luogo</p></button>' +
|
|
|
'<button type="button" value="Luogo" id="' + value['subject']['value'] + '" class="cit btn btn-default" alt="scheda" title="Info"><i class="fa fa-quote-right"></i><p class="btn-text">Citazione</p></button>' +
|
|
|
/*DA QUI HYPERLINK ->*/'<button type="button" value="Luogo" id="' + value['subject']['value'] + '" class="hyp btn btn-default" alt="scheda" title="Info"><i class="fa fa-link"></i><p class="btn-text">Hyperlink</p></button>' +
|
|
|
- /*DA QUI LOD ->*/'<a href="http://dev.restore.ovi.cnr.it/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
+ /*DA QUI LOD ->*/'<a href="http://147.213.76.182/lodlive/?' + value['subject']['value'] + '" target="_blank"><button type="button" class="btn btn-default info" alt="LOD"><i class="fa fa-share-alt"></i><p class="btn-text">Lod</p></button></a></div></div>';
|
|
|
|
|
|
i++;
|
|
|
|
|
@@ -645,7 +645,7 @@ function Place_handle_json(json) {
|
|
|
//#######################################
|
|
|
|
|
|
function prepareQueryURL(query){
|
|
|
- sparqlEndpoint = 'http://dev.restore.ovi.cnr.it:8890/sparql/';
|
|
|
+ sparqlEndpoint = 'http://147.213.76.182:8890/sparql/';
|
|
|
sparqlUrlParams = '?default-graph-uri=&query=' + encodeURIComponent(query) + '&output=json&callback=?';
|
|
|
return sparqlEndpoint + sparqlUrlParams;
|
|
|
}
|
|
@@ -758,45 +758,45 @@ function getGraph(graph1, graph2) {
|
|
|
}
|
|
|
else if ((graph1 != '') && (graph2 == '')) {
|
|
|
if (graph1 == "ASPO") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/aspo/datini> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/aspo/ospedale> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/aspo/marcovaldi> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/aspo/gettatelli>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/aspo/datini> \
|
|
|
+ <http://147.213.76.182:8890/aspo/ospedale> \
|
|
|
+ <http://147.213.76.182:8890/aspo/marcovaldi> \
|
|
|
+ <http://147.213.76.182:8890/aspo/gettatelli>}";
|
|
|
}
|
|
|
if (graph1 == "MPP") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/mpp/martini> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/mpp/ospedale> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/mpp/datini> \
|
|
|
- <http://dev.restore.ovi.cnr.it:8890/mpp/autori> }";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/mpp/martini> \
|
|
|
+ <http://147.213.76.182:8890/mpp/ospedale> \
|
|
|
+ <http://147.213.76.182:8890/mpp/datini> \
|
|
|
+ <http://147.213.76.182:8890/mpp/autori> }";
|
|
|
}
|
|
|
if (graph1 == "OVI") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/ovi/datini>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/ovi/datini>}";
|
|
|
}
|
|
|
}
|
|
|
else if (graph2 != '') {
|
|
|
if (graph2 == "aspo_datini") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/aspo/datini>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/aspo/datini>}";
|
|
|
}
|
|
|
if (graph2 == "aspo_ospedale") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/aspo/ospedale>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/aspo/ospedale>}";
|
|
|
}
|
|
|
if (graph2 == "aspo_marcovaldi") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/aspo/marcovaldi>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/aspo/marcovaldi>}";
|
|
|
}
|
|
|
if (graph2 == "aspo_gettatelli") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/aspo/gettatelli>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/aspo/gettatelli>}";
|
|
|
}
|
|
|
if (graph2 == "mpp_martini") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/mpp/martini>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/mpp/martini>}";
|
|
|
}
|
|
|
if (graph2 == "mpp_ospedale") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/mpp/ospedale>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/mpp/ospedale>}";
|
|
|
}
|
|
|
if (graph2 == "mpp_datini") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/mpp/datini>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/mpp/datini>}";
|
|
|
}
|
|
|
if (graph2 == "ovi_lettere") {
|
|
|
- search_graph = "VALUES ?g {<http://dev.restore.ovi.cnr.it:8890/ovi/datini>}";
|
|
|
+ search_graph = "VALUES ?g {<http://147.213.76.182:8890/ovi/datini>}";
|
|
|
}
|
|
|
} else {
|
|
|
search_graph = "";
|