ULB-Darmstadt / shacl-form

HTML5 web component for editing/viewing RDF data that conform to SHACL shapes
https://ulb-darmstadt.github.io/shacl-form/
MIT License
28 stars 5 forks source link

Fragile to order of shapes #25

Closed mgskjaeveland closed 1 month ago

mgskjaeveland commented 1 month ago

I noticed that the generated form changes if the order of the input shapes is changed. For instance, if the example:Person shape in your example (https://ulb-darmstadt.github.io/shacl-form/#example) is moved as the first node shape in the input, then the generated form ends up only supporting creating a single Person.

Perhaps you should infer what the topmost shape(s) is/are and/or allow the topmost shapes to be specified? (Perhaps you already support this and I have missed it.)

s-tittel commented 1 month ago

Hi, correct, shacl-form does not try to infer a best matching shape. There a two ways to specify the root shape:

Closing, please reopen if you are still missing anything.