Changes

Jump to navigation Jump to search
Added 2 semicolons, removed a line feed.
Line 104: Line 104:  
    if(aw.success == 1)
 
    if(aw.success == 1)
 
//$('.wikibase-statementgrouplistview').first().after( succtext );
 
//$('.wikibase-statementgrouplistview').first().after( succtext );
mw.notify(succtext)
+
mw.notify(succtext);
 
});  
 
});  
 
}
 
}
Line 206: Line 206:  
        // Now check via sparql (much slower but includes subtypes)
 
        // Now check via sparql (much slower but includes subtypes)
 
        const endpointUrl = 'https://query.personaldata.io/proxy/wdqs/bigdata/namespace/wdq/sparql',
 
        const endpointUrl = 'https://query.personaldata.io/proxy/wdqs/bigdata/namespace/wdq/sparql',
    sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid +
+
    sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
    '. hint:Prior hint:gearing "forwards" }',
   
    fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
 
    fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
 
    headers = { '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 } ).then( body => body.json() ).then( json => {
 
        fetch( fullUrl, { headers } ).then( body => body.json() ).then( json => {
 
    if ( json.boolean )
 
    if ( json.boolean )

Navigation menu