psychoinformatics-de / shacl-vue

https://psychoinformatics-de.github.io/shacl-vue/
MIT License
0 stars 0 forks source link

Error when property shapes refer to nonexisting property groups #15

Open jsheunis opened 1 month ago

jsheunis commented 1 month ago

This relates to https://github.com/psychoinformatics-de/shacl-vue/issues/14

The current code runs through all property shapes related to a specific node shape, and checks if they have a sh:group attribute and assigns the relevant sh:PropertyGroup name to a list of used property groups. For these to be useful, they need a sh:PropertyGroup node in the same graph. If these nodes aren't available, the current code errors out. This error should be handles and there should be a fallback so that the UI still renders.