-
Notifications
You must be signed in to change notification settings - Fork 103
Conversation
I agree with the proposal. I think we should fix nodeSolidServer/node-solid-server#275 (ldnode currently relies on file extensions to preserve content type) first. But should merge after that. |
@timbl also discourages including file extension in URI in https://www.w3.org/Provider/Style/URI
|
Noticing nodeSolidServer/node-solid-server#445 I would like to clarify if solid spec requires a server to store RDFSource payload of POST/PUT exactly as received, or server can choose to store it in quad store, or as Normalized RDF. I hope that solid clients will never rely on 'file extensions' and always rely on HTTP headers (Content-Type & Accept). So if https://github.com/solid/node-solid-server/ relies on file extensions it stays as its internal implementation choice and not recommendation of the spec. |
In modern systems, URIs tend to be opaque, so it should not matter all that much. However when choosing a name there are certain advantages to adding the .ttl suffix. Apart from that it is intuitive, less modern systems such as github will correctly interpret the extension and serve the correct content type header. |
already 2 years have passed, I consider just closing this PR as part of spring cleanup... |
@elf-pavlik thanks for flagging this, and for the creation of PR. As noted, there is some non trivial, re architecture of node solid server that would change how we deal with extensions and content negotiation Also related is this new issue : nodeSolidServer/node-solid-server#645 We can close this if you are more happy that way, or keep it open and change the docs after the re architecture is complete. |
Thank you @melvincarvalho I'll leave this one here open and will also follow issue you've linked |
LDP spec has MUST for both |
Yes. There is a conneg difficulty at the moment, but extensionless files are interpreted as Turtle (which is the conneg issue, but works to our advantage here). |
https://www.w3.org/TR/ldp/#ldprs-get-turtle The spec says turtle first, then json-ld, which is the order node solid server has done it. I agree with Ruben it's to our advantage, in this case. I've had good experiences with turtle data. |
In that case merging this PR will not result in IRIs which would not work with node-solid-server. I could create separate issue in that repo to not use
I think for request with just |
I still stand behind changes proposed in this now 3 years old PR 👴 |
Please add your suggestions on routes forward and your thoughts on the pros and cons of each to the following table:
|
Route Forward: Merge this PR and don't use 'file extensions' in any URLs used in the spec, at least RDFSources Pros to Consider: Following referenced Web Architecture best practice, and avoiding confusion when RDFSources allow content negotiation Const to Consider: I don't see any cons |
I second @elf-pavlik's proposal |
https://www.w3.org/TR/webarch/#uri-opacity
While some server implementations might start using persistence like https://github.com/rdf-ext/rdf-store-fs they might later change to quad stores, document stores or IPFS and use RDF Dataset Normalization.
Suggesting particular media type / file format in URIs looks like not following Web achitecture good practice.
BTW https://github.com/solid/solid-spec/blob/c9f6ba28315efcd467aa2057bff75fadaa59cf55/solid-webid-profiles.md
already uses card not card.ttl!