Hi Marco,

The cookie header warnings are just warnings.

The query as written has the LIMIT is outside the SERVICE clause. This means it 
fetches *all* labels from the remote endpoint, and then discards all but the 
first ten on the client. On my machine, TBC actually runs out of memory before 
the query can complete.

The query works for me if I rewrite it to do the LIMIT on the remote server:

SELECT ?label WHERE {
    SERVICE <http://query.wikidata.org/sparql> {
        SELECT ?label {
            ?uri rdfs:label ?label
        }
        LIMIT 10
    }
}

Hope that helps,
Richard



> On 29 Jul 2017, at 16:14, Marco Neumann <[email protected]> wrote:
> 
> I get the following warning messages inTBC 5.3.2 without producing a
> result set in TBC when calling the wikidata sparql endpoint at
> http://query.wikidata.org/sparql with a SERVICE keyword in the TBC
> SPARQL editor pane
> 
> SELECT ?label WHERE { SERVICE <http://query.wikidata.org/sparql>{?uri
> rdfs:label ?label} } LIMIT 10
> 
> fyi the call works fine with curl and in a fuseki stand-alone
> instance. also when calling one of our own fuseki based sparql
> endpoints from within TBC 5.3.2 with the SERVICE keyword works just
> fine.
> 
> does TBC get stuck on the wikidata cookie header warnings here?
> 
> 
> #1
> eclipse.buildId=unknown
> java.version=1.8.0_92
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86_64
> 
> Jul 29, 2017 11:01:23 AM
> org.apache.http.client.protocol.ResponseProcessCookies processCookies
> WARNING: Invalid cookie header: "Set-Cookie:
> WMF-Last-Access=29-Jul-2017;Path=/;HttpOnly;secure;Expires=Wed, 30 Aug
> 2017 12:00:00 GMT". Invalid 'expires' attribute: Wed, 30 Aug 2017
> 12:00:00 GMT
> 
> 
> #2
> Jul 29, 2017 11:01:23 AM
> org.apache.http.client.protocol.ResponseProcessCookies processCookies
> WARNING: Invalid cookie header: "Set-Cookie:
> WMF-Last-Access-Global=29-Jul-2017;Path=/;Domain=.wikidata.org;HttpOnly;secure;Expires=Wed,
> 30 Aug 2017 12:00:00 GMT". Invalid 'expires' attribute: Wed, 30 Aug
> 2017 12:00:00 GMT
> 
> #3
> Jul 29, 2017 11:01:23 AM
> org.apache.http.client.protocol.ResponseProcessCookies processCookies
> WARNING: Invalid cookie header: "Set-Cookie:
> WMF-Last-Access=29-Jul-2017;Path=/;HttpOnly;secure;Expires=Wed, 30 Aug
> 2017 12:00:00 GMT". Invalid 'expires' attribute: Wed, 30 Aug 2017
> 12:00:00 GMT
> 
> #4
> Jul 29, 2017 11:01:23 AM
> org.apache.http.client.protocol.ResponseProcessCookies processCookies
> WARNING: Invalid cookie header: "Set-Cookie:
> WMF-Last-Access-Global=29-Jul-2017;Path=/;Domain=.wikidata.org;HttpOnly;secure;Expires=Wed,
> 30 Aug 2017 12:00:00 GMT". Invalid 'expires' attribute: Wed, 30 Aug
> 2017 12:00:00 GMT
> 
> 
> -- 
> 
> 
> ---
> Marco Neumann
> KONA
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to