[data-shapes] [UI] Possible input combinations to SHACL UI processor (#609)

edmondchuc has just created a new issue for https://github.com/w3c/data-shapes:

== [UI] Possible input combinations to SHACL UI processor ==
SHACL UI may operate in different modes -  such as search or query - to support various UI use cases. Each may require different inputs to the traditional form use case.

This section focuses specifically on the form mode.

At a minimum, a SHACL UI processor requires the following inputs:

- data graph
- shapes graph
- focus node
- node shape

In form mode, SHACL UI uses the focus node as the primary resource to render, and the node shape as the root definition, applying its own constraints - as well as any other connected shapes - to generate the form.

In some scenarios, an application may allow the user to choose which node shape to apply to a form. To support this, the system needs a function that determines which node shapes are valid for, or targets a given focus node, based on the data and shapes graphs. This process may occur before supplying the required inputs to the SHACL UI processor.

Another possible input combination is to provide a data graph, a shapes graph, and a focus node, and let the SHACL UI processor determine the most suitable root node shape to apply to the form. However, this approach might not be feasible in practice, as it introduces significant complexity and places additional burden on UI implementors.

What other input combinations should we consider?

Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/609 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 14 October 2025 02:33:14 UTC