-
Notifications
You must be signed in to change notification settings - Fork 19
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
Updated the vocabulary and added a diagram #171
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Diagram looks great!
Hm. That is strange. The generated SVG file has a |
@dlongley how did you get to dark mode? I have set my browser (chrome based) and went to the preview and displayed the vocabulary file and did not come out as dark mode... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice drawing!
My default browser uses "Dark mode for web contents" ( |
@dlongley I will look into this. The situation is different because the SVG file has active links, and those should be working both when the content is in the html file and when rendered separately. Would it be ok if, from your point of view, this PR could be merged, and I would treat this as a possible after CR improvement? It may take longer to solve this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving once the dark mode display errors are fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @iherman, it looks great!
I'll note that I don't see created
in the property list for Proof
(it should be there along with expires
, nonce
, etc.).
Shoot... Actually, it is/was worse: the term was missing from the vocabulary altogether! Added now. I also made a tiny addition to the diagram by (artificially) showing a specific connection between the Graph with what it contains. |
That black-dotted-line for I suggest also changing the line style of Last, I suggest reversing the direction of the |
I agree.
Just to be clear, what you would like to see is sg like Domain Class -- . -- . --- > Property Box - - - - - > Range Class where the domain and range arrows would have the same color by different style? The only disagreement I have is the same color aspect. The line types in the tool I use may not provide enough differentiation, and having different colors may help. Otherwise, I agree.
Agree. I will change the key label. @TallTed : procedural question: is it o.k. if we merge this PR (which also contain vocab changes) and postpone the new diagram generations slightly (this also includes your comment on the VCDM diagram). The reason is timing: the changes I had to do to make the diagrams working on dark mode led to a small problem: while all the boxes on the diagram are also active links to their respective definition (which I think is a good thing) the changes I used destroyed that (you can only click on the borders of the shapes). I have found a way to overcome that in the tool I use, but it necessitates a complete re-generation of the figures, which takes some time (and I will be off next week). I would not want to hold this PR in the air for too long. Cc @msporny |
Something like that, yes, ensuring that the arrowheads (no more diamonds) in the key match the directionality in the diagram. Since Property has Domain and Range (neither Domain nor Range has Property), the arrows should both point from Property, so
I can see how the different colors could be useful, so will not argue with keeping them.
Sure. Since the diagram will then be done some days later, I request a minimally detailed tracker issue be opened, just to ensure it doesn't get lost in the shuffle. |
Editorial, multiple reviews, changes requested and made, no objections, merging. |
Now that most of the DI related PR-s are merged, I did a sync step for the vocabulary by updating it. In particular:
Proof
class is now defined through the spec (as it should)proof
property is defined through https://www.w3.org/TR/vc-data-integrity/#proof-sets section; the comment field has been removed (a specific<dfn>
for the property might be better, but this is also working).Key
class has been set as 'deprecated' (there is no mention to it in the spec!)Ed25519VerificationKey2020
is now a subclass ofsec:VerificationMethod
, which is in line with how it is used in the eddsa spec (the previous setting was probably buggy)sec:cryptosuiteString
datatype has been added to the vocabularyI have also finalzied and added a diagram for the vocabulary, along the same lines as w3c/vc-data-model#1236. Hopefully, this will help locating possible errors in the vocabulary. Note that the long description for the diagram is missing; I will do that when there is a consensus as for the content of the diagram itself.
As usual, the preview for the result is also available here (although the vocabulary changes are pretty clear):
https://w3c.github.io/yml2vocab/previews/di/
In particular, the diagram is also directly available here:
https://w3c.github.io/yml2vocab/previews/di/vocabulary.svg