AssociationClassEditor for named node records #284
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-vue#284
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For example, if one wants to make it simple for users to fill in a form that expects many floating point values, while still making those particular fields have the range of e.g.
DataItem, which is aThingand has a PID, i.e. is a named node inshacl-vue.Currently, the
AssociationClassEditortogether with adash:KeyInfoRoleannotation on an association class (i.e. blank node) record will render the editor for the annotated property of the association class record. However, this currently assumes that the functionality is only used for blank node records.It could be possible to the generalize the
AssociationClassEditor(currently limited to blank nodes / assocation classes) to aKeyInfoRoleEditorwhich allows for all node types. After all, the important bit is that there is a weight-carrying slot on the linked record (whether it's an association class or a PID-record) that needs to be rendered directly to the user, so that they don't have to create the interim linked record.First revisiting the commit history to get a thorough understanding of the working principles of the current component:
datalink/shacl-vue@51ce6c0af7datalink/shacl-vue@2d9ce57006So the current operating principles are:
The component matches when the slot has a class as a range, AND that class does not have the PID slot (i.e. is an association class), AND any slot of that class has the
dash:keyInfoRoleannotation:When the component mounts (in
onBeforeMount), it creates the association class record quad (with blank node subject), and adds it to the graph, if it does not exist yet:It provides an 'information' icon, which will display a 'BlankNodeViewer' for the association class record once any additional relations are set on the record. This viewer will show all relations.
As far as I can see, to make this work for PID records we should be able to replace the currently used blank nodes with named nodes, without too much fallout (if any).
@mih do you know of a current use case that would motivate this development?