-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with application/rdf+xml #2021
Comments
I'm not sure how that test suite script works and I'm not a protege user, but I'll try to help. Can you list one failing URL you are requesting, the Accept header being used, and the expected result? I assume the above text should have a slash in the URL? "/bot-0.3.2" won't work. It looks like it does follow through to ttl content. The w3id server does output html in the redirect content, but tools should ignore that. curl -v -L -H "Accept: text/turtle" https://w3id.org/bot/0.3.2 If you want to test locally you can serve up the w3id repo in a local apache instance and map w3id.org to localhost. There are some https certificate issues to deal with though. I usually test redirects with a non-https http://w3id.localhost/ alias. |
Hi @davidlehn, I ran protégé behind a proxy and captured the following exchange. (I followed this and trimmed the bodies and some of the headers for brevity)
protégé does four requests with the original URL, gets 200's on each, but ignores them. Afterwards, it tries with Removing the My test suite works exactly like your test snippet. It compares the location response header against an expected URL and complains if those don't match. This alone doesn't ensure that the redirection would work in protégé. Adding to the mystery, protégé opens the ontology when pointed to my test setup at http://bot.mischung.net. |
In case it helps, I handle the access to particular versions with a separated rule. Example: https://github.com/perma-id/w3id.org/blob/master/okn/o/sd/.htaccess It loads in Protege correctly. Maybe they are expecting a 303 instead of a 302, but in theory it should not matter. |
@dgarijo: Thank you! Your hint with the 303 did it for me 👍 What is strange is that "plain" ontology IRIs without a version work with a 301... |
Dear perma-id team,
again many thanks for providing this web service!
We have performed some update on the w3id.org/bot namespace to provide access to version IRIs (cf.#1995 by @attadanta).
While our test script worked fine, still, the Protege tool cannot retrieve a version IRI, e.g. w3id.org/bot-0.3.2
We observed some irregular behaviour of Protege sending out text/html requests. As we cannot test more deeply in w3id.org server, we were wondering if you have some suggestion in this regard maybe from other projects which have a similar naming structure.
Thanks and BR
Georg
The text was updated successfully, but these errors were encountered: