core-wg / href

Other
2 stars 0 forks source link

Revisit whether we do need authority-less support #11

Closed chrysn closed 2 years ago

chrysn commented 2 years ago

(Yes I know, I brought this up initially... but we've come some way in CoRAL since then, and I'd like to reflect whether we're on the right track still).

Supporting URIs with no authority ("URN-style URIs"?) brings some complexity. Does that carry its weight?

I hope to come to a way forward within a few minutes today, and conclude this.


Scratchpad notes (primarily for design team meeting):

cabo commented 2 years ago

"did" (W3C d-something ID) is a URN-form URI that we probably need to support more, not less

chrysn commented 2 years ago

Looking at their syntax, they should really have put the method-name:method-specific-id into the authority component :-/

Now they have URLish identifiers (with their own path structure importing path-abempty after their prefix) but can't use discard-all.

sigh

I guess that settles it.

chrysn commented 2 years ago

Summarizing further discussion: For DID URLs (they are used in both forms, but both are authority-less) CRI URNs do provide useful preprocessing. It's not clear yet how useful DID URLs will really be, but if they will, support in CRIs will be helpful.

Thus URNs stay in CRIs for now; implementers can still skip them if they don't plan ever dereferencing or storing them.

cabo commented 2 years ago

Based on the agreement that we want to support URN-style URIs like DID, I think we can close this now.

chrysn commented 2 years ago

I'm not fully sold here. The complexity we'd have to allow in to capture ever CRI is substantial.

There's two values in CRIs: Providing a model that's easier to deal with than URIs, and serializing that model for CoAP URIs. Pushing the model to be all-encompassing threatens the simplicity of the CoAP serialization. A solution for DIDs might be to have URNs in the model (there limited to what a particular DID variation can do), and have serializations for DIDs and CoAP URIs that share parts of the model but not the full insanity.

chrysn commented 2 years ago

From today's discussion: Complexity is there in the model, .feature "extended-cri" makes that visible to whoever wants to use anything that needs it. OK with me.