-
Notifications
You must be signed in to change notification settings - Fork 34
Issue #486 ValidationReport UML #487
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
base: gh-pages
Are you sure you want to change the base?
Issue #486 ValidationReport UML #487
Conversation
Co-authored-by: Yousouf Taghzouti <[email protected]>
shacl12-core/index.html
Outdated
// Load and inline SVG diagrams | ||
// TODO: add <svg desc> for accessibility | ||
function svgInline(svg) { | ||
fetch('images/'+svg) | ||
.then(response => response.text()) | ||
.then(svgText => { | ||
const container = document.getElementById(svg); | ||
container.innerHTML = svgText; | ||
})}; | ||
|
||
// svgInline('SHACL-UML.svg'); | ||
svgInline('ValidationReport-UML.svg'); |
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.
Why don't you use plain HTML with an img element? That would reduce the total lines of JS code and make the spec a bit easier to maintain.
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.
I think we won't have clickable links with img.
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.
Makes sense. But it should be mentioned in the comment.
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.
@bergos that's exactly the reason.
Same as this prior PR: replace with script that embeds SVG content
Co-authored-by: Thomas Bergwinkl <[email protected]>
Co-authored-by: Yousouf Taghzouti <[email protected]>
@YoucTagh adding the abstract class results in 2 parallel arrows (one relation, the other inheritance). Do you really like this? ![]() |
@VladimirAlexiev, I believe this better reflects the model. However, I think it would be clearer if the two arrows were not positioned directly on top of each other. |
Closes #486
See document rendered online. UPD: works now.
Note: For some reason the HTML preview doesn't work right now (githack cache is not invalidated?). These two show different things (Do I have some stupid mistake in the URLs?):
You can see the diagram in "Files changed"