w3c/shacl

constraining multilingual attributes

Closed this issue · 2 comments

During a workshop on Distrbuted Knowledge Graph metadata, the need emerged to constrain a property to contain:

  • one-to-many language tagged strings, but
  • at most one value per language tag.

Therefore this would be allowed

<> dct:description "My Knowledge Graph"@en, "Mon graphe de connaissances"@fr.

would be valid, but

<> dct:description "My Knowledge Graph"@en, "My KG"@en.

would not.

Is it possible to express that kind of constraint using SHACL?

thanks. Don't know why I didn't spot that...