-
Notifications
You must be signed in to change notification settings - Fork 97
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
Fragment identifier semantics are independent of URI scheme #1
Comments
It seems to me that what we need to resolve is this would be a PR with a MIME type registration section (per w3c-ccg/did-spec#82 (comment)). |
I'd like to move this forward, and have no problem with the proposed solution, but am not sure what a |
@brentzundel is this what you are looking for? https://w3c.github.io/json-ld-syntax/#iana-considerations However... @msporny referred to (in w3c-ccg/did-spec#82 (comment)) to the possibility of something like Another possibility is to use profiles for json-ld. Profiles' usage is a mouthful, not very nice, but I am not sure we have another choice. |
@iherman thank you for pointing me to that resource, that is exactly what I was looking for. |
Hmm, couldn't find that "only one '+' sign in the media type" text in the RFC... :) https://tools.ietf.org/html/rfc6838#section-4.2.5
Options seem to be:
@brentzundel -- I don't expect any of this would keep you from writing the section, just pick one... did+json is probably the safest, and we can refine it once the PR has been raised. |
@msporny I looked through https://www.iana.org/assignments/media-types/media-types.xhtml#application and there was not a single example for a registered type for multiple '+' signs. You are right that, in a first reading, https://tools.ietf.org/html/rfc6838#section-4.2.5 does not seem to make a restriction there (although I am not sure what the term 'suffix' means precisely in that section, whether it can only refer to the top level type under application or not). To be on the safe side I have sent a mail to my more knowledgeable colleagues to ask for advise. (I know that other groups hit this issue and shied away from using a deeper hierarchy.) Of course, this issue becomes moot if The choice between that one and |
The ABNF in RFC6838 says "Characters after last plus always specify a structured syntax suffix". I think this doesn't mean that If we want to avoid the two pluses, then something like I do think it's important to point out the JSON-LD nature one way or another. |
I am afraid that, indeed, this would be confusing...
Which pretty much leaves us with the option of application/ld+json with a profile, although I do share the issues @msporny raised on that. |
There are many examples of hyphenated construction in MIME types, including One of the points of the Alternatively, we might pursue registration of |
I would not go to the third option (you say it is not forbidden by RFC, @peacekeeper's review says the opposite, so is current practice...). Using a mixture of hyphen and plus sign is indeed an option.
That is all correct. However, for this specific case, a JSON-LD processor does function with any JSON dialect, ie, something like did-ld+json would work, too. (Although it is not 100% clear to me how it would 'recognize' an incoming pure JSON file as JSON-LD. @dlongley should know much better than I will ever do:-)
I would exclude this option. This WG is not chartered to act on behalf of a Recommendation "owned" by another WG. |
Hmm I don't think I said the opposite? I agree |
Oops, I misread your original comment #1 (comment), @peacekeeper, my apologies. |
However... if I follow @peacekeeper's interpretation, this means that |
The DID WG could reasonably "pursue" the registration of As things stand, the "main" syntax of JSON-LD is JSON, and therefore the "main" syntax of any syntax built off of JSON-LD would also be JSON. If JSON-LD is now mature and with sufficient adoption to be considered a "main" syntax in its own right, then |
If Personally, I would not want to go down the |
Agreeing w/ everything @TallTed said, and... Yes, the DID WG should probably not do a application/jsonld registration... but we do have an active JSON-LD WG and it would be trivial for them to do it. That said, we'd have to overcome this hurdle: What would the file extension for application/jsonld be? .jsonld is already taken. What would a system do when negotiating for a JSON-LD document, accept both application/ld+json and application/jsonld? Unfortunately, I think we've painted ourselves into a corner with application/ld+json. The right thing to do, in hindsight, was application/jsonld. We didn't do that, so we're sort of stuck with application/ld+json unless we can figure out a way around the file extension and the backwards compatibility problems. I think we can suggest something sane wrt. backwards compatability... I can't think of a simple solution to the file extension issue. |
There is precedence for Media Type deprecation (search for There is also precedence for multiple Media Types mapping to one filename extension (so
and
|
This is a last minute request that you could raise with the JSON-LD WG. Last minute, because the plan is to go to CR in the coming weeks, and this would be a substantial change (the processors should understand this extra media type, too). At this point my vote goes for trying did+ld+json and see whether IANA accepts that. |
Which would leave us high and dry, if IANA doesn't like it for whatever reason, because by that time, JSON-LD WG may well be done and gone. Some things are well kept isolated; some things require working in tandem. I think this falls into the latter group -- that if we are going to pursue We have crossover membership with JSON-LD WG; I think (hope) those folks have sufficient understanding of the two work spheres to shepherd this along. |
@TallTed I have raised it as an issue over there: w3c/json-ld-syntax#287 That being said: the WG has declared feature freeze a while ago and has now a hard internal deadline for freezing the document. It is not only a matter of registration; the JSON-LD API document must be modified as well, to add a reference to this media type alongside the current ones, and processors must be modified as well. |
@iherman - Caveats understood; this is a non-trivial change, in all ways, and its timing is suboptimal at best. Still, it will be beneficial overall, and I expect all concerned parties will reach that conclusion after full consideration, which I hope may happen quickly. |
See https://www.w3.org/2018/json-ld-wg/Meetings/Minutes/2019/2019-10-25-json-ld#section3-2 (JSON-LD WG Meeting Minutes) |
Dear DID WG, As Ivan has said in the thread above, we are ready to go to CR with just a little bit of administrivia, so this is about as suboptimal as it could possibly be. In order to move this forward as quickly as possible, we would like to invite you to our next WG call, Friday November 1st at 12 noon Eastern, with these call-in details (members only link). It is our current belief, but also currently unsubstantiated, that the registration of a profile URI can be accompanied by a file extension registration. Thus our equally current stance is that Thanks! |
I'm o.k. with that (with the caveat in #1 (comment)) but shouldn't we add, eventually, |
Yes, but I know of no one that has a CBOR encoding at present... it's more of a thought experiment... and then there is the potential "+ld+cbor" for CBOR-LD, which has yet to materialize. My expectation is that a normative CBOR representation doesn't survive the DID WG and we'll end up referring to it in a non-normative way... and the IANA registration for did+ld+cbor and did+cbor won't exist in DID Core v1.0. |
There is now a PR to address this issue: PR #196 -- merging that PR will automatically close this issue. |
Taken over from the CCG (w3c-ccg/did-spec#82).
Notifications to @msporny @peacekeeper
The text was updated successfully, but these errors were encountered: