dbpedia / gstore

Git repo / triple store hybrid graph storage
Apache License 2.0
3 stars 0 forks source link

Unwanted escaping of backslashes in regexes of SHACL shapes #18

Open holycrab13 opened 2 years ago

holycrab13 commented 2 years ago

When supplying regexes in SHACL shapes, the escape backslack needs to be escaped itself for the shape to parse correctly. Example

<#has-version>
    ...
        sh:pattern "/[a-zA-Z0-9]{4,}/[a-zA-Z0-9\\-_\\.]{3,}/[a-zA-Z0-9\\-_\\.]{3,}/[a-zA-Z0-9\\-_\\.]{3,}$" .

Desired would be single escapes

<#has-version>
    ...
        sh:pattern "/[a-zA-Z0-9]{4,}/[a-zA-Z0-9\-_\.]{3,}/[a-zA-Z0-9\-_\.]{3,}/[a-zA-Z0-9\-_\.]{3,}$" .