Develop mapping mechanism from RDF data to wizard #398

Open
opened 2026-11-24 20:46:09 +00:00 by jsheunis · 0 comments
Owner

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 standard shacl-vue form 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.

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 standard `shacl-vue` form 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.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/shacl-vue#398
No description provided.