wikidata query SERVICE call warning

23 views
Skip to first unread message

Marco Neumann

unread,
Jul 29, 2017, 11:14:51 AM7/29/17
to topbrai...@googlegroups.com
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

Richard Cyganiak

unread,
Jul 29, 2017, 3:01:40 PM7/29/17
to topbrai...@googlegroups.com
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 {
        SELECT ?label {
            ?uri rdfs:label ?label
        }
        LIMIT 10
    }
}

Hope that helps,
Richard



--
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 topbraid-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marco Neumann

unread,
Jul 29, 2017, 3:31:40 PM7/29/17
to topbrai...@googlegroups.com
thank you Richard, this looks very good. it still jumps straight into
the error log pane but produces the expected result.

was this a recent improvement? I did not get this to work in 5.3.1.

In any event good timing by TQ in getting this working!

best,
Marco
Reply all
Reply to author
Forward
0 new messages