Closed jsheunis closed 2 days ago
- sh:PropertyGroups aren't linked concretely to specific node shapes => their use depends on where they are defined in properties by means of the sh:group attribute, which is a property shape characteristic. Practically, this means one can't just use all available sh:PropertyGroup instances in a graph and assume that together they define how a form is to be rendered. One has to take it from the context of the focus node, i.e. which node shape is used to render the root of the form (e.g. Data Distribution), and which property shapes does it have that include the sh:group attribute. These would make up the list of sh:PropertyGroup instances that should be used to render the form.
- What to do with properties that do not have an sh:group attribute? IDEA: implement a default property group, where all such properties are superficially linked to. These should probably still be rendered in order based on sh:order.
These have both been addressed in the current implementation, exactly as described by these bullets.
The idea here is to render properties by category in a form, i.e. all properties that belong to the same topical grouping should be grouped together physically in the form.
On the face of it, this seems straightforward with the use of the
sh:group
attribute on a property shape that points to ash:PropertyGroup
class instance. E.g.:and
But there are some intricacies to deal with in real data:
sh:PropertyGroup
s aren't linked concretely to specific node shapes => their use depends on where they are defined in properties by means of thesh:group
attribute, which is a property shape characteristic. Practically, this means one can't just use all availablesh:PropertyGroup
instances in a graph and assume that together they define how a form is to be rendered. One has to take it from the context of the focus node, i.e. which node shape is used to render the root of the form (e.g. Data Distribution), and which property shapes does it have that include thesh:group
attribute. These would make up the list ofsh:PropertyGroup
instances that should be used to render the form.sh:group
attribute? IDEA: implement a default property group, where all such properties are superficially linked to. These should probably still be rendered in order based onsh:order
.