|
@@ -1,35 +1,35 @@
|
|
|
const choiceArray = [
|
|
|
- ["Nome risorsa", "Object, OA", "label"],
|
|
|
- ["Identificatore", "Object, OA, Person, Letter, Place", "identifier"],
|
|
|
- ["Materia", "Object, OA", "material"],
|
|
|
- ["Istituto di conservazione", "Object, OA", "localization"],
|
|
|
- ["Tecnica", "OA", "technique"],
|
|
|
- ["Artista", "OA", "artist"],
|
|
|
- ["Soggetto", "OA", "subject"],
|
|
|
- ["Titolo", "Object, Inf", "title"],
|
|
|
- ["Tipo di risorsa", "Object, Inf", "type"],
|
|
|
- ["Nome proprio", "Person", "givenName"],
|
|
|
- ["Nome di famiglia", "Person", "familyName"],
|
|
|
- ["Luogo di Nascita", "Person", "birthPlace"],
|
|
|
- ["Luogo di Morte", "Person", "deathPlace"],
|
|
|
- ["Genere", "Person", "sex"],
|
|
|
- ["Data di Nascita", "Person", "birthDate"],
|
|
|
- ["Data di Morte", "Person", "deathDate"],
|
|
|
- ["Occupazione", "Person", "occupation"],
|
|
|
- ["Qualifica", "Person", "qualification"],
|
|
|
- ["Mittente", "Letter", "sender"],
|
|
|
- ["Destinatario", "Letter", "receiver"],
|
|
|
- ["Luogo di Partenza", "Letter", "startPlace"],
|
|
|
- ["Luogo di Arrivo", "Letter", "endPlace"],
|
|
|
- ["Data partenza", "Letter", "startDate"],
|
|
|
- ["Data arrivo", "Letter", "endDate"],
|
|
|
- ["Lingua", "Letter", "language"],
|
|
|
- ["Area linguistica", "Letter", "languageArea"],
|
|
|
- ["Edizione", "Letter", "edition"],
|
|
|
- ["Data", "Object", "date"],
|
|
|
- ["Date", "OA", "date_OA"],
|
|
|
+ ["Resource name", "Object, OA", "label"],
|
|
|
+ ["Identifier", "Object, OA, Person, Letter, Place", "identifier"],
|
|
|
+ ["Material", "Object, OA", "material"],
|
|
|
+ ["Holding Institute", "Object, OA", "localization"],
|
|
|
+ ["Technique", "OA", "technique"],
|
|
|
+ ["Artist", "OA", "artist"],
|
|
|
+ ["Subject", "OA", "subject"],
|
|
|
+ ["Title", "Object, Inf", "title"],
|
|
|
+ ["Type", "Object, Inf", "type"],
|
|
|
+ ["First name", "Person", "givenName"],
|
|
|
+ ["Surname", "Person", "familyName"],
|
|
|
+ ["Birth place", "Person", "birthPlace"],
|
|
|
+ ["Death place", "Person", "deathPlace"],
|
|
|
+ ["Gender", "Person", "sex"],
|
|
|
+ ["Birth date", "Person", "birthDate"],
|
|
|
+ ["Death date", "Person", "deathDate"],
|
|
|
+ ["Occupation", "Person", "occupation"],
|
|
|
+ ["Qualification", "Person", "qualification"],
|
|
|
+ ["Sender", "Letter", "sender"],
|
|
|
+ ["Receiver", "Letter", "receiver"],
|
|
|
+ ["Place of departure", "Letter", "startPlace"],
|
|
|
+ ["Place of arrival", "Letter", "endPlace"],
|
|
|
+ ["Departure date", "Letter", "startDate"],
|
|
|
+ ["Arrival date", "Letter", "endDate"],
|
|
|
+ ["Language", "Letter", "language"],
|
|
|
+ ["Linguistic area", "Letter", "languageArea"],
|
|
|
+ ["Edition", "Letter", "edition"],
|
|
|
+ ["Date", "Object", "date"],
|
|
|
+ ["Time", "OA", "date_OA"],
|
|
|
["Lemma", "Letter", "lemma"],
|
|
|
- ["Testo libero", "Letter", "keyword"]
|
|
|
+ ["Text", "Letter", "keyword"]
|
|
|
];
|
|
|
|
|
|
const typeArray = [
|
|
@@ -158,12 +158,12 @@ function populateOptions(selector, myArray) {
|
|
|
var numberId= selector.split("-")[1];
|
|
|
var inputText= $( this ).find(":selected").text();
|
|
|
var inp = "";
|
|
|
- if (inputText == "Genere") {
|
|
|
+ if (inputText == "Gender") {
|
|
|
inp = '<select class="advanced-form-select form-control" id="inputchoiceSelector_'+ numberId +'"> \
|
|
|
<option>F</option> \
|
|
|
<option>M</option> \
|
|
|
</select>';
|
|
|
- } else if (inputText == "Materia"){
|
|
|
+ } else if (inputText == "Material"){
|
|
|
inp = '<select class="advanced-form-select form-control" id="inputchoiceSelector_'+ numberId +'"> \
|
|
|
<option>Tempera</option> \
|
|
|
<option>Tavola</option> \
|
|
@@ -172,12 +172,12 @@ function populateOptions(selector, myArray) {
|
|
|
<option>Carta</option> \
|
|
|
<option>Tela</option> \
|
|
|
</select>';
|
|
|
- } else if (inputText == "Tecnica"){
|
|
|
+ } else if (inputText == "Technique"){
|
|
|
inp = '<select class="advanced-form-select form-control" id="inputchoiceSelector_'+ numberId +'"> \
|
|
|
<option>Pittura a olio</option> \
|
|
|
<option>Doratura</option> \
|
|
|
</select>';
|
|
|
- } else if (inputText == "Tipo di risorsa"){
|
|
|
+ } else if (inputText == "Type"){
|
|
|
inp = '<select class="advanced-form-select form-control" id="inputchoiceSelector_'+ numberId +'"> \
|
|
|
<option>Documento</option> \
|
|
|
<option>Carteggio</option> \
|
|
@@ -185,7 +185,7 @@ function populateOptions(selector, myArray) {
|
|
|
<option>Libro</option> \
|
|
|
<option>Documenti diversi</option> \
|
|
|
</select>';
|
|
|
- } else if (inputText == "Data"){
|
|
|
+ } else if (inputText == "Date"){
|
|
|
var inp = '<div style="display:flex;"><div id="box_' + numberId + '_a" class="container_choice"><div class="choice_box">Da <select style="display:none;" id ="choice_selector-' + numberId + '_a" value=' + numberId + '_a" name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
|
|
|
<option selected value="0">Da</option> \
|
|
|
<input type="number" id="inputchoiceSelector_'+ numberId +'_a" name="start" min="1000" max="2099" step="1" value="1300" /></div></div>\
|
|
@@ -202,7 +202,7 @@ function populateOptions(selector, myArray) {
|
|
|
<input type="date" id="inputchoiceSelector_'+ numberId +'_b" name="end" value="1900-12-31"> \
|
|
|
</select></div></div></div>';*/
|
|
|
}
|
|
|
- else if (inputText == "Date"){
|
|
|
+ else if (inputText == "Time"){
|
|
|
var inp = '<div style="display:flex;"><div id="box_' + numberId + '_a" class="container_choice"><div class="choice_box">Da <select style="display:none;" id ="choice_selector-' + numberId + '_a" value=' + numberId + '_a" name="sel-parent" class="advanced-form-select form-control" aria-label="Default select example"> \
|
|
|
<option selected value="0">Data inizio opera</option> \
|
|
|
<input type="number" id="inputchoiceSelector_'+ numberId +'_a" name="start" min="1000" max="2099" step="1" value="1300" /></div></div>\
|
|
@@ -490,37 +490,37 @@ function constructQuery(params) {
|
|
|
var dfop = "";
|
|
|
|
|
|
for (let i = 0; i < params.length; i++) {
|
|
|
- if(params[i][0] == "Nome risorsa" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Resource name" && (params[i][1] != "")) {
|
|
|
var toSearch = params[i][1].replace("'", " ");
|
|
|
label = "?label bif:contains \"\' "+ toSearch + " \'\" . ";
|
|
|
}
|
|
|
- if(params[i][0] == "Identificatore" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Identifier" && (params[i][1] != "")) {
|
|
|
id = " ?identifier";
|
|
|
|
|
|
identificatore = "FILTER (CONTAINS(?identifier, \'"+ params[i][1] +"\'))";
|
|
|
}
|
|
|
- if(params[i][0] == "Dimensione" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Dimension" && (params[i][1] != "")) {
|
|
|
dm = " ?dimension";
|
|
|
|
|
|
dimensione = "?subject crm:P43_has_dimension ?uri_dimension . \
|
|
|
?uri_dimension rdfs:label ?dimension . \
|
|
|
?dimension bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if(params[i][0] == "Materia" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Material" && (params[i][1] != "")) {
|
|
|
mt = " ?material";
|
|
|
|
|
|
materia = "?subject crm:P45_consists_of ?uri_material . \
|
|
|
?uri_material rdfs:label ?material . \
|
|
|
?material bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if(params[i][0] == "Istituto di conservazione" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Holding institution" && (params[i][1] != "")) {
|
|
|
locl = " ?location";
|
|
|
|
|
|
localizzazione = "?subject crm:P52_has_current_owner ?uri_location . \
|
|
|
?uri_location rdfs:label ?location . \
|
|
|
?location bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if(params[i][0] == "Tecnica" && (params[i][1] != "")) {
|
|
|
+ if(params[i][0] == "Technique" && (params[i][1] != "")) {
|
|
|
tec = " ?technique";
|
|
|
|
|
|
tecnica = "?event ?pp ?subject . \
|
|
@@ -528,7 +528,7 @@ function constructQuery(params) {
|
|
|
?uri_technique rdfs:label ?technique . \
|
|
|
?technique bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Artista" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Artist" && (params[i][1] != "")) {
|
|
|
at = " ?artist";
|
|
|
|
|
|
artista = "?subject rdfs:label ?label . \
|
|
@@ -538,14 +538,14 @@ function constructQuery(params) {
|
|
|
?range rdfs:label ?artist . \
|
|
|
?artist bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Soggetto" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Subject" && (params[i][1] != "")) {
|
|
|
sg = " ?depiction";
|
|
|
|
|
|
soggetto = "?subject crm:P62_depicts ?uri_depiction . \
|
|
|
?uri_depiction rdfs:label ?depiction . \
|
|
|
?depiction bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Titolo" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Title" && (params[i][1] != "")) {
|
|
|
tt = " ?title";
|
|
|
|
|
|
infObj = "?subject crm:P128_carries ?information_object .";
|
|
@@ -554,7 +554,7 @@ function constructQuery(params) {
|
|
|
?uri_title rdfs:label ?title . \
|
|
|
?title bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Tipo di risorsa" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Type" && (params[i][1] != "")) {
|
|
|
tp = " ?type";
|
|
|
|
|
|
infObj = "?subject crm:P128_carries ?information_object .";
|
|
@@ -570,32 +570,32 @@ function constructQuery(params) {
|
|
|
?uri_note rdfs:label ?note . \
|
|
|
?note bif:contains \"\'"+ params[i][1] +"\'\" .";
|
|
|
}
|
|
|
- if (params[i][0] == "Riferimenti" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "References" && (params[i][1] != "")) {
|
|
|
rf = " ?ref";
|
|
|
|
|
|
riferimenti = "?subject crm:P67_refers_to ?uri_ref . \
|
|
|
?uri_ref rdfs:label ?ref . \
|
|
|
?ref bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Nome proprio" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "First name" && (params[i][1] != "")) {
|
|
|
np = " ?givenName";
|
|
|
|
|
|
nome_proprio = "?subject foaf:givenName ?givenName . \
|
|
|
?givenName bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Nome di famiglia" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Surname" && (params[i][1] != "")) {
|
|
|
nf = " ?familyName";
|
|
|
|
|
|
nome_di_famiglia = "?subject foaf:familyName ?familyName . \
|
|
|
?familyName bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Patronimico" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Patronimyc" && (params[i][1] != "")) {
|
|
|
pt = " ?patronymic";
|
|
|
|
|
|
patronimico = "?subject person:patronymicName ?patronymic . \
|
|
|
?patronymic bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Luogo di Nascita" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Birth place" && (params[i][1] != "")) {
|
|
|
ln = " ?birthPlace";
|
|
|
|
|
|
luogo_di_Nascita = "?subject crm:P98i_was_born ?Birth . \
|
|
@@ -603,7 +603,7 @@ function constructQuery(params) {
|
|
|
?uri_birthPlace rdfs:label ?birthPlace . \
|
|
|
?birthPlace bif:contains \""+ params[i][1] +"\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Luogo di Morte" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Death place" && (params[i][1] != "")) {
|
|
|
lm = " ?deathPlace";
|
|
|
|
|
|
luogo_di_Morte = "?subject crm:P100i_died_in ?Death . \
|
|
@@ -611,33 +611,33 @@ function constructQuery(params) {
|
|
|
?uri_deathPlace rdfs:label ?deathPlace \
|
|
|
?deathPlace bif:contains \""+ params[i][1] +"\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Genere" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Gender" && (params[i][1] != "")) {
|
|
|
gr = "?genere";
|
|
|
|
|
|
genere = "?subject foaf:gender ?genere . \
|
|
|
?genere bif:contains \""+ params[i][1] +"\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Data di Nascita" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Birth date" && (params[i][1] != "")) {
|
|
|
dn = " ?Birth_TS";
|
|
|
|
|
|
data_di_Nascita = "?subject crm:P98i_was_born ?Birth . \
|
|
|
?Birth crm:P4_has_time-span ?Birth_TS . \
|
|
|
?Birth_TS rdfs:label \""+ params[i][1] +"\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Data di Morte" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Death date" && (params[i][1] != "")) {
|
|
|
dts = " ?Death_TS";
|
|
|
|
|
|
data_di_Morte = "?subject crm:P100i_died_in ?Death . \
|
|
|
?Death crm:P4_has_time-span ?Death_TS . \
|
|
|
?Death_TS rdfs:label \""+ params[i][1] +"\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Qualifica" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Qualification" && (params[i][1] != "")) {
|
|
|
qf = " ?qualification";
|
|
|
|
|
|
qualifica = "?subject schema:honorificPrefix ?qualification . \
|
|
|
?qualification bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Occupazione" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Occupation" && (params[i][1] != "")) {
|
|
|
oc = " ?occupation";
|
|
|
|
|
|
occupazione = "?subject schema:hasOccupation ?uriOccupation . \
|
|
@@ -645,14 +645,14 @@ function constructQuery(params) {
|
|
|
rdfs:label ?occupation . \
|
|
|
?occupation bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Gruppi di appartenenza" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Groups" && (params[i][1] != "")) {
|
|
|
ga = " ?group";
|
|
|
|
|
|
gruppi_di_appartenenza = "?subject crm:P107i_is_current_or_former_member_of ?uriGroup . \
|
|
|
?uriGroup rdfs:label ?group . \
|
|
|
?group bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Mittente" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Sender" && (params[i][1] != "")) {
|
|
|
mit = " ?mittente";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -666,7 +666,7 @@ function constructQuery(params) {
|
|
|
?uriSender rdfs:label ?mittente . \
|
|
|
?mittente bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Destinatario" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Receiver" && (params[i][1] != "")) {
|
|
|
des = " ?destinatario";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -680,7 +680,7 @@ function constructQuery(params) {
|
|
|
?uriReceiver rdfs:label ?destinatario . \
|
|
|
?destinatario bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Luogo di Partenza" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Departure place" && (params[i][1] != "")) {
|
|
|
lp = " ?luogo_partenza";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -693,7 +693,7 @@ function constructQuery(params) {
|
|
|
?uriLuogoPartenza rdfs:label ?luogo_partenza . \
|
|
|
?luogo_partenza bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Luogo di Arrivo" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Arrival place" && (params[i][1] != "")) {
|
|
|
la = " ?luogo_arrivo";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -706,7 +706,7 @@ function constructQuery(params) {
|
|
|
?uriLuogoArrivo rdfs:label ?luogo_arrivo . \
|
|
|
?luogo_arrivo bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Data partenza" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Departure date" && (params[i][1] != "")) {
|
|
|
dp = " ?timeSpanSend";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -719,7 +719,7 @@ function constructQuery(params) {
|
|
|
?time_spanS rdfs:label ?timeSpanSend . \
|
|
|
?timeSpanSend bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Data arrivo" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Arrival date" && (params[i][1] != "")) {
|
|
|
da = " ?timeSpanReceive";
|
|
|
|
|
|
letter_event = "?subject crm:P25i_moved_by ?mov_ev . \
|
|
@@ -732,14 +732,14 @@ function constructQuery(params) {
|
|
|
?time_spanR rdfs:label ?timeSpanReceive .\
|
|
|
?timeSpanReceive bif:contains \"\'"+ params[i][1] +"\'\" . "
|
|
|
}
|
|
|
- if (params[i][0] == "Lingua" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Language" && (params[i][1] != "")) {
|
|
|
lin = " ?lingua";
|
|
|
|
|
|
lingua = "?information_object crm:P72_has_language ?language . \
|
|
|
?language rdfs:label ?lingua . \
|
|
|
?lingua bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Area linguistica" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Linguistic area" && (params[i][1] != "")) {
|
|
|
alin = " ?area_linguistica";
|
|
|
|
|
|
area_linguistica = "?information_object crm:P72_has_language ?language . \
|
|
@@ -747,7 +747,7 @@ function constructQuery(params) {
|
|
|
?area rdfs:label ?area_linguistica .\
|
|
|
?area_linguistica bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Edizione" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Edition" && (params[i][1] != "")) {
|
|
|
ed = " ?edizione";
|
|
|
|
|
|
edizione = "?edition crm:P70_documents ?information_object ; \
|
|
@@ -762,13 +762,13 @@ function constructQuery(params) {
|
|
|
?link_lemma rdfs:label ?lemma. \
|
|
|
?lemma bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Testo libero" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Text" && (params[i][1] != "")) {
|
|
|
ttx = " ?testo";
|
|
|
|
|
|
testo = "?information_object crm:P190_has_symbolic_content ?testo . \
|
|
|
?testo bif:contains \"\'"+ params[i][1] +"\'\" ."
|
|
|
}
|
|
|
- if (params[i][0] == "Data" && (params[i][1] != "")) {
|
|
|
+ if (params[i][0] == "Date" && (params[i][1] != "")) {
|
|
|
dt = " ?date";
|
|
|
|
|
|
data = "?subject ?property ?event . \
|
|
@@ -1134,7 +1134,7 @@ function populateSelGraph(graphType) {
|
|
|
|
|
|
var genOpt = document.createElement("option");
|
|
|
genOpt.value= "";
|
|
|
- genOpt.innerHTML = "Tutte";
|
|
|
+ genOpt.innerHTML = "All";
|
|
|
collection_selector.add(genOpt);
|
|
|
|
|
|
for(var i=0; i<y; i++) {
|