-
Notifications
You must be signed in to change notification settings - Fork 111
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
reconsider @id
for mediaType
term
#1408
Comments
Just to make it clear for other reviewers in the WG: we are talking about making a choice, in the VCDM vocabulary, between two externally defined terms for our internal use, namely:
Our usage of the term is defined in the VCDM spec that uses the term Back to the original question of @gobengo: we made a decision in the past of relying on externally defined terms whenever possible, hence our usage of several schema.org terms in our data model (instead of redefining them locally). Technically, we could decide not to use a schema.org term but, instead, map the value to the activity stream version (i.e., switch to choice (2) above); that would affect the VCDM only superficially. Also, taking into account the fact that this term has been introduced into the model relatively recently, I do not think it has any backward compatibility issue with deployed applications. On the other hand, doing so would bring some inconsistency in the vocabulary; that is why, taking into account the widespread usage and importance of schema.org, I am a little bit reluctant to do the switch. But the choice is not mine, but the WG's; if the WG decides to switch, I am happy to accept. However. Making one step backward here for a moment: I wonder whether this may not be a more general issue that we may want to look at first. The use case of @gobengo is interesting in general: combining a well established Linked Data vocabulary with the VCDM. The fact of having a clash with the term names is bound to happen again. While the case of |
I provided an answer at the original issue. My view regarding "wider questions" is: the fact that some contexts that predate the usage of |
Note: If we feel strongly about avoiding conflicts in particular with the |
Thanks, @dlongley. If your solutions work and are acceptable to @gobengo, then we can indeed close this current issue. Two remarks, however:
We have to acknowledge that this is non-trivial for designers, and it requires a more elaborate knowledge of how
I am not sure how this would be possible. We deliberately chose to keep the domain of (But, again, you may have some extra |
@dlongley wrote:
Here's the link to the answer: w3c/json-ld-syntax#424 (comment)
As Ivan noted, the use of
The question in the group will become: "Why is Activity Streams, which has far less usage than schema.org, defining mediaType? Why isn't Activity Streams just re-using schema.org Another option could be that the AS3 (the next version of the context) would change/update to use schema.org. I don't have a strong opinion one way or the other on this issue, but I am hesitant to change things w/o more implementer feedback. How many implementers are planning on using VCDM v2.0 w/ AS2. If this is an experiment at this point, with no production-track implementations doing the above, then it's going to be a hard sell to the WG. We are attempting to go into CR this coming week with VCDM v2.0, so any kind of "hail mary" type change at this point would probably be frowned upon. I will note that we can change the context file during CR (we explicitly mention that we might do that in the spec). So, the options open to us in "least disruptive" to "most disruptive order are:
I'm marking this as post-CR since we can "fix" this in CR and will need more time to discuss on the proper path forward here given that we're trying to transition VCDM v2 into CR this coming week. |
@msporny sounds right. options 3 or 4 would be ideal. Moreso even than option 2 which is what my original post suggests only because I didn't think of options 3 or 4. |
I presume that the easiest solution for all of us is option (4), unless AS2 does that change for the I am happy to come up with a PR if we have a general agreement. Do we? |
Unfortunately, I don't think any of the options are "easy". The problem is that both AS2 and schema.org have claimed two different ways of expressing media type and now VC2 is in the unenviable position of having to choose one or the other, or do something weird (like start using the "encodingFormat" term, which is not readily used in the industry). In VC2, we really do mean media type w/ our property... so I don't think renaming it to "encodingFormat" is the right way to go.
No, unfortunately, I don't think we do. I think we need to be very careful about what we do here, none of the options are as straightforward as they seem. Yes, some of them are "easy" in that they don't require us to think too hard about the repercussions, but there will be repercussions. I think the next step is to list "Pros" and "Cons" for each approach so we can do a full analysis w/ the VCWG engaged. Let's not do something hasty here as |
Just for the sake of arguments: for some reason (maybe being faced with a similar dilemma), the schema.org vocabulary creators decided to use the I do agree that this is a VCWG's choice, though. A PR can come before doing that (to facilitate the decision) or after it. |
schema.org has redefined a great many things, or at least ignored common use and understanding, without much if any apparent concern for any repercussions. Something about being backed by multiple 800lb Gorilla organizations seems to encourage this. Several IANA media types may be encoded in multiple ways. For instance,
Maybe we might consider |
The issue was discussed in a meeting on 2024-02-14
View the transcript2.6. reconsider
|
#1440 has been raised to solve the issue. It should be closed if the PR is merged. |
I think I agree with many of the points here including:
Questions:
Important note:
My opinion:
|
Hi @davidlehn, I think we are (all) in a wild agreement that none of the solutions are perfect. There are bad and worse options... Just to reflect to your questions:
Personally, I have no idea. Let me refer back to @TallTed's remark in #1408 (comment)
Not that I know of.
I do not think it is realistic. Any change on schema.org requires a lot of time because it is a longish process (which, in view of its wide usage, is understandable). I do not think any of us would want to invest into something like that. In fact, we have several, orthogonal issues:
As far as I am concerned:
|
The issue was discussed in a meeting on 2024-02-21
View the transcript3.2. Changed the term
|
I've learned a lot since I originally filed this issue. I think I shouldn't have been so quick to suggest that VC vocab re-use as2 media type. That alone wouldn't really be a big improvement. In practice, I don't have an immediate need for putting as2 into a VC in a way where I can't also rewrite the as2 into some JSON-LD that does play nice with (e.g. prefixing all as2 terms with 'as2:' to remove any chance of colliision with a VC term). I don't think this issue as I originally wrote it is the best articulation of where vc-data-model may want to go from here, but some possible good next steps for other issues are:
I'm closing this so it's clear I no longer have any issue with vc-data-model, but if anyone wants to drive a particular change forward, do make another issue and link to it from here. |
- Switch `encodingFormat` term back to `mediaType`. - w3c/vc-data-model#1408 - w3c/vc-data-model#1440 - Add `EnvelopedVerifiablePresentation`. - Add type for `statusReference` and `statusSize`. - Fix whitespace.
- Switch `encodingFormat` term back to `mediaType`. - w3c/vc-data-model#1408 - w3c/vc-data-model#1440 - Add `EnvelopedVerifiablePresentation`. - Add type for `statusReference` and `statusSize`. - Fix whitespace.
- Switch `encodingFormat` term back to `mediaType`. - w3c/vc-data-model#1408 - w3c/vc-data-model#1440 - Add `EnvelopedVerifiablePresentation`. - Add type for `statusReference` and `statusSize`. - Fix whitespace.
Context:
credentialSubject
of a VC.mediaType
term conflicts with the@protected
vcdm2mediaType
termas:mediaType
.Questions
mediaType
in terms ofhttps://schema.org/encodingFormat
?Straw Man
The text was updated successfully, but these errors were encountered: