Changes

Jump to navigation Jump to search
Removed a bug at passing headers to the fetch request
sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
headers myHeaders = { 'Accept': 'application/sparql-results+json' };
debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
fetch( fullUrl, { headers :myHeaders } ).then( body => body.json() ).then( json => {
if ( json.boolean )
quickpresets_addinterface(qid, prop);

Navigation menu