implementata la query

This commit is contained in:
cesare 2022-10-05 11:15:40 +02:00
parent 301aa9bfc1
commit b3f7523c5b
1 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,9 @@ $(document).ready(function() {
let filterToEdit = "";
const myEngine = new Comunica.QueryEngine();
var queryFields = []; // Contiene le intestazioni di colonna della tabella dei risultati
const sparqlEndpoint = "https://hdnlab1.isti.cnr.it/fuseki/commediaontosintgra/query";
var aggettivoJson = {
@ -548,8 +551,13 @@ $(document).ready(function() {
condizioniFiltro['filtro-1'] = "query="+clausola;
}
const sparqlGenerator = sparqljs.Generator;
spquery=buildSQ(condizioniFiltro)
execMySparqlQuery (spquery);
queryFields = [];
for (var i in spquery.variables) {
queryFields.push(spquery.variables[i].variable.value);
}
execMySparqlQuery (new sparqlGenerator().stringify(spquery));
return true