Changes

Jump to navigation Jump to search
no edit summary
Line 201: Line 201:  
    }
 
    }
 
    else {
 
    else {
    debug("qid: "+ qid + " typeqid: " + typeqid)
+
    // indirect relevance, through subclassing
    // indirect relevance, through subclassing
   
        // 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',
Line 209: Line 208:  
    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 + " typeqid: " + typeqid + " " + fullUrl)
 
        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