-
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
Apply diagram changes #175
Comments
@TallTed, but also @dlongley, @msporny, @seabass-labrax I have updated the two diagrams and put them up into the yml2vocab previews. I prefer not to touch the "real" files on the vcdm, resp. di, repositories; real PRs can come later when the last minute pre-cr frenzy is over. But I would welcome your comments, so that the final incorporation would only be a formality. The two previews are here: @TallTed I believe I have incorporated your comments, but your check would be welcome. I have checked the color choices to see if it works all right with dark mode as well. I tested the files on several chromium based browsers with the experimental flag forcing dark mode on web sites; I also tested it with the "Dark Reader" plugin on Firefox. In all cases it looked o.k. to me, but @dlongley should be the final arbiter. I actually had a version (which is mostly the version in the "official" drafts without the changes as requested by @TallTed) that did not use any background colors in the shapes. I kept those versions as well, but I personally prefer the more colorful version. It is of course a matter of taste; if you think it is better not to use colors to fill the shapes, I am happy to switch back. (I am out next week, so no rush... I just wanted to get it out of the door before I go away...) @seabass-labrax, just for info the process now is : export from draw.io and then run it through a script that is built on top of SVGO... |
The diagrams are fantastic, thank you @iherman! The only thing that jumped out at me was this: Why is there an "OR" there? What does it mean? |
You are good at picking the weak points, @msporny. These three properties are special in the sense as their domain is Some (weak) alternatives:
None of these are good alternatives... |
@iherman — The revision does some things as I had requested, but I appear to have been unclear about others.
There are additional questions raised by the other diagram, but I think it probably better to get this one fixed, apply the fixes that apply to both to the other, and then dig further into the other. |
@TallTed I will take care of the changes in time, just two remarks:
|
One more remark, @TallTed: per the vocabulary, CredentialSchema is a superclass of JsonSchema. Again, if that is incorrect, the vocabulary should be changed and the spec clearer... |
Actually...
This may not be what you originally had in mind, but I am not sure it is really wrong as is. The current representation suggests that information "flows" from a class to another one via the property and, although I know this is not what a property does, it somehow fits the mental model for a domain and the range as far as I am concerned... |
Here's what the VCDM diagram looks like to me: The borders are a little hard to make out. |
@dlongley yes, that is in line with what I see. And, actually, just looking at the image makes it clear that the diagram would not pass the contrast ratio tests.
(Edited; see #175 (comment).) |
Ayie! It's doubly good we have these diagrams now, and that they were generated based-on/from the vocabs, which were generated based-on/from the spec — because this shows that the specs and the vocabs are wrong!
Yeah, dark mode is a dark art. As you've found, it can vary within a single app on a single OS. It also varies between different apps on one OS, and even more across different OS. Some do a partial color inversion; some do a full inversion; and others perform other tricks. All of which means we can only really control the light mode, and test dark mode on whatever OS and/or browsers we each have, toward making some recommendations to readers for what settings to apply when reading our documents.
Properties have domain and range, which are either Classes or Datatypes. Classes have neither domain nor range; they have Properties. I have no argument with the perceived suggestion of information "flow," but if that's what's being diagrammed, it should be labeled as such. |
Whether it is wrong or not, I do not know. I am in the humble position of translating the spec into the RDF world, and I do not claim to be a domain expert for VCs and VPs. @TallTed I would prefer not to discuss this problem in this issue. Would you mind raising a separate issue in the VCDM repo and possibly discuss it there? |
There is one more, purely aesthetic, reason why I would prefer to keep the diagram as is in this respect. If I have a bunch of lines all having the same starting point (on the Class) and all having an arrowhead, the result will be a big blob (unless all the lines are strictly vertical at that point but that means the connection lines would take up more real estate).
Would it be a solution to keep the diagram as is in this respect and label it as "Domain of" ? |
For those who have not experienced the blak art of dark mode... the example of @dlongley in #175 (comment) is based on the experimental setting of chromium to enforce dark mode on every site. I have installed the "Dark Reader" extension to my Chromium based browser instead, yielding the following figure for the same diagram: This is really black art... Although, I must admit, the extension seems to make a better job at least for my eyes... (The extension is also available for firefox and safari, although, interestingly, it is a paying extension for the latter.) |
To my (pleasant) surprise, using the contrast tool referred to by @TallTed, it was relatively easy to modify the colors (namely the font colors) to make the diagram pass the contrast checks and, at least on my machines, produce a proper dark mode image as well. (It looks perfectly fine when using the DarkReader plugin, mostly like #175 (comment), at also ok with the default Chromium built-in flag). It seems that I was pessimistic in #175 (comment). @dlongley, if it is also acceptable for you, then we could consider that part of the changes done. WDYT? |
That looks ok to me, but I would be concerned about having red text on a green background... my non-expert thought is that those things would be hard to read for people with deuteranopia. |
Maybe. But this is where I am completely out of control. The BW (original) version of the text passes the contrast control, the default chrome action for dark mode creates something different than the one you refer to that is generated by a particular browser extension. There is no standard in the area, and there is no way we could test with all available extensions… More importantly, there is no control over how things look like in dark mode.(*) I would propose to keep this as is for now. We will see whether there is an issue in practice; there is always the fall-back of ignoring all colors. WDYT? (*) there is, in theory: do the whole diagram in SVG directly, and by hand. That would mean adding (CSS) class identifiers to all shapes, and use CSS for the color settings. Then use the dark mode media query to set these colors the right way. However, doing the diagram entirely by hand is not something I am prepared to do; the only tool that works with SVG out of the box (that I know of) is Inkscape which, alas!, has a bunch of bugs in the connecting lines which make it fairly unusable for these types of diagrams. |
+1, sounds good to me. |
Yes. |
I have refreshed the diagrams, trying to incorporate all the comments of @TallTed. (I am out for the rest of the week) |
@iherman -- Just one more thing, when you return, presuming that the domain/range statements and illustrative connectors remain as they are. The point where 5 lines come together, between We'll need to tweak the text around these diagrams a bit, and maybe elsewhere in the doc, to make it clear that these are recommendations -- e.g., that |
@TallTed I hope I understood what you asked. And it is indeed better, the crossing point of the domain lines are now more visibly part of the other domain lines. Thanks. Of course, the diagram will probably change, depending on the outcome of the open issues: the domain lines might be all common, which probably means that this crossing point will move to the "north" a bit and will have much more arrows coming out of it. Also, there may be yet another box for as for
Strictly speaking, all of these are "recommendations" in RDFS, which shouldn't be used for verification or resulting in failure. That is SHACL land, except that SHACL (or ShEx) are not prepared to express the "contain" relationship. Actually, it would require OWL (using property cardinalities) to reinforce the things you ask for, something that says that, for example, the |
Yes, that's much better. Every little bit helps! |
I believe that with the PRs #189 and w3c/vc-data-model#1268 the diagram changes have been pushed "back" to the main branches, and this issue could be closed. |
No objections raised to closing since marked as |
This is just a warning place to adopt some changes on the vocabulary diagrams, see #171 (comment) and the followups in #171 (comment) and #171 (comment)
The text was updated successfully, but these errors were encountered: