Skip to content
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

conneg doesn't work #24

Open
VladimirAlexiev opened this issue Mar 27, 2017 · 3 comments
Open

conneg doesn't work #24

VladimirAlexiev opened this issue Mar 27, 2017 · 3 comments

Comments

@VladimirAlexiev
Copy link

The webpage advertises "A JSON-LD context is available at https://science.ai (requires a Accept: application/ld+json header)." Let's try that

$ curl -IL -Haccept:application/ld+json http://ns.science.ai
Content-Type: text/html; charset=utf-8
$ curl -kIL -Haccept:application/ld+json https://ns.science.ai
Content-Type: text/html; charset=utf-8
@sballesteros
Copy link
Member

As indicated the context is served by https://science.ai not http://ns.science.ai (note the lack of subdomain).

@VladimirAlexiev
Copy link
Author

VladimirAlexiev commented Mar 28, 2017

I think it's best to serve from the namespace URL. I can't find an official Best Practice, but

@VladimirAlexiev
Copy link
Author

Minor: when saved, the file is still called index.html. Better to specify a name in the response headers, eg scholarly.jsonld

This was referenced Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants