| Mchlrch added a comment. |
The endpoint https://ld.stadt-zuerich.ch/query supports HTTP/1.0, HTTP/1.1 and HTTP/2. I defaults to HTTP/2, if the client does request an explicit version.
@Smalyshev How about explicitly specifying HTTP/1.1 for the jetty-client?
Query:
$ cat foo.rq PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT * WHERE { GRAPH <https://linked.opendata.swiss/graph/zh/statistics> { ?sub ?pred ?obj . } } LIMIT 1
curl for HTTP/1.0:
$ curl --http1.0 -i --data-urlencode [email protected] https://ld.stadt-zuerich.ch/query HTTP/1.0 200 OK Accept-Ranges: bytes Access-Control-Allow-Origin: * Age: 0 Cache-Control: public, max-age=120 Content-Type: application/sparql-results+xml Date: Tue, 28 Aug 2018 11:54:40 GMT Set-Cookie: _f3bc9=http://10.42.34.100:80; Path=/ Vary: Accept-Encoding Vary: Accept, Accept-Encoding Via: 1.1 varnish-v4 X-Varnish: 296846 Content-Length: 540 <?xml version='1.0' encoding='UTF-8'?> <sparql xmlns='http://www.w3.org/2005/sparql-results#'> <head> <variable name='sub'/> <variable name='pred'/> <variable name='obj'/> </head> <results> <result> <binding name='sub'> <uri>https://ld.stadt-zuerich.ch/.well-known/void</uri> </binding> <binding name='pred'> <uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri> </binding> <binding name='obj'> <uri>http://rdfs.org/ns/void#DatasetDescription</uri> </binding> </result> </results> </sparql>curl for HTTP/1.1:
$ curl --http1.1 -i --data-urlencode [email protected] https://ld.stadt-zuerich.ch/query HTTP/1.1 200 OK Accept-Ranges: bytes Access-Control-Allow-Origin: * Age: 0 Cache-Control: public, max-age=120 Content-Type: application/sparql-results+xml Date: Tue, 28 Aug 2018 11:54:18 GMT Set-Cookie: _f3bc9=http://10.42.34.100:80; Path=/ Vary: Accept-Encoding Vary: Accept, Accept-Encoding Via: 1.1 varnish-v4 X-Varnish: 1540376 Content-Length: 540 <?xml version='1.0' encoding='UTF-8'?> <sparql xmlns='http://www.w3.org/2005/sparql-results#'> <head> <variable name='sub'/> <variable name='pred'/> <variable name='obj'/> </head> <results> <result> <binding name='sub'> <uri>https://ld.stadt-zuerich.ch/.well-known/void</uri> </binding> <binding name='pred'> <uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri> </binding> <binding name='obj'> <uri>http://rdfs.org/ns/void#DatasetDescription</uri> </binding> </result> </results> </sparql>
TASK DETAIL
EMAIL PREFERENCES
To: Smalyshev, Mchlrch
Cc: Mchlrch, Gehel, Aklapper, Smalyshev, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
Cc: Mchlrch, Gehel, Aklapper, Smalyshev, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
