-
Notifications
You must be signed in to change notification settings - Fork 5
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
On "Visualize RDF Shapes (SHACL and ShEx)" #8
Comments
If I do this, it'll be in perl. I'm also considering a bastardized syntax to add cardinalities to turtle examples, which will be simpler to write and interpret: :node1 :link :node2,
[puml:min 1, puml:max 2] @tfrancart what do you think? |
Actually, since then, I developed this SHACL to PlantUML converter, in Java, based on TopQuadrant SHACL lib, and the result is at https://shacl-play.sparna.fr/play/draw and code at https://github.com/sparna-git/shacl-play/tree/master/shacl-diagram I don't have a strong opinion on the example you provide, an alternative idea that comes to my mind is
But this changes the structure of the example graph itself, which might not be convenient |
@tfrancart nice!
|
Ok, I see
So I guess peopl just don't bother to declare the type of their literals? |
Scalability problems:
|
Suggestion: move cardinality from edge label to arrowhead, this way you shorten the label and use the space better. Eg
instead of
(Sorry I'm too lazy to post properly in your project but I'm writing on mobile while watching the 1/4 final ;-) |
Indicated inside the box
That's a SPARQL property path used as the vaule of sh:path
Yeah, forget about these Shapes, they are very special : we defined one Shape for each property to be able to check domain / range
I don't see what you mean ?
It used to work - I'll see what happens
It used to work - I'll see what happens Try with "OpenArchaeo Shapes", it's the closest to a typical SHACL file we design and use in our projects. The others are all a little fancy. |
Hi !
What are your ideas about "Visualize RDF Shapes (SHACL and ShEx)" ? I'm thinking about parsing SHACL in Java using https://github.com/TopQuadrant/shacl and then output PLantUML text. Did you had any specific plans on this ? (I would have been happy to do that using RDF4J but I can't find a SHACL Object modelling in RDF4J).
Cheers
The text was updated successfully, but these errors were encountered: