Changes

Jump to navigation Jump to search
Undo revision 74596 by Stenli karanxha (talk)
Line 208: Line 208:  
    sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
 
    sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
 
    fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
 
    fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
    headers = { 'Accept': 'application/sparql-results+json' };
+
    myHeaders = { 'Accept': 'application/sparql-results+json' };
 
    debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
 
    debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
        fetch( fullUrl, headers ).then( body => body.json() ).then( json => {
+
        fetch( fullUrl, { headers:myHeaders } ).then( body => body.json() ).then( json => {
 
    if ( json.boolean )
 
    if ( json.boolean )
 
        quickpresets_addinterface(qid, prop);
 
        quickpresets_addinterface(qid, prop);

Navigation menu