Open
Description
Issue validity
Live data on dbpedia.org.
Error Description
There is a http://
/https://
mismatch between requested URIs and the URIs in the data.
Details
Originally reported here: https://sourceforge.net/p/dbpedia/mailman/message/37362683/
The server forces https://
URLs:
$ curl -I -H "Accept: text/turtle" http://dbpedia.org/resource/Copenhagen
HTTP/1.1 303 See Other
Server: nginx/1.18.0
Date: Thu, 07 Oct 2021 09:11:29 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive
Location: https://dbpedia.org/resource/Copenhagen
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: HEAD, GET, POST, OPTIONS
Access-Control-Allow-Headers:
Depth,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding
But the returned RDF data contains http://
URIs:
$ curl -o - https://dbpedia.org/data/Copenhagen.ttl
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dbr: <http://dbpedia.org/resource/> .
<http://dbpedia.org/resource/2011\u201312_West_Ham_United_F.C._season>
dbo:wikiPageWikiLink dbr:Copenhagen .
<http://dbpedia.org/resource/AEK_Athens_F.C._in_European_football>
dbo:wikiPageWikiLink dbr:Copenhagen .
dbr:Adform dbo:wikiPageWikiLink dbr:Copenhagen .
dbr:Helena_Paparizou dbo:wikiPageWikiLink dbr:Copenhagen .
dbr:MS_Jutlandia dbo:wikiPageWikiLink dbr:Copenhagen .
Another example, this time requesting https://
:
$ curl -L -OJ -H "Accept: text/turtle" https://dbpedia.org/resource/Copenhagen
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 153 100 153 0 0 725 0 --:--:-- --:--:-- --:--:-- 725
100 675k 100 675k 0 0 1139k 0 --:--:-- --:--:-- --:--:-- 3235k
curl: Saved to filename 'sparql_2021-10-29_10-31-22Z.ttl'
$ cat sparql_2021-10-29_10-31-22Z.ttl
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dbr: <http://dbpedia.org/resource/> .
dbr:Vivi_Bach dbo:birthPlace dbr:Copenhagen .
...