Develop mapping mechanism from RDF data to wizard #398
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/shacl-vue#398
Loading…
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?
The wizard editor is currently a one-way mapper, from wizard-guided data entry to RDF data. IOW: a user opens a wizard (which is always empty), they enter data, they hit save, and the wizard code (could be runtime-plugin-based) along with the TTL template will generate the RDF data.
There is currently no way to do the reverse, i.e. click a wizard button on some data record and then see the same (and related) data inside the wizard.
I was thinking about this in the context of a distribits registration form, or anything similar, where a wizard would be used because of the need to embed field-value-based logic into the form ("if user selects X for question 1, hide question 2") which is not possible with the standard form-generation mechanism of
shacl-vue. Say a user used the wizard to complete such a form, and later they want to come back and edit their data, with the current functionality they won't be able to see their data in the wizard again. It would be in the standardshacl-vueform for their record, which might be confusing.So what would be needed is a sort of reverse mapping, the opposite of what the TTL(+nunjucks) template is doing currently. The wizard has a data object, which the template takes as input and then maps onto a static rendering. We need a mechanism that takes the static rendering (RDF data) and maps it onto the wizard-defined data object.
In essence it is a mapping between schemas, and some code to execute that mapping.