w3c / shacl

SHACL Community Group (Post-REC activitities)
32 stars 5 forks source link

constraining multilingual attributes #14

Closed pchampin closed 2 years ago

pchampin commented 2 years ago

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

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?

afs commented 2 years ago

sh:uniqueLang

pchampin commented 2 years ago

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