w3c / shacl

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

Typo/Bug in current specs #57

Closed jerdebsp closed 3 months ago

jerdebsp commented 3 months ago

In the current specs, in section 1.4 - Example (https://www.w3.org/TR/shacl/#shacl-example), the example makes use of sh:RegexConstraintComponent and further down, in the description it mentions sh:regex.

I think that should be sh:PatternConstraintComponent and sh:pattern.

    [   a sh:ValidationResult ;
        sh:resultSeverity sh:Violation ;
        sh:focusNode ex:Alice ;
        sh:resultPath ex:ssn ;
        sh:value "987-65-432A" ;
        sh:sourceConstraintComponent sh:RegexConstraintComponent ;
        sh:sourceShape ... blank node _:b1 on ex:ssn above ... ;

and

The validation results are enclosed in a validation report. The first validation result is produced because ex:Alice has a value for ex:ssn that does not match the regular expression specified by the property sh:regex.

HolgerKnublauch commented 3 months ago

Good catch!

jerdebsp commented 3 months ago

Doing a pull request right now

HolgerKnublauch commented 3 months ago

Thanks, merged in.