-
Notifications
You must be signed in to change notification settings - Fork 47
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
use standard for profile identification #45
Comments
We will definitely consider existing standards; an overview of pros and cons we have identified can be seen here: https://www.slideshare.net/larsgsvensson/an-http-header-for-metadata-schema-negotiation/9 |
On 2017-12-12 18:17, Ruben Verborgh wrote:
We will definitely consider existing standards; an overview of pros and
cons we have identified can be seen here:
https://www.slideshare.net/larsgsvensson/an-http-header-for-metadata-schema-negotiation/9
nice presentation! seems like you have all the context you need...
[[ detour: the presentation made me wonder: should RFC 6906 be updated
to also register a preference per RFC 7240? i like the idea! it means
media types do not have to support a profile media type parameter, and
thus it better decouples profiles from media types. //cc @jasnell ]]
|
OK, here is a straw-man proposal for some text to refer to existing standards for identifying and signalling profiles in HTTP. @dret does this address your issue? Existing standards for transporting profile information in HTTP headersUsing Accept/Content Type together with the profile parameterThe HTTP Accept and Content-Type header fields RFC 7231 allow a client to specify acceptable media types (
During TPAC 2018 in Lyon, the DXWG had a longer discussion with the JSON-LD WG and it was concluded that the “profile” parameter in the Accept and Content-Type headers should be seen to convey profiles that are specific to the media-type, such as the JSON-LD profiles "expanded" ( Using a Link-header with rel=”profile” (RFC 6906)The HTTP Link header field RFC 8288 relates a web resource (Link Context) to a target resource (Link Target) by specifying the relation between the two resources. One of the relation types is “profile” as defined in RFC 6906. RFC 6906 defines a profile as “additional semantics that can be used to process a resource representation […] that do not alter the basic media type semantics,” and specifically states that “creators and users of profiles MAY define and manage them in a way that allows them to be used across media types,” so that the “profile” relation seems like a suitable way to transport information about acceptable profiles (request) and payload profile (response). Example:
There is, however, no possibility to convey quality information (q-values) using the “profile” relation. Using the Prefer/Preference-Applied header fields (RFC 7240)The http
This approach has two disadvantages. The first is - as with the "Link" header, that there is no possibility to work with q-values. The second one is that the only way for a server to state that it ignored the preference stated by the client is to omit sending a "Preference-Applied" header. For the client - however - it is not clear if the "Preference-Applied" header is absent because the server did not honour the preference, or if it is because the server did not understand the "Prefer" header in the first place. This could be solved by making it mandatory to send a "Link: rel=profile" header when answering to a request with a "Prefer: profile=''" header in it. That solution requires that a client evaluates two different headers in order to find a response to its request for a specific profile, which would make client implementation more complicated. If the text is OK, we also need to decide which document it goes into. It could either go into |
On 2019-02-28 16:59, Lars G. Svensson wrote:
OK, here is a straw-man proposal for some text to refer to existing
standards for identifying and signalling profiles in HTTP. @dret
<https://github.com/dret> does this address your issue?
that reads nice and balanced. thanks for the proposal!
|
for the new
dcat-ucr
draft, maybe using an existing standard for identifying and signaling profiles would be useful? if so, https://tools.ietf.org/html/rfc6906 could be interesting.The text was updated successfully, but these errors were encountered: