[data-shapes] Extending collection validation features (#414)

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

== Extending collection validation features ==
In https://github.com/w3c/data-shapes/pull/403 we implement support for #391 (`sh:memberShape`). As discussed in https://github.com/w3c/data-shapes/pull/403#discussion_r2169534020 we may wish to support some other constraints on collections - including:
 - `sh:minCollectionLength` and `sh:maxCollectionLength` (I think we SHOULD support this)
 - `sh:uniqCollection` to check that all elements in the list are unique (I think we SHOULD support this)
 - `sh:memberCompare` which operates similarly to [property pair constraints](https://www.w3.org/TR/shacl/#core-components-property-pairs) by comparing adjacent elements; e.g. to enforce numeric ordering. (I am on the fence about supporting this)

I would like to land https://github.com/w3c/data-shapes/pull/403 before implementing these if we choose to proceed.

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


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

Received on Thursday, 26 June 2025 19:53:39 UTC