- From: Jose Emilio Labra Gayo via GitHub <sysbot+gh@w3.org>
- Date: Sat, 21 May 2022 06:34:12 +0000
- To: public-shex-dev@w3.org
I think the general constrain is not possible with current ShEx and it may be a nice use case to consider. ShEx has the possibility to express a language tagged value using: ```shex <LanguageTagged> { dct:description [ @~ ] * } ``` But that would allow repeated language tagged values. In case you want a fixed set of languages (for example, `es`, `en` and `fr`) you could use something like: ```shex <LanguageTagged> { dct:description [ @en ] ? ; dct:description [ @es ] ? ; dct:description [ @fr ] ? } ``` But of course, it would better to be able to express the general constraint without having to enumerate all the languages. I wonder what syntax we could use to express that constraint...maybe something like the following? ```shex <LanguageTagged> { dct:description [ @~ ] * DISTINCT @~ } ``` -- GitHub Notification of comment by labra Please view or discuss this issue at https://github.com/shexSpec/spec/issues/48#issuecomment-1133547785 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 21 May 2022 06:34:13 UTC