-
Notifications
You must be signed in to change notification settings - Fork 121
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
Getting data with no content-type from a ResourceStore #12
Comments
On the one hand, this is acceptable behavior; but But on the other hand, even with a type preference, I don't think it's this particular So note that both are possible; the store (possibly
Non-quad data likely has an inherent media type, such as image, or worst case, octets.
So in conclusion, I think it should always do that, otherwise we re-encoded the serialization logic multiple times. A store should only cater to preferences if it is really easy for them. Let's say for instance a SPARQL endpoint, where it has to ask the backend for some serialization anyway, so it might as well ask for the right one. Or if reading from disk, and the disk happens to have the right format, don't re-serialize. But if conversion is needed; don't bother, someone else should do that. |
So for example, an AclAuthorizer constructor would take as parameter a |
Yes; exactly (to everything you wrote). Although very specifically, I think that we could just have one |
How would the |
At the moment, I think that
That could be different per resource though. |
Related since this is probably also going to be the responsibility of the |
I hadn't designed anything for that yet. It might be possible for a
So normally the body parser wouldn't be invoked for a |
How the SimpleResourceStore currently works is to look at the type value of the input RepresentationPreferences to know what kind of representation to return (this corresponds to the incoming Accept header). This is not possible if for some reason we would need a javascript object as representation (e.g., a stream of Quads), since those have no corresponding mediatype. Currently the SimpleResourceStore returns a stream of Quads if the type preference is missing, but this does make some assumptions and might become a problem for non-quad data, or if we have multiple javascript object types.
The text was updated successfully, but these errors were encountered: