Closed danielbeeke closed 1 year ago
It might be this use case (I think): https://w3c.github.io/data-shapes/data-shapes-ucr/#dfn-uc21
What you are looking for is a qualified cardinality restriction. For example (untested):
sh:property [
sh:path schema:name ;
...
sh:qualifiedMinCount 1 ;
sh:qualifiedMaxCount 1 ;
sh:qualifiedValueShape [
sh:languageIn ( "en" )
]
]
(You had sh:inLanguage which should be sh:languageIn)
Thanks! Great somehow I have looked over that one when I read the docs.
If your question has been answered, would you mind closing the ticket? Thanks.
Yes it has been answered thanks!
Hello,
I am trying to have the situation where schema:name is required in English and other languages may also be supplied. Is this possible with SHACL?
Kind regards Daniel
My SHACL tryout that does not work.
Examples of what would validate:
Would not validate: