w3c / shacl

SHACL Community Group (Post-REC activitities)
27 stars 4 forks source link

Add something similar to dash:singleLine #45

Open HolgerKnublauch opened 4 months ago

HolgerKnublauch commented 4 months ago

dash:singleLine (https://datashapes.org/constraints.html#SingleLineConstraintComponent) can be used to specify that string values must not contain line breaks. This is commonly used for things like labels or ID strings.

While this can be expressed with sh:pattern, it is better to have an explicit boolean for this. For example, user interface builders can determine whether they should display a textfield vs a textarea.