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

[API] Accept-Language not always relevant for RDF representations #17

Open
RubenVerborgh opened this issue Mar 11, 2017 · 4 comments
Open

Comments

@RubenVerborgh
Copy link

The language of the response should match the language in the Accept-Language Header.

RDF supports multi-lingual labels, so this might or might not apply.

@jhoobergs
Copy link
Collaborator

I added it because it would mean less data needs to be send. In RDF it might indeed be useless, but for an api I think the concept is usefull.

@RubenVerborgh
Copy link
Author

The API returns RDF…

@jhoobergs
Copy link
Collaborator

The api returns RDF but can't we see it more flexible that we still use the Accept-language header so we don't have the RDF multilanguage overhead?

@RubenVerborgh
Copy link
Author

I think it's not the API's job to choose that; it should point in the right direction.

For instance, you say "overhead", but implementing language-based-conneg is equally an overhead. In order to host the API at, let's say, a static file server, you could just serve multilingual RDF. In order to host the API at a more advanced server, and to save on bandwidth, you can negotiate and serve specific languages.

To obtain correct JSON-LD, you would still have to specify that language in the document or context anyway (https://www.w3.org/TR/json-ld/#string-internationalization); Content-Language alone is not sufficiently detailed.

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