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

Ability to annotate property shapes so that they are displayed as datatype properties in the diagram #137

Open tfrancart opened 2 months ago

tfrancart commented 2 months ago

Original proposal at #136 Which annotation to use ? Add something in http://data.sparna.fr/ontologies/volipi/index-en.html ?

tfrancart commented 2 months ago

For the moment use a SHACL-Play specific annotation:

eli-ep:P19 
  sh:path eli:is_derivative_of;
  sh:name "is derivative of"@en;
  sh:description "This work is derived from the other work. Example: a motion derived from an oral question."@en;
  sh:nodeKind sh:IRI;
  sh:class eli:Work;
  # extra annotation to control behavior in the graph
  shacl-play:diagramViewer shacl-play:DiagramDatatypeViewer .
.
tfrancart commented 4 weeks ago

Rather implement it using sh:group and property groups :


eli-ep:P19 
  sh:path eli:is_derivative_of;
  sh:name "is derivative of"@en;
  sh:description "This work is derived from the other work. Example: a motion derived from an oral question."@en;
  sh:nodeKind sh:IRI;
  sh:class eli:Work;
  # extra annotation to control section in the graph
  sh:group eli-ep:Group1
.

eli-ep:Group1 a sh:PropertyGroup
  rdfs:label "my group"@en ;
.

``
tfrancart commented 3 weeks ago
  1. Si plusieurs propriétés sont dans le même groupe, il faut les merger, sinon le groupe va apparaitre dupliqué
  2. Si c'est une propriété qui devrait faire une flèche, il ne faut pas que la flèche soit affichée (et idéalement, il faudrait mettre le petit rond vert comme pour les autres propriétés qui sont rentrées dans la boite)
  3. supprimer la police en gras et le code de langue
tfrancart commented 2 weeks ago

Need to document it on the page