sparna-git / shacl-play

SHACL validation UI, SHACL documentation generator, SHACL generator from RDF.
http://shacl-play.sparna.fr
GNU Lesser General Public License v3.0
24 stars 15 forks source link

Display simple cases of sh:or in the diagram (e.g xsd:string or rdf:langString) #117

Closed tfrancart closed 4 months ago

tfrancart commented 6 months ago

Original comment in #116 .

In cases where the property is a Literal, with an sh:or on datatypes, the diagram could include "xsd:string or rdf:langString". Now that we know how to display that in the HTML table, we could replicate it in the UML diagram.

tfrancart commented 5 months ago

Test SHACL : https://github.com/euBusinessGraph/eubg-data/raw/master/model/ebg-shapes.shacl, property, skos:altLabel on Company.

  1. in ExpectedValue, the attribute "or" should be a List and it should be concatenated in the XSLT
  2. reuse PropertyShape.getShOr() in the diagram generation. Move the method in shacl-commons. Create a package ....jena.shacl and move all SHACL-specific methods in a new class in this package : ShaclUtils
  3. in PlantUmlProperty, add a new attribute to store the "or" when they are or of datatypes.