-
Notifications
You must be signed in to change notification settings - Fork 45
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
Representation URLs and interactions #109
Comments
My answers below:
MAY
SHOULD
MAY
Reading: same as original resource.
Yes; representations stay connected to the resource. |
With the guideline to avoid optional features, I am inclined to say MUST there. Other than that, I agree. |
One design consideration is to minimise the number of interactions around a resource. From that perspective, representation URLs would not be exposed. Alternatively, if exposed, certain requests methods (basically writing; There are of course some advantages to exposing the representation URLs (eg caching), so making that optional seems reasonable, with the expectation that if supported, there is a required behaviour. Based on that, one possibility:
MAY
MUST
MUST NOT. (MAY could be an alternative but that explicitly introduces new affordances around the representation.)
Reading: don't see a need to set any. Anything in particular we need to consider? Writing:
By only allowing writing to go through the resource, server implementation is somewhat simplified ie. doesn't have to bounce from writing to a particular representation and then generating equivalents for the other representation URLs. Things should exist and die with the resource. Bonus: avoid write access control policies around representations. |
307? |
|
Perfectly, as far as I know. 307 brought clarity where the others didn't. |
What is a Representation URL? |
Following the examples in #69 , |
Sorry, linked the wrong issue..., the one I meant to link was solid/solid-spec#134 |
@kjetilk I see, thanks! |
A minor note that this is not strictly about media types. Language would be another dimension in which a server may want to expose URLs for. Ditto Datetime. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Upon thinking about this a little further, I'm curious to understand whether this is a general issue, or if it is really just about index.html. Do we have use cases for anything beyond that? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@kjetilk Having representation-specific URLs is a generic issue. The fact that I can point to a certain Memento for instance. Or that I can point to a mistake in a JSON-LD representation. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Right, OK, good. Apart from the apparent consensus in solid/solid-spec#134 that the ACL should be connected to the resource, not any particular representation, the main other problem I see is that a non-RDF resource usually wouldn't be representation of an RDF resource. The reason I asked for whether it was just Perhaps we should have special requirements in the case where a LDP-NR is used to represent an LDP-RS, i.e. say something like "If an LDP-NR is used to represent and LDP-RS, then the representation MUST include a machine readable representation of the original RDF embedded in the representation." This would deal with the case of |
re index ("special handling"):
|
There is no need to specify |
I see no need to complicate the life of app devs with something like |
We're not. Nobody needs to touch it.
We are; note that those are not contradictions. We can have both:
Then app devs who want to do conneg, can. Those who don't want, don't have to. Choice is easy. An actual use case for per-representation URLs is legacy systems (a real one I have now is a calendar system) that do not negotiate. |
Resolved by #196 |
Should a resource's representation URL(s):
Content-Location
?The text was updated successfully, but these errors were encountered: