Closed hoijui closed 9 months ago
I think that website is broken
$ curl -IL https://w3id.org/valueflows/ont/vf#
HTTP/1.1 302 Found
Date: Sun, 18 Feb 2024 00:58:03 GMT
Server: Apache/2.4.29 (Ubuntu)
Access-Control-Allow-Origin: *
Location: https://w3id.org/var/www/w3id.org/valueflows/1https://lab.allmende.io/valueflows/valueflows/-/raw/master/release-doc-in-process/all_vf.
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 404 Not Found
Date: Sun, 18 Feb 2024 00:58:03 GMT
Server: Apache/2.4.29 (Ubuntu)
Access-Control-Allow-Origin: *
Content-Type: text/html; charset=iso-8859-1
Also, raptor (via curl or whatever) does follow 30x redirects for http(s).
aHA! Thank you @dajobe, that was gross negligence from my side, my apologies! Now revising, I found 2 errors in our w3id configuration:
Accept
header is present in the request
-> missing file extension""
-> https://w3id.org/var/www/w3id.org/valueflows/1
prefix that should not be there
Many ontologies use PURLs (usually purl.org or w3id.org). In those cases, the public IRI of the ontology only redirects to the actual hosting of the ontology content. It seems like raptor can not handle that.
See for example
curl
s-L, --location
option:so this fails (public IRI):
While this works (the actual hosting location of the IRI above):