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
25 stars 15 forks source link

Diagram/Doc : add limited support for sh:or with multiple sh:node #20

Closed tfrancart closed 3 years ago

tfrancart commented 3 years ago

Use-case : a schema:contact can be either a schema:ContactPoint either a schema:PostalAdress See if we can either repeat the arrow, or group all the classes within a package and point to the package ?

tfrancart commented 3 years ago

Avec l'utilisation d'un "diamond" :

@startuml
class ContactPoint {
}

class PostalAddress {
}

class MEP {
}

<> diamond
MEP --> "contactPoint" diamond
diamond ... PostalAddress
diamond ... ContactPoint
@enduml
tfrancart commented 3 years ago

To be consistent we also need to support this in the documentation table generation : PropertyShapeDocumentation need to support references to multiple node shapes