Skip to content

Commit

Permalink
update shacl multiple handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 24, 2024
1 parent 1b9f07b commit 2aa2c07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/shacl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ md:{{ object.name }}Shape
{%- else %}
sh:datatype xsd:{{ attribute.dtypes[0] }} ;
{%- endif %}
{%- if attribute.multiple is false %}
{%- if attribute.required %}
sh:minCount 1 ;
{%- else %}
sh:minCount 0 ;
{%- endif %}
{%- if attribute.multiple is false%}
sh:maxCount 1 ;
{%- endif %}

] {%- if not loop.last -%};{%- else -%}.{% endif %}
{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit 2aa2c07

Please sign in to comment.