diff --git a/public/index.html b/public/index.html index c53c19e0..1fbe3ac8 100644 --- a/public/index.html +++ b/public/index.html @@ -475,7 +475,7 @@

Relationview

if(!(results[result]["rel"]["value"] in resultjson)){ resultjson[results[result]["rel"]["value"]]=[] if(results[result]["rel"]["value"] in geoproperties){ - seengeoprops[results[result]["rel"]["value"]]=true + seengeoprops[results[result]["rel"]["value"]]=results[result]["val"]["value"] } if(results[result]["rel"]["value"] in labelproperties){ label=results[result]["val"]["value"] @@ -516,6 +516,17 @@

Relationview

tablecontent+="" } } + for(geoprop in seengeoprops){ + if(geoprop.includes("http")){ + d3.sparql($('#endpointselect').val(), "SELECT DISTINCT ?rel ?val WHERE { <"+seengeoprops[geoprop]+"> ?rel ?val . }").then((results)=>{ + for(result in results){ + if(results[result]["rel"]["value"] in geoproperties){ + console.log("GEOMETRY: "+results[result]["val"]["value"]) + } + } + }); + } + } if(label!=""){ $('#title').html(label) }else{