- From: Jesse Wright via GitHub <noreply@w3.org>
- Date: Sat, 28 Jun 2025 12:30:48 +0000
- To: public-shacl@w3.org
jeswr has just submitted a new pull request for https://github.com/w3c/data-shapes: == Issue 403: list constraints == Closes #414. This PR implements `sh:minListLength`, `sh:maxListLength` and `sh:uniqList`. <!-- # Pull request instructions (Note that text between the HTML comments will be recorded in this pull request's source for future editing, but will not render on Github. Text is suggested with portions needing substitution enclosed in curly braces. The curly braces also need to be removed when substituting.) Please use "Closing keywords" for the associated Issue if this PR should close the Issue once merged. https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword If this PR edits a document, please consider including a "Live render." The non-comment template text suggests one mechanism. If including the link line(s), please test-load the link(s) while drafting the PR. --> * [See this document rendered online here](https://raw.githack.com/w3c/data-shapes/feat/list-constraints/shacl12-core/index.html) --- My interpretation of the following from the definition of [2.1.1 Constraints, Parameters and Constraint Components](https://raw.githack.com/w3c/data-shapes/feat/memberShape/shacl12-core/index.html#constraints) is that because the `sh:MemberShapeConstraintComponent` now has multiple parameters; there can only be one occurrence of `sh:memberShape` in a given shape - and I have updated the `sh:maxCount` accordingly. > Some constraint components declare only a single parameter. For example [sh:ClassConstraintComponent](https://raw.githack.com/w3c/data-shapes/feat/memberShape/shacl12-core/index.html#ClassConstraintComponent) has the single parameter sh:class. These parameters may be used multiple times in the same shape, and each [value](https://raw.githack.com/w3c/data-shapes/feat/memberShape/shacl12-core/index.html#dfn-values) of such a parameter declares an individual [constraint](https://raw.githack.com/w3c/data-shapes/feat/memberShape/shacl12-core/index.html#dfn-constraints). The interpretation of such declarations is conjunction, i.e. all constraints apply. The following example specifies that the values of ex:customer have to be [SHACL instances](https://raw.githack.com/w3c/data-shapes/feat/memberShape/shacl12-core/index.html#dfn-shacl-instance) of both ex:Customer and ex:Person. --- ⚠️⚠️ ⚠️ This is currently targeted to #403 branch for a smaller diff in the GH UI. #403 should be merged and this targeted to `gh-pages` rather than merging this branch into #403 See https://github.com/w3c/data-shapes/pull/416 -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 28 June 2025 12:30:49 UTC