-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improved Usability of SHACL Play diagrams. #136
Comments
Thank you for your constructive comments.
I think this could be misleading and I don't think this is the role of the diagram generator. If you want to "tell a story about your model" with the diagrams, then you need to design the diagram(s) yourself. The best SHACL Play can do is to split large diagrams into smaller ones with
I would definitely consider this. Actually we already do that in some situations: https://shacl-play.sparna.fr/play/draw#simplification So adding an extra annotation on property shapes to control this, and/or relying on
I actually had the same thinking a few weeks ago, and actually implemented this, but then rollback. In some situations I found multiple node shapes targeting the same class, so displaying the class instead of the shape didn't make any sense. But adding an option to control this behavior would probably be the way to go. |
Hi,
Do you have any code snippets or branches that show how you handled this? We might want to try out the same feature. It's been a while since I've written any Java, so some examples to get us started would be really helpful. |
No, unfortunately. I think now the diagram displays the node shape identifier and the target class, if any, in parenthesis. |
Thanks for SHACL Play, it is a useful tool! This is more a question/teasing comment - and maybe you will find some of the following out of scope for SHACL Play, or find that solutions for this already exist (just could not find them):
While SHACL is meant for validation it is reused as a data schema definition language. For example, some node shapes are purely technical and don't deserve to appear in the graph depiction if they increase its complexity (a complicated graph is of no use). Also, as the SHACL data model tries to pose constraints on the RDF vocabulary it would be more useful to visualize the datamodel in terms of their
sh:targetClass
es/sh:path
s, rather than the shape themselves,Here are a few points to things that would heavily improve the readability of the generated diagram:
... sh:class skos:Concept
)Thanks for reading!
The text was updated successfully, but these errors were encountered: