Changes

Jump to navigation Jump to search
no edit summary
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 ),
    myHeaders = { 'Accept': 'application/sparql-results+json' };
+
    headers = { '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:myHeaders } ).then( body => body.json() ).then( json => {
+
        fetch( fullUrl, headers ).then( body => body.json() ).then( json => {
 
    if ( json.boolean )
 
    if ( json.boolean )
 
        quickpresets_addinterface(qid, prop);
 
        quickpresets_addinterface(qid, prop);

Navigation menu