Skip to content

[UI] Add missing properties to global configuration - #1190

Open
smessie wants to merge 3 commits into
gh-pagesfrom
ui/global-configuration-properties
Open

[UI] Add missing properties to global configuration#1190
smessie wants to merge 3 commits into
gh-pagesfrom
ui/global-configuration-properties

Conversation

@smessie

@smessie smessie commented Aug 24, 2026

Copy link
Copy Markdown
Member

Follow-up to #869, which added the global configuration in PR #900.

Two properties are described elsewhere in the specification as global configuration properties but were missing from the property table of the SHACL Global Configuration section.
This adds both, and extends the sample instance data so it covers the same properties as the table above it.

What this adds

Both rows state the permitted datatypes, xsd:decimal and xsd:integer, matching what shui:score and sh:order respectively permit.

@smessie smessie added the UI For SHACL 1.2 UI spec label Aug 24, 2026
Comment thread shacl12-ui/index.html
Comment on lines +1271 to +1278
<tr>
<td><code>shui:defaultWidgetScore</code></td>
<td>
The score assigned by <a href="#scoring-algorithm-scoring-graph-preparation">scoring graph preparation</a> to a widget that a shape declares with <code>shui:editor</code> or <code>shui:viewer</code> and that the scoring graph does not otherwise score.
The value of <code>shui:defaultWidgetScore</code> is of datatype <code>xsd:decimal</code> or <code>xsd:integer</code>, which are the datatypes that <code>shui:score</code> permits.
It defaults to <code>40</code>, the score conventionally used for an explicitly declared widget.
</td>
</tr>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove that part. See #1195

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I initially thought this wasn't related to the referenced PR, but it turns out it is.

The core question here is: Do we want a shui:defaultWidgetScore that applies when no scoring shapes are added to a widget? Why would we need scoring shapes here? This situation was actually introduced by the merged PR.

To recap what that PR changed:

  • Preserved default behavior: Users can still create widgets without explicit score shapes.
  • Maintained spec compatibility: Hardcoding widgets via shui:editor and shui:viewer is still supported.
  • Preprocessed score graphs: Added score shapes to widgets missing them during a preprocessing phase (aligning with the proposed approach for data-only SHACL renderers without shapes).
  • Simplified scoring outputs: The previous scoring algorithm forced implementations into an awkward state where score and select functions had to return either a single IRI (if best was true) or an array of ScoreResults. This was difficult to implement, hard to read, and led to maintainability concerns. We restructured this to align with the task force’s overall vision. Also slect and score did not differ a lot from each other, but were different enough to need two functions.

It seems @bergos wants the ability to hardcode widgets without relying on the scoring system. These differing architectural viewpoints are currently blocking progress across multiple issues.

Proposal: Before proceeding further, let's explicitly resolve the core architectural questions regarding spec functionality, conformance, and whether we are targeting a single normative core or supporting multiple profiles as that is at the heart of this issue.

Comment thread shacl12-ui/index.html
shui:timeZone "Europe/Vienna" ;
shui:labelPreference (skos:prefLabel dcterms:title rdfs:label) .
shui:labelPreference (skos:prefLabel dcterms:title rdfs:label) ;
shui:defaultWidgetScore 40 ;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove that part. See #1195

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.

4 participants