Skip to content

Adding display provider, resource filter and shacl sparql pattern for autocomplete widgets#922

Open
danielbeeke wants to merge 4 commits into
gh-pagesfrom
issue846
Open

Adding display provider, resource filter and shacl sparql pattern for autocomplete widgets#922
danielbeeke wants to merge 4 commits into
gh-pagesfrom
issue846

Conversation

@danielbeeke

@danielbeeke danielbeeke commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Closes #846

As described in #846 we wish to allow using SHACL SPARQL to get autocomplete list items. I searched for a way to also allow standard SHACL to use the shui:ResourceFilter and the shui:DisplayProvider.

Questions:

  • Is it okay to have these new chapters (Display Provider and Resource filter)? I first had them under the label and language resolution but it does not fit fully to my mind.

Comment thread shacl12-ui/index.html
Comment on lines +1624 to +1625
<p>A <code>shui:DisplayProvider</code> can be attached to a shape to provide custom data fetching for labels, descriptions and other UI elements. This can be done with property shapes
and also by using SPARQL queries. The fetched data can then be used by widgets such as the <code>shui:AutoCompleteEditor</code> and the <code>shui:EnumSelectEditor</code>.

@TallTed TallTed Jun 5, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I read the original text to mean. If I'm incorrect -- if a restriction similar to line 1760's for shui:ResourceFilter also applies to shui:DisplayProvider -- my suggestion should not be fully applied, but a variation of line 1760 should be added around line 1627.

Suggested change
<p>A <code>shui:DisplayProvider</code> can be attached to a shape to provide custom data fetching for labels, descriptions and other UI elements. This can be done with property shapes
and also by using SPARQL queries. The fetched data can then be used by widgets such as the <code>shui:AutoCompleteEditor</code> and the <code>shui:EnumSelectEditor</code>.
<p>A <code>shui:DisplayProvider</code> can be attached to a shape to provide custom data fetching for labels, descriptions, and other UI elements. This can be done with property shapes
and/or by using SPARQL queries. The fetched data can then be used by widgets such as the <code>shui:AutoCompleteEditor</code> and the <code>shui:EnumSelectEditor</code>.

@edmondchuc edmondchuc added the UI For SHACL 1.2 UI spec label Jun 8, 2026
Comment thread shacl12-ui/index.html
</tr>
</table>

<p>A <code>shui:ResourceFilter</code> MUST use either property shapes or SHACL SPARQL queries. The query is malformed if both or none are present.</p>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this MUST-requirement also hold for the DisplayProvider? Should it also be made explicit there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI For SHACL 1.2 UI spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core & UI] Referencing external dynamic IRIs in sh:in for federated SHACL validation and UI option lists.

4 participants