|
@@ -323,6 +323,18 @@ OPTIONAL {?uri_sede owl:sameAs ?uri_place . \
|
|
|
} \
|
|
|
}"
|
|
|
|
|
|
+queryContrassegni = prefixes + " SELECT DISTINCT ?contrassegno ?image \
|
|
|
+WHERE { \
|
|
|
+VALUES ?uri {<" + thisUrlParams.link + ">} \
|
|
|
+?event crm:P141_assigned ?uri ; \
|
|
|
+crm:P140_assigned_attribute_to ?uri_contrassegno . \
|
|
|
+?uri_contrassegno crm:P2_has_type 'Contrassegno'; \
|
|
|
+rdfs:label ?contrassegno . \
|
|
|
+?uri_image crm:P138_represents ?uri_contrassegno ; \
|
|
|
+crm:P1_is_identified_by ?uri_id . \
|
|
|
+?uri_id rdfs:label ?image . \
|
|
|
+} "
|
|
|
+
|
|
|
queryURL = prepareQueryURL(query);
|
|
|
|
|
|
queryOt = prepareQueryURL(queryOtherDoc);
|
|
@@ -345,6 +357,8 @@ queryCom = prepareQueryURL(queryCompagnia);
|
|
|
|
|
|
queryEv = prepareQueryURL(queryEventi);
|
|
|
|
|
|
+queryCon = prepareQueryURL(queryContrassegni);
|
|
|
+
|
|
|
response = $.ajax({
|
|
|
|
|
|
url: query,
|
|
@@ -456,6 +470,16 @@ responseEv = $.ajax({
|
|
|
error: function (e) {}
|
|
|
});
|
|
|
|
|
|
+responseEv = $.ajax({
|
|
|
+
|
|
|
+ url: queryCon,
|
|
|
+ dataType: "json",
|
|
|
+ success: function (data){
|
|
|
+ handle_Contrassegni(data);
|
|
|
+ },
|
|
|
+ error: function (e) {}
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
var labelName = "";
|
|
|
|
|
@@ -1068,22 +1092,32 @@ function handle_Compagnia(json) {
|
|
|
}
|
|
|
|
|
|
});
|
|
|
-
|
|
|
|
|
|
- var workPlace_button = "";
|
|
|
+}
|
|
|
|
|
|
- if (uri_place != "") {
|
|
|
- workPlace_button = '<button type="button" id="' + uri_place +
|
|
|
- '" class="luogo btn btn-default" alt="luogo" ><i class="far fa-map"></i><p class="btn-text">Scheda Luogo</p></button>';
|
|
|
- } else {
|
|
|
- workPlace_button = '<button class="btn btn-default" type="button" onclick="schedaASPO(' + uri_sede
|
|
|
- + ')"><i class="fa fa-link" aria-hidden="true"> <p class="btn-text">Link</p></i></button>';
|
|
|
- }
|
|
|
+function handle_Contrassegni(json) {
|
|
|
|
|
|
- document.getElementById("society").innerHTML = denominazione;
|
|
|
- document.getElementById("workPlace").innerHTML = sede;
|
|
|
- document.getElementById("workPlace_btn").innerHTML = workPlace_button;
|
|
|
-
|
|
|
+ var id_image = "";
|
|
|
+ var name_image = "";
|
|
|
+
|
|
|
+ $.each(
|
|
|
+ json['results']['bindings'],
|
|
|
+ function (index, value) {
|
|
|
+ if (value.hasOwnProperty('image')) {
|
|
|
+ $("#mark_image").css("display", "flex");
|
|
|
+ id_image = value['image']['value'];
|
|
|
+ }
|
|
|
+ if (value.hasOwnProperty('contrassegno')) {
|
|
|
+ name_image = value['contrassegno']['value'];
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ var Image = '<img style="width:100%;" src="img/contrassegni/' + id_image + '" />'
|
|
|
+
|
|
|
+ document.getElementById("contrassegno").innerHTML = Image;
|
|
|
+ document.getElementById("nome_contrassegno").innerHTML = name_image;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function handle_Letters(json) {
|